diff -r 41fcdfe3bfeb -r 1d09ba0d2ed3 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Oct 01 10:11:00 2018 -0700 +++ b/mercurial/cmdutil.py Mon Oct 01 14:31:15 2018 -0700 @@ -2044,6 +2044,7 @@ if abort or warn: cca = scmutil.casecollisionauditor(ui, abort, repo.dirstate) + match = repo.narrowmatch(match, includeexact=True) badmatch = matchmod.badmatch(match, badfn) dirstate = repo.dirstate # We don't want to just call wctx.walk here, since it would return a lot of