This is an archive of the discontinued Mercurial Phabricator instance.

grep: hide cryptic revision number by default

Authored by yuja on Jul 11 2018, 10:16 AM.



I believe nobody would want to see the "2147483647:" prefix while grepping
working directory files.

The wdir revision is still visible if "-r wdir()" is specified since a revset
may point to more than one revisions, and it seems confusing to change the
visibility dynamically by the number of the matched revisions.

Diff Detail

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

yuja created this revision.Jul 11 2018, 10:16 AM
pulkit accepted this revision.Jul 11 2018, 1:42 PM
This revision was automatically updated to reflect the committed changes.