changeset 51042:d900f74456cc

revlog: skip opener options to pass max_deltachain_span We can directly set the option in the config object now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 10:03:09 +0200
parents 83ce99f5e7f2
children 8228e8dd96dd
files mercurial/localrepo.py mercurial/revlog.py
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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