# HG changeset patch # User Pierre-Yves David # Date 1696924965 -7200 # Node ID a11179fb6bd9c41586017da39deb36c5b1fbbc7d # Parent cd16b6895f624edf34e00e7f93b36c285fe28142 revlog: skip opener options to pass candidate_group_chunk_size value We can directly set the option in the config object now. diff -r cd16b6895f62 -r a11179fb6bd9 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Oct 10 10:02:37 2023 +0200 +++ b/mercurial/localrepo.py Tue Oct 10 10:02:45 2023 +0200 @@ -1092,11 +1092,10 @@ delta_config.delta_both_parents = ui.configbool( b'storage', b'revlog.optimize-delta-parent-choice' ) - dps_cgds = ui.configint( + delta_config.candidate_group_chunk_size = ui.configint( b'storage', b'revlog.delta-parent-search.candidate-group-chunk-size', ) - options[b'delta-parent-search.candidate-group-chunk-size'] = dps_cgds options[b'debug-delta'] = ui.configbool(b'debug', b'revlog.debug-delta') issue6528 = ui.configbool(b'storage', b'revlog.issue6528.fix-incoming') diff -r cd16b6895f62 -r a11179fb6bd9 mercurial/revlog.py --- a/mercurial/revlog.py Tue Oct 10 10:02:37 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:02:45 2023 +0200 @@ -630,9 +630,6 @@ if b'maxchainlen' in opts: self.delta_config.max_chain_len = opts[b'maxchainlen'] - dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') - if dps_cgds: - self.delta_config.candidate_group_chunk_size = dps_cgds if b'lazydelta' in opts: self.delta_config.lazy_delta = bool(opts[b'lazydelta']) if self._lazydelta and b'lazydeltabase' in opts: