diff mercurial/cmdutil.py @ 26229:d1530c6e8613

extdiff: enable -I/-X with --patch Not sure how useful this really is, but it's trivial to add and ignoring the existing arguments supported seems like a bad UI.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 09 Sep 2015 22:27:48 -0400
parents 3095b1027661
children 4a8e21578e14
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Wed Sep 09 21:07:38 2015 -0400
+++ b/mercurial/cmdutil.py	Wed Sep 09 22:27:48 2015 -0400
@@ -992,7 +992,7 @@
         os.unlink(tmpname)
 
 def export(repo, revs, template='hg-%h.patch', fp=None, switch_parent=False,
-           opts=None):
+           opts=None, match=None):
     '''export changesets as hg patches.'''
 
     total = len(revs)
@@ -1043,7 +1043,7 @@
         write(ctx.description().rstrip())
         write("\n\n")
 
-        for chunk, label in patch.diffui(repo, prev, node, opts=opts):
+        for chunk, label in patch.diffui(repo, prev, node, match, opts=opts):
             write(chunk, label=label)
 
         if shouldclose: