Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 51043:8228e8dd96dd
revlog: skip opener options to pass max_chain_len
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:03:18 +0200 |
parents | d900f74456cc |
children | 940445de2b09 |
comparison
equal
deleted
inserted
replaced
51042:d900f74456cc | 51043:8228e8dd96dd |
---|---|
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'maxchainlen' in opts: | |
632 self.delta_config.max_chain_len = opts[b'maxchainlen'] | |
633 if b'compengine' in opts: | 631 if b'compengine' in opts: |
634 self.feature_config.compression_engine = opts[b'compengine'] | 632 self.feature_config.compression_engine = opts[b'compengine'] |
635 comp_engine_opts = self.feature_config.compression_engine_options | 633 comp_engine_opts = self.feature_config.compression_engine_options |
636 if b'zlib.level' in opts: | 634 if b'zlib.level' in opts: |
637 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level'] | 635 comp_engine_opts[b'zlib.level'] = opts[b'zlib.level'] |