mercurial/revlogutils/deltas.py
changeset 51055 8bdb2478c4bc
parent 51052 fa7d307e2150
child 51057 f71f07a679b4
--- 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)