dirstate: avoid match.files() in walk()
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 19 May 2015 10:13:43 -0700
changeset 25234 3c346969c321
parent 25233 9789b4a7c595
child 25235 41965bf23295
dirstate: avoid match.files() in walk()
mercurial/dirstate.py
--- 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: