diff -r b3538c03a804 -r 255c761a52db mercurial/scmutil.py --- a/mercurial/scmutil.py Fri Sep 29 14:23:41 2017 -0700 +++ b/mercurial/scmutil.py Fri Sep 29 14:19:36 2017 -0700 @@ -760,8 +760,8 @@ ctx = repo[None] dirstate = repo.dirstate - walkresults = dirstate.walk(matcher, sorted(ctx.substate), True, False, - full=False) + walkresults = dirstate.walk(matcher, subrepos=sorted(ctx.substate), + unknown=True, ignored=False, full=False) for abs, st in walkresults.iteritems(): dstate = dirstate[abs] if dstate == '?' and audit_path.check(abs):