This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Skip reading the contents of ambiguous files in some cases
ClosedPublic

Authored by SimonSapin on Dec 14 2021, 3:45 PM.

Details

Summary

If the size of the file in the working directory does not match the length of
the filelog data, we know its contents will be different and don’t need to
read it.

rhg still decodes the filelog revision, which is not needed in some cases.

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

SimonSapin created this revision.Dec 14 2021, 3:45 PM
Alphare accepted this revision.Dec 15 2021, 4:29 AM
This revision is now accepted and ready to land.Dec 15 2021, 4:29 AM