diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1114,7 +1114,7 @@ def resolverevlogstorevfsoptions(ui, req 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: diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -637,8 +637,6 @@ class revlog: 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