revlog: remove legacy usage of `_maxdeltachainspan`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:16:07 +0200
changeset 51058 8bdb2478c4bc
parent 51057 101c30938c0d
child 51059 47d43efda8b7
revlog: remove legacy usage of `_maxdeltachainspan` All core code is now getting the setting from the DeltaConfig object.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Tue Oct 10 11:13:24 2023 +0200
+++ b/mercurial/revlogutils/deltas.py	Tue Oct 10 11:16:07 2023 +0200
@@ -608,7 +608,7 @@
 
     textlen = revinfo.textlen
     defaultmax = textlen * 4
-    maxdist = revlog._maxdeltachainspan
+    maxdist = revlog.delta_config.max_deltachain_span
     if not maxdist:
         maxdist = deltainfo.distance  # ensure the conditional pass
     maxdist = max(maxdist, defaultmax)