( )⚙ 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
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

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.