Submitter | phabricator |
---|---|
Date | Feb. 21, 2022, 5:13 p.m. |
Message ID | <differential-rev-PHID-DREV-s2lghgmekdphbpq4tiww-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/50547/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -869,8 +869,10 @@ the revlog which do not persist the rank. """ rank = self.index[rev][ENTRY_RANK] - if rank == RANK_UNKNOWN: + if self._format_version != CHANGELOGV2 or rank == RANK_UNKNOWN: return None + if rev == nullrev: + return 0 # convention return rank def chainbase(self, rev):