# HG changeset patch # User Pierre-Yves David # Date 1696924981 -7200 # Node ID 83ce99f5e7f2dcfbe91410b8a68dc02b895c5d2d # Parent 6ccb07b9eeeb35c7071c183a2b9fe37c64599b1f revlog: skip opener options to pass lazy_delta values We can directly set the option in the config object now. diff -r 6ccb07b9eeeb -r 83ce99f5e7f2 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Oct 10 10:02:53 2023 +0200 +++ b/mercurial/localrepo.py Tue Oct 10 10:03:01 2023 +0200 @@ -1107,10 +1107,10 @@ lazydeltabase = ui.configbool( b'storage', b'revlog.reuse-external-delta-parent' ) - if lazydeltabase is None: - lazydeltabase = not scmutil.gddeltaconfig(ui) - options[b'lazydelta'] = lazydelta - options[b'lazydeltabase'] = lazydeltabase + if lazydeltabase is None: + lazydeltabase = not scmutil.gddeltaconfig(ui) + delta_config.lazy_delta = lazydelta + delta_config.lazy_delta_base = lazydeltabase chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan') if 0 <= chainspan: diff -r 6ccb07b9eeeb -r 83ce99f5e7f2 mercurial/revlog.py --- a/mercurial/revlog.py Tue Oct 10 10:02:53 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:03:01 2023 +0200 @@ -630,10 +630,6 @@ if b'maxchainlen' in opts: self.delta_config.max_chain_len = opts[b'maxchainlen'] - if b'lazydelta' in opts: - self.delta_config.lazy_delta = bool(opts[b'lazydelta']) - if self._lazydelta and b'lazydeltabase' in opts: - self.delta_config.lazy_delta_base = opts[b'lazydeltabase'] if b'compengine' in opts: self.feature_config.compression_engine = opts[b'compengine'] comp_engine_opts = self.feature_config.compression_engine_options