( )⚙ D11965 rhg: desambiguate status without decompressing filelog if possible

This is an archive of the discontinued Mercurial Phabricator instance.

rhg: desambiguate status without decompressing filelog if possible
ClosedPublic

Authored by SimonSapin on Jan 6 2022, 1:56 PM.

Details

Summary

When status is unsure based on stat() and the dirstate if a file is clean
or modified, we need to compare it against the filelog.

This comparison can skip looking at contents if the lengths differ.
This changeset optimize this further to deduce what we can about the length
if the filelog without decompressing it or resolving deltas.

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.