This is an archive of the discontinued Mercurial Phabricator instance.

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

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



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

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
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