revlog: skip opener options to pass max_deltachain_span
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 10:03:09 +0200
changeset 51037 d900f74456cc
parent 51036 83ce99f5e7f2
child 51038 8228e8dd96dd
revlog: skip opener options to pass max_deltachain_span 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:03:01 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:03:09 2023 +0200
@@ -1114,7 +1114,7 @@
 
     chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan')
     if 0 <= chainspan:
-        options[b'maxdeltachainspan'] = chainspan
+        delta_config.max_deltachain_span = chainspan
 
     mmapindexthreshold = ui.configbytes(b'experimental', b'mmapindexthreshold')
     if mmapindexthreshold is not None:
--- a/mercurial/revlog.py	Tue Oct 10 10:03:01 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 10:03:09 2023 +0200
@@ -637,8 +637,6 @@
             comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']
         if b'zstd.level' in opts:
             comp_engine_opts[b'zstd.level'] = opts[b'zstd.level']
-        if b'maxdeltachainspan' in opts:
-            self.delta_config.max_deltachain_span = opts[b'maxdeltachainspan']
         if self._mmaplargeindex and b'mmapindexthreshold' in opts:
             mmapindexthreshold = opts[b'mmapindexthreshold']
             self.data_config.mmap_index_threshold = mmapindexthreshold