# HG changeset patch # User Pierre-Yves David # Date 1696929367 -7200 # Node ID 8bdb2478c4bcd1808555ed43be68778dee46a4f5 # Parent 101c30938c0d6efe37ded527f5e2933a7f264a8c revlog: remove legacy usage of `_maxdeltachainspan` All core code is now getting the setting from the DeltaConfig object. diff -r 101c30938c0d -r 8bdb2478c4bc 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)