diff mercurial/dirstate.py @ 25234:3c346969c321

dirstate: avoid match.files() in walk()
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 19 May 2015 10:13:43 -0700
parents fd0f919170d2
children d94e403b5237
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue Oct 28 22:47:22 2014 -0700
+++ b/mercurial/dirstate.py	Tue May 19 10:13:43 2015 -0700
@@ -759,7 +759,7 @@
         if match.isexact(): # match.exact
             exact = True
             dirignore = util.always # skip step 2
-        elif match.files() and not match.anypats(): # match.match, no patterns
+        elif match.prefix(): # match.match, no patterns
             skipstep3 = True
 
         if not exact and self._checkcase: