( )⚙ D10565 revlog: split the `version` attribute into its two components

This is an archive of the discontinued Mercurial Phabricator instance.

revlog: split the `version` attribute into its two components
ClosedPublic

Authored by marmoute on May 3 2021, 7:47 AM.

Details

Summary

The revlog.version attribute contained an integer coding 2 different informations:

  • the revlog version number
  • a bit field defining some specific feature of the revlog

We now explicitly store the two components independently. This avoid exposing
the implementation details all around the code and prepare for future revlog
version that would encode the information in a different way.

In the process we drop the version attribute from the interface. It was
flagged for removal when that interface was created.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

marmoute created this revision.May 3 2021, 7:47 AM
baymax updated this revision to Diff 27480.May 3 2021, 9:43 PM

✅ refresh by Heptapod after a successful CI run (🐙 💚)

Alphare accepted this revision.May 7 2021, 8:55 AM
This revision is now accepted and ready to land.May 7 2021, 8:55 AM