comparison mercurial/localrepo.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
1138 if sparserevlog: 1138 if sparserevlog:
1139 maxchainlen = revlogconst.SPARSE_REVLOG_MAX_CHAIN_LENGTH 1139 maxchainlen = revlogconst.SPARSE_REVLOG_MAX_CHAIN_LENGTH
1140 # experimental config: format.maxchainlen 1140 # experimental config: format.maxchainlen
1141 maxchainlen = ui.configint(b'format', b'maxchainlen', maxchainlen) 1141 maxchainlen = ui.configint(b'format', b'maxchainlen', maxchainlen)
1142 if maxchainlen is not None: 1142 if maxchainlen is not None:
1143 options[b'maxchainlen'] = maxchainlen 1143 delta_config.max_chain_len = maxchainlen
1144 1144
1145 for r in requirements: 1145 for r in requirements:
1146 # we allow multiple compression engine requirement to co-exist because 1146 # we allow multiple compression engine requirement to co-exist because
1147 # strickly speaking, revlog seems to support mixed compression style. 1147 # strickly speaking, revlog seems to support mixed compression style.
1148 # 1148 #