HomePhabricator

grep: make -frREV follow history from the specified revision (BC)

Authored by yuja.

Description

grep: make -frREV follow history from the specified revision (BC)

This is close to what "log -frREV" will do, and is backported from
8b4b9ee6001a, "log: make -fr show complete history from the given revs"
except for the "del opts['follow']" bit.

I'm planning to rewrite cmdutil.walkchangerevs() to share the core logic
with logcmdutil, and this is the first step towards that. There are still
many broken tests, but the fundamental behavior should be fixed by this
patch.

.. bc::

`hg grep -fr REV` now follows history from the specified `REV`, works in
the same way as `hg log -fr REV`. The previous behavior was to limit
the search space to `REV` while following the history.

Details

Committed
yujaSep 10 2020, 1:23 AM
Parents
rHG3dc848d5ec77: cmdutil: make walkchangerevs() gracefully handle wdir parents
Branches
Unknown
Tags
Unknown