Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 51039:a11179fb6bd9
revlog: skip opener options to pass candidate_group_chunk_size value
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:02:45 +0200 |
parents | cd16b6895f62 |
children | 6ccb07b9eeeb |
comparison
equal
deleted
inserted
replaced
51038:cd16b6895f62 | 51039:a11179fb6bd9 |
---|---|
628 else: | 628 else: |
629 new_header = REVLOG_DEFAULT_VERSION | 629 new_header = REVLOG_DEFAULT_VERSION |
630 | 630 |
631 if b'maxchainlen' in opts: | 631 if b'maxchainlen' in opts: |
632 self.delta_config.max_chain_len = opts[b'maxchainlen'] | 632 self.delta_config.max_chain_len = opts[b'maxchainlen'] |
633 dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') | |
634 if dps_cgds: | |
635 self.delta_config.candidate_group_chunk_size = dps_cgds | |
636 if b'lazydelta' in opts: | 633 if b'lazydelta' in opts: |
637 self.delta_config.lazy_delta = bool(opts[b'lazydelta']) | 634 self.delta_config.lazy_delta = bool(opts[b'lazydelta']) |
638 if self._lazydelta and b'lazydeltabase' in opts: | 635 if self._lazydelta and b'lazydeltabase' in opts: |
639 self.delta_config.lazy_delta_base = opts[b'lazydeltabase'] | 636 self.delta_config.lazy_delta_base = opts[b'lazydeltabase'] |
640 if b'debug-delta' in opts: | 637 if b'debug-delta' in opts: |