dirstate.walk: call match.explicitdir or traversedir as appropriate
authorSiddharth Agarwal <sid0@fb.com>
Sun, 28 Apr 2013 21:25:41 -0700
changeset 19137 1835de2d9c4b
parent 19136 e073ac988b51
child 19138 e579687cb5d8
dirstate.walk: call match.explicitdir or traversedir as appropriate
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Sun Apr 28 21:24:09 2013 -0700
+++ b/mercurial/dirstate.py	Sun Apr 28 21:25:41 2013 -0700
@@ -621,7 +621,7 @@
                     if nf in dmap:
                         #file deleted on disk but still in dirstate
                         results[nf] = None
-                    match.dir(nf)
+                    match.explicitdir(nf)
                     if not dirignore(nf):
                         wadd(nf)
                 elif kind == regkind or kind == lnkkind:
@@ -637,7 +637,7 @@
                     prefix = nf + "/"
                     for fn in dmap:
                         if fn.startswith(prefix):
-                            match.dir(nf)
+                            match.explicitdir(nf)
                             skipstep3 = False
                             break
                     else:
@@ -666,7 +666,7 @@
                 if nf not in results:
                     if kind == dirkind:
                         if not ignore(nf):
-                            match.dir(nf)
+                            match.traversedir(nf)
                             wadd(nf)
                         if nf in dmap and (matchalways or matchfn(nf)):
                             results[nf] = None