changeset 51058:8bdb2478c4bc

revlog: remove legacy usage of `_maxdeltachainspan` All core code is now getting the setting from the DeltaConfig object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 11:16:07 +0200
parents 101c30938c0d
children 47d43efda8b7
files mercurial/revlogutils/deltas.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)