comparison mercurial/revlog.py @ 51035:6ccb07b9eeeb

revlog: skip opener options to pass debug_delta 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:53 +0200
parents a11179fb6bd9
children 83ce99f5e7f2
comparison
equal deleted inserted replaced
51034:a11179fb6bd9 51035:6ccb07b9eeeb
632 self.delta_config.max_chain_len = opts[b'maxchainlen'] 632 self.delta_config.max_chain_len = opts[b'maxchainlen']
633 if b'lazydelta' in opts: 633 if b'lazydelta' in opts:
634 self.delta_config.lazy_delta = bool(opts[b'lazydelta']) 634 self.delta_config.lazy_delta = bool(opts[b'lazydelta'])
635 if self._lazydelta and b'lazydeltabase' in opts: 635 if self._lazydelta and b'lazydeltabase' in opts:
636 self.delta_config.lazy_delta_base = opts[b'lazydeltabase'] 636 self.delta_config.lazy_delta_base = opts[b'lazydeltabase']
637 if b'debug-delta' in opts:
638 self.delta_config.debug_delta = opts[b'debug-delta']
639 if b'compengine' in opts: 637 if b'compengine' in opts:
640 self.feature_config.compression_engine = opts[b'compengine'] 638 self.feature_config.compression_engine = opts[b'compengine']
641 comp_engine_opts = self.feature_config.compression_engine_options 639 comp_engine_opts = self.feature_config.compression_engine_options
642 if b'zlib.level' in opts: 640 if b'zlib.level' in opts:
643 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level'] 641 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']