# HG changeset patch # User Siddharth Agarwal # Date 2013-05-07 21:20:34 # Node ID 63f7bd2e1a465f088a4e1b66e12ea18e896ab93f # Parent 022256ef47b8e32c9f943e912ac5d25ea91ccc49 dirstate._walkexplicit: inline dirsnotfound.append diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -559,6 +559,7 @@ class dirstate(object): dirsfound = [] foundadd = dirsfound.append dirsnotfound = [] + notfoundadd = dirsnotfound.append if match.matchfn != match.exact and self._checkcase: normalize = self._normalize @@ -615,7 +616,7 @@ class dirstate(object): if fn.startswith(prefix): if matchedir: matchedir(nf) - dirsnotfound.append(nf) + notfoundadd(nf) break else: badfn(ff, inst.strerror)