--- a/mercurial/patch.py Wed Feb 06 17:27:43 2019 -0800
+++ b/mercurial/patch.py Wed Feb 06 17:46:20 2019 -0800
@@ -32,7 +32,6 @@
encoding,
error,
mail,
- match as matchmod,
mdiff,
pathutil,
pycompat,
@@ -2320,10 +2319,6 @@
return getfilectx
getfilectx = lrugetfilectx()
- if relroot:
- relrootmatch = scmutil.match(ctx2, pats=[relroot], default='path')
- match = matchmod.intersectmatchers(match, relrootmatch)
-
if not changes:
changes = ctx1.status(ctx2, match=match)
modified, added, removed = changes[:3]