diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -2127,7 +2127,7 @@ def diff(repo, node1=None, node2=None, m copy = {} if opts.git or opts.upgrade: - copy = copies.pathcopies(ctx1, ctx2) + copy = copies.pathcopies(ctx1, ctx2, match=match) if relroot is not None: if not relfiltered: