revlog: skip opener options to pass max_deltachain_span
We can directly set the option in the config object now.
--- 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