( )⚙ D8544 grep: stop computing information for --diff when unnecessary

This is an archive of the discontinued Mercurial Phabricator instance.

grep: stop computing information for --diff when unnecessary
ClosedPublic

Authored by valentin.gatienbaron on May 17 2020, 1:49 PM.

Details

Summary

This is one reason why hg grep pattern essentially does `hg cat -r
. 'set:**'` inside. There is no speed improvement in this commit,
because the rest of the code still greps data from filelog instead of
working copy when possible.

Diff Detail

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

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.