--- a/mercurial/cmdutil.py Fri Sep 29 14:23:41 2017 -0700
+++ b/mercurial/cmdutil.py Fri Sep 29 14:19:36 2017 -0700
@@ -2708,8 +2708,8 @@
dirstate = repo.dirstate
# We don't want to just call wctx.walk here, since it would return a lot of
# clean files, which we aren't interested in and takes time.
- for f in sorted(dirstate.walk(badmatch, sorted(wctx.substate),
- True, False, full=False)):
+ for f in sorted(dirstate.walk(badmatch, subrepos=sorted(wctx.substate),
+ unknown=True, ignored=False, full=False)):
exact = match.exact(f)
if exact or not explicitonly and f not in wctx and repo.wvfs.lexists(f):
if cca: