mercurial/merge.py
changeset 43713 95d2eab0a7b9
parent 43633 0b7733719d21
child 43787 be8552f25cab
--- a/mercurial/merge.py	Fri Nov 15 14:47:31 2019 -0800
+++ b/mercurial/merge.py	Fri Nov 15 15:36:09 2019 -0800
@@ -2676,7 +2676,6 @@
 
     # There's no API to copy a matcher. So mutate the passed matcher and
     # restore it when we're done.
-    oldexplicitdir = matcher.explicitdir
     oldtraversedir = matcher.traversedir
 
     res = []
@@ -2684,7 +2683,7 @@
     try:
         if removeemptydirs:
             directories = []
-            matcher.explicitdir = matcher.traversedir = directories.append
+            matcher.traversedir = directories.append
 
         status = repo.status(match=matcher, ignored=ignored, unknown=True)
 
@@ -2706,5 +2705,4 @@
         return res
 
     finally:
-        matcher.explicitdir = oldexplicitdir
         matcher.traversedir = oldtraversedir