Mercurial > public > mercurial-scm > hg
comparison mercurial/patch.py @ 2921:addb58e3b41c
redo merge with mpm.
previous merge at ef8ee4477019 was bad.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 16 Aug 2006 10:52:19 -0700 |
parents | b70740aefa4d 3848488244fc |
children | 773c5b82d052 |
comparison
equal
deleted
inserted
replaced
2919:b70740aefa4d | 2921:addb58e3b41c |
---|---|
265 for gp in gitpatches: | 265 for gp in gitpatches: |
266 files[gp.path] = (gp.op, gp) | 266 files[gp.path] = (gp.op, gp) |
267 | 267 |
268 return (files, fuzz) | 268 return (files, fuzz) |
269 | 269 |
270 def diffopts(ui, opts={}): | |
271 return mdiff.diffopts( | |
272 text=opts.get('text'), | |
273 git=(opts.get('git') or | |
274 ui.configbool('diff', 'git', None)), | |
275 showfunc=(opts.get('show_function') or | |
276 ui.configbool('diff', 'showfunc', None)), | |
277 ignorews=(opts.get('ignore_all_space') or | |
278 ui.configbool('diff', 'ignorews', None)), | |
279 ignorewsamount=(opts.get('ignore_space_change') or | |
280 ui.configbool('diff', 'ignorewsamount', None)), | |
281 ignoreblanklines=(opts.get('ignore_blank_lines') or | |
282 ui.configbool('diff', 'ignoreblanklines', None))) | |
283 | |
270 def diff(repo, node1=None, node2=None, files=None, match=util.always, | 284 def diff(repo, node1=None, node2=None, files=None, match=util.always, |
271 fp=None, changes=None, opts=None): | 285 fp=None, changes=None, opts=None): |
272 '''print diff of changes to files between two nodes, or node and | 286 '''print diff of changes to files between two nodes, or node and |
273 working directory. | 287 working directory. |
274 | 288 |