dirstate.walk: maintain a list of dirs not found
authorSiddharth Agarwal <sid0@fb.com>
Tue, 07 May 2013 09:29:43 -0700
changeset 19170 b184e5041f2f
parent 19168 60b63216997c
child 19171 252de7b77cfd
dirstate.walk: maintain a list of dirs not found Upcoming patches will factor out the walk over explicit files done in step 1. This helps us get there.
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Thu May 09 15:22:54 2013 -0500
+++ b/mercurial/dirstate.py	Tue May 07 09:29:43 2013 -0700
@@ -607,6 +607,7 @@
         results['.hg'] = None
 
         # step 1: find all explicit files
+        dirsnotfound = []
         for ff in files:
             if normalize:
                 nf = normalize(normpath(ff), False, True)
@@ -642,6 +643,7 @@
                         if fn.startswith(prefix):
                             if matchedir:
                                 matchedir(nf)
+                            dirsnotfound.append(nf)
                             skipstep3 = False
                             break
                     else: