HomePhabricator

cmdutil: rewrite walkchangerevs() by using logcmdutil functions

Authored by yuja.

Description

cmdutil: rewrite walkchangerevs() by using logcmdutil functions

cmdutil.walkchangerevs() now takes (revs, makefilematcher) in place of
(match, opts), and only provides the "windowing" functionality. Unused
classes and functions will be removed by the next patch.

"hg grep --follow" (--all-files) is still broken since there is no logic
to follow copies while traversing changelog, but at least, it does follow
the DAG.

Details

Committed
yujaSep 10 2020, 5:01 AM
Parents
rHGbba730d7a6f4: grep: filter target files by matcher
Branches
Unknown
Tags
Unknown