[PATCH 2 of 2] dirstate: avoid match.files() in walk()

Martin von Zweigbergk martinvonz at google.com
Wed May 20 18:29:27 CDT 2015


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1432055623 25200
#      Tue May 19 10:13:43 2015 -0700
# Node ID 897e64c3f0062565380bf91f469873dfaf4ebd64
# Parent  1ca06dc8213e456def24b52e1307efd50b4dd997
dirstate: avoid match.files() in walk()

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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:


More information about the Mercurial-devel mailing list