Page MenuHomePhabricator

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

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