mercurial/cmdutil.py
changeset 23258 10697f29af2b
parent 23139 e53f6b72a0e4
child 23289 ae5d0a22ee7e
--- a/mercurial/cmdutil.py	Tue Nov 11 10:16:54 2014 -0800
+++ b/mercurial/cmdutil.py	Mon Nov 10 14:51:18 2014 -0800
@@ -1982,9 +1982,9 @@
     abort, warn = scmutil.checkportabilityalert(ui)
     if abort or warn:
         cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate)
-    for f in repo.walk(match):
+    for f in wctx.walk(match):
         exact = match.exact(f)
-        if exact or not explicitonly and f not in repo.dirstate:
+        if exact or not explicitonly and f not in wctx:
             if cca:
                 cca(f)
             names.append(f)