--- 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: