revlog: skip opener option to pass delta_both_parents value
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 10:02:37 +0200
changeset 51033 cd16b6895f62
parent 51032 774c00348f9f
child 51034 a11179fb6bd9
revlog: skip opener option to pass delta_both_parents value We can directly set the option in the config object now.
mercurial/localrepo.py
mercurial/revlog.py
--- a/mercurial/localrepo.py	Tue Oct 10 10:02:29 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:02:37 2023 +0200
@@ -1089,10 +1089,9 @@
     if chunkcachesize is not None:
         data_config.chunk_cache_size = chunkcachesize
 
-    deltabothparents = ui.configbool(
+    delta_config.delta_both_parents = ui.configbool(
         b'storage', b'revlog.optimize-delta-parent-choice'
     )
-    options[b'deltabothparents'] = deltabothparents
     dps_cgds = ui.configint(
         b'storage',
         b'revlog.delta-parent-search.candidate-group-chunk-size',
--- a/mercurial/revlog.py	Tue Oct 10 10:02:29 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 10:02:37 2023 +0200
@@ -630,8 +630,6 @@
 
         if b'maxchainlen' in opts:
             self.delta_config.max_chain_len = opts[b'maxchainlen']
-        if b'deltabothparents' in opts:
-            self.delta_config.delta_both_parents = opts[b'deltabothparents']
         dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size')
         if dps_cgds:
             self.delta_config.candidate_group_chunk_size = dps_cgds