Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/patch.py Tue Aug 15 11:28:50 2006 -0700 +++ b/mercurial/patch.py Wed Aug 16 10:52:19 2006 -0700 @@ -267,6 +267,20 @@ return (files, fuzz) +def diffopts(ui, opts={}): + return mdiff.diffopts( + text=opts.get('text'), + git=(opts.get('git') or + ui.configbool('diff', 'git', None)), + showfunc=(opts.get('show_function') or + ui.configbool('diff', 'showfunc', None)), + ignorews=(opts.get('ignore_all_space') or + ui.configbool('diff', 'ignorews', None)), + ignorewsamount=(opts.get('ignore_space_change') or + ui.configbool('diff', 'ignorewsamount', None)), + ignoreblanklines=(opts.get('ignore_blank_lines') or + ui.configbool('diff', 'ignoreblanklines', None))) + def diff(repo, node1=None, node2=None, files=None, match=util.always, fp=None, changes=None, opts=None): '''print diff of changes to files between two nodes, or node and