( )⚙ D11936 rank: add a "rank" value to the revlog-entry tuple

This is an archive of the discontinued Mercurial Phabricator instance.

rank: add a "rank" value to the revlog-entry tuple
ClosedPublic

Authored by marmoute on Dec 16 2021, 12:43 PM.

Details

Summary

The rank of a revision is the size of sub-graph it defines as a head. In other
words, the rank of X is the size of ancestors(X) (X included).

This is a property that can help various algorithm and we intend to store it in
changelog-v2. We start with adding this new information to the "entry tuple",
with a default value. We will start to compute and persist the rank later.

Diff Detail

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

Event Timeline

marmoute created this revision.Dec 16 2021, 12:43 PM
Alphare accepted this revision.Dec 17 2021, 8:35 AM
This revision is now accepted and ready to land.Dec 17 2021, 8:35 AM
Alphare requested changes to this revision.Dec 17 2021, 8:45 AM

Writing it down so I can amend it later

mercurial/revlogutils/constants.py
112

s/fof/of

This revision now requires changes to proceed.Dec 17 2021, 8:45 AM
Alphare accepted this revision.Dec 17 2021, 8:45 AM
This revision is now accepted and ready to land.Dec 17 2021, 8:45 AM
This revision was automatically updated to reflect the committed changes.