diff -r c10c87c8fe79 -r 508dfd1c18df mercurial/commands.py --- a/mercurial/commands.py Wed Sep 09 17:04:44 2020 +0900 +++ b/mercurial/commands.py Sun Oct 04 13:17:57 2020 +0900 @@ -3532,7 +3532,7 @@ ui.pager(b'grep') fm = ui.formatter(b'grep', opts) - for ctx in cmdutil.walkchangerevs( + for ctx in scmutil.walkchangerevs( repo, revs, makefilematcher, searcher._prep ): rev = ctx.rev()