Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 51037:774c00348f9f
revlog: skip opener option to pass chunk_cache_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:29 +0200 |
parents | 133f5a54ed9d |
children | cd16b6895f62 |
comparison
equal
deleted
inserted
replaced
51036:133f5a54ed9d | 51037:774c00348f9f |
---|---|
626 elif b'revlogv0' in self.opener.options: | 626 elif b'revlogv0' in self.opener.options: |
627 new_header = REVLOGV0 | 627 new_header = REVLOGV0 |
628 else: | 628 else: |
629 new_header = REVLOG_DEFAULT_VERSION | 629 new_header = REVLOG_DEFAULT_VERSION |
630 | 630 |
631 if b'chunkcachesize' in opts: | |
632 self.data_config.chunk_cache_size = opts[b'chunkcachesize'] | |
633 if b'maxchainlen' in opts: | 631 if b'maxchainlen' in opts: |
634 self.delta_config.max_chain_len = opts[b'maxchainlen'] | 632 self.delta_config.max_chain_len = opts[b'maxchainlen'] |
635 if b'deltabothparents' in opts: | 633 if b'deltabothparents' in opts: |
636 self.delta_config.delta_both_parents = opts[b'deltabothparents'] | 634 self.delta_config.delta_both_parents = opts[b'deltabothparents'] |
637 dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') | 635 dps_cgds = opts.get(b'delta-parent-search.candidate-group-chunk-size') |