diff -r 4906dc0e038c -r a7f8e3584ef3 mercurial/patch.py --- a/mercurial/patch.py Thu Apr 16 11:29:30 2015 -0700 +++ b/mercurial/patch.py Thu Apr 16 11:31:48 2015 -0700 @@ -2127,7 +2127,7 @@ 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: