changeset 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 9789b4a7c595
children 41965bf23295
files mercurial/dirstate.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: