mercurial/patch.py
changeset 41619 035cae1d197f
parent 41618 e834f6f6f221
child 41620 74f53d3bd685
--- 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]