Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 45720:508dfd1c18df
scmutil: move walkchangerevs() from cmdutil
It's no longer a command-level function, but a pure helper to walk revisions
in a windowed way. This change will help eliminate reverse dependency of
revset.py -> grep.py -> cmdutil.py in future patches.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 04 Oct 2020 13:17:57 +0900 |
parents | c10c87c8fe79 |
children | f9d3ff23bfc0 |
line wrap: on
line diff
--- 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()