changeset 19170:b184e5041f2f

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.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 07 May 2013 09:29:43 -0700
parents 60b63216997c
children 252de7b77cfd
files mercurial/dirstate.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: