changeset 19175:63f7bd2e1a46

dirstate._walkexplicit: inline dirsnotfound.append
author Siddharth Agarwal <sid0@fb.com>
date Tue, 07 May 2013 14:20:34 -0700
parents 022256ef47b8
children aae14b3d0a9c
files mercurial/dirstate.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstate.py	Tue May 07 14:19:04 2013 -0700
+++ b/mercurial/dirstate.py	Tue May 07 14:20:34 2013 -0700
@@ -559,6 +559,7 @@
         dirsfound = []
         foundadd = dirsfound.append
         dirsnotfound = []
+        notfoundadd = dirsnotfound.append
 
         if match.matchfn != match.exact and self._checkcase:
             normalize = self._normalize
@@ -615,7 +616,7 @@
                         if fn.startswith(prefix):
                             if matchedir:
                                 matchedir(nf)
-                            dirsnotfound.append(nf)
+                            notfoundadd(nf)
                             break
                     else:
                         badfn(ff, inst.strerror)