( )⚙ D12208 revlog: return 0 for the fast_rank of nullrev

This is an archive of the discontinued Mercurial Phabricator instance.

revlog: return 0 for the fast_rank of nullrev
ClosedPublic

Authored by pacien on Feb 21 2022, 12:12 PM.

Details

Summary

By convention, the rank of the null revision is 0. This particular revision is
never "physically" stored in the changelog, so it is a special case.

For consistency, the value None is still being returned for revlogs which do
not store the fast_rank property for any revision.

Diff Detail

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

Event Timeline

pacien created this revision.Feb 21 2022, 12:12 PM
indygreg accepted this revision.Mar 1 2022, 8:00 PM
This revision is now accepted and ready to land.Mar 1 2022, 8:00 PM
Alphare accepted this revision.Mar 2 2022, 4:31 AM
This revision was automatically updated to reflect the committed changes.