This is an archive of the discontinued Mercurial Phabricator instance.

dirstate-v2: Extend node flags to 16 bits
ClosedPublic

Authored by SimonSapin on Oct 14 2021, 10:07 AM.

Details

Summary

Only 7 out of 8 available bits are used right now. Reserve some more.

Future versions of Mercurial may assign meaning to some of these bits,
with the limitation that then-older versions will always reset those bits to
unset when writing nodes.
(A new node is written for any mutation in its subtree, leaving the bytes of
the old node unreachable until the data file is rewritten entirely.)

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.Oct 14 2021, 10:07 AM
pulkit accepted this revision.Oct 14 2021, 2:43 PM
This revision is now accepted and ready to land.Oct 14 2021, 2:43 PM
This revision was automatically updated to reflect the committed changes.