Mercurial > hg-stable
diff hgext/extdiff.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 | 0fd20a71abdb |
children | 56b2bcea2529 |
line wrap: on
line diff
--- a/hgext/extdiff.py Wed Sep 09 21:07:38 2015 -0400 +++ b/hgext/extdiff.py Wed Sep 09 22:27:48 2015 -0400 @@ -223,10 +223,10 @@ dir2 = os.path.join(dir2root, dir2, common_file) label2 = common_file + rev2 else: - # XXX: export doesn't support -I/-X like extdiff does template = 'hg-%h.patch' cmdutil.export(repo, [repo[node1a].rev(), repo[node2].rev()], - template=repo.vfs.reljoin(tmproot, template)) + template=repo.vfs.reljoin(tmproot, template), + match=matcher) label1a = cmdutil.makefilename(repo, template, node1a) label2 = cmdutil.makefilename(repo, template, node2) dir1a = repo.vfs.reljoin(tmproot, label1a)