revlog: remove legacy usage of `_compute_rank`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:36:23 +0200
changeset 51064 81f3877372c3
parent 51063 533d6943f6a3
child 51065 14574a41a7a7
revlog: remove legacy usage of `_compute_rank` All core code is now getting the setting from the DeltaConfig object.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Oct 10 11:33:33 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:36:23 2023 +0200
@@ -2852,7 +2852,7 @@
             sidedata_offset = 0
 
         rank = RANK_UNKNOWN
-        if self._compute_rank:
+        if self.feature_config.compute_rank:
             if (p1r, p2r) == (nullrev, nullrev):
                 rank = 1
             elif p1r != nullrev and p2r == nullrev: