Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 2888:3848488244fc
Move ui.diffopts to patch.diffopts where it belongs
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 15 Aug 2006 11:34:08 -0500 |
parents | c2932ad5476a |
children | ef8ee4477019 addb58e3b41c |
line wrap: on
line diff
--- a/mercurial/commands.py Mon Aug 14 15:07:00 2006 -0500 +++ b/mercurial/commands.py Tue Aug 15 11:34:08 2006 -0500 @@ -1337,7 +1337,7 @@ fns, matchfn, anypats = cmdutil.matchpats(repo, pats, opts) patch.diff(repo, node1, node2, fns, match=matchfn, - opts=ui.diffopts(opts)) + opts=patch.diffopts(ui, opts)) def export(ui, repo, *changesets, **opts): """dump the header and diffs for one or more changesets @@ -1374,7 +1374,8 @@ else: ui.note(_('exporting patch:\n')) patch.export(repo, map(repo.lookup, revs), template=opts['output'], - switch_parent=opts['switch_parent'], opts=ui.diffopts(opts)) + switch_parent=opts['switch_parent'], + opts=patch.diffopts(ui, opts)) def forget(ui, repo, *pats, **opts): """don't add the specified files on the next commit (DEPRECATED)