# HG changeset patch # User Martin von Zweigbergk # Date 2015-05-19 17:13:43 # Node ID 3c346969c32111d604064cf751491f64fd14e525 # Parent 9789b4a7c595fb1cfe958404bbb4b28d69dbaebc 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 @@ class dirstate(object): 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: