diff -r 37c57a7cf160 -r 10697f29af2b mercurial/cmdutil.py --- 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)