Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51030:cd16b6895f62
revlog: skip opener option to pass delta_both_parents 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:37 +0200 |
parents | 774c00348f9f |
children | a11179fb6bd9 |
comparison
equal
deleted
inserted
replaced
51029:774c00348f9f | 51030:cd16b6895f62 |
---|---|
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 if b'deltabothparents' in opts: | |
634 self.delta_config.delta_both_parents = opts[b'deltabothparents'] | |
635 dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') | 633 dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') |
636 if dps_cgds: | 634 if dps_cgds: |
637 self.delta_config.candidate_group_chunk_size = dps_cgds | 635 self.delta_config.candidate_group_chunk_size = dps_cgds |
638 if b'lazydelta' in opts: | 636 if b'lazydelta' in opts: |
639 self.delta_config.lazy_delta = bool(opts[b'lazydelta']) | 637 self.delta_config.lazy_delta = bool(opts[b'lazydelta']) |