Mercurial > hg
changeset 51038:8228e8dd96dd
revlog: skip opener options to pass max_chain_len
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:18 +0200 |
parents | d900f74456cc |
children | 940445de2b09 |
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:09 2023 +0200 +++ b/mercurial/localrepo.py Tue Oct 10 10:03:18 2023 +0200 @@ -1140,7 +1140,7 @@ # experimental config: format.maxchainlen maxchainlen = ui.configint(b'format', b'maxchainlen', maxchainlen) if maxchainlen is not None: - options[b'maxchainlen'] = maxchainlen + delta_config.max_chain_len = maxchainlen for r in requirements: # we allow multiple compression engine requirement to co-exist because
--- a/mercurial/revlog.py Tue Oct 10 10:03:09 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:03:18 2023 +0200 @@ -628,8 +628,6 @@ else: new_header = REVLOG_DEFAULT_VERSION - if b'maxchainlen' in opts: - self.delta_config.max_chain_len = opts[b'maxchainlen'] if b'compengine' in opts: self.feature_config.compression_engine = opts[b'compengine'] comp_engine_opts = self.feature_config.compression_engine_options