revlog: remove legacy usage of `_candidate_group_chunk_size`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 11 Oct 2023 00:04:23 +0200
changeset 51055 fa7d307e2150
parent 51054 ab2bc31fa91f
child 51056 f0756d0636d1
revlog: remove legacy usage of `_candidate_group_chunk_size` All core code is now getting the setting from the DeltaConfig object.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Wed Oct 11 00:04:08 2023 +0200
+++ b/mercurial/revlogutils/deltas.py	Wed Oct 11 00:04:23 2023 +0200
@@ -719,7 +719,7 @@
     good = None
 
     deltas_limit = textlen * LIMIT_DELTA2TEXT
-    group_chunk_size = revlog._candidate_group_chunk_size
+    group_chunk_size = revlog.delta_config.candidate_group_chunk_size
 
     tested = {nullrev}
     candidates = _refinedgroups(