comparison mercurial/localrepo.py @ 51038:683b96c416d8

revlog: skip opener options to pass enable_ellipsis 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:42 +0200
parents 7d66621c5349
children 027bc364524b
comparison
equal deleted inserted replaced
51037:7d66621c5349 51038:683b96c416d8
1163 msg = _(b'invalid value for `storage.revlog.zstd.level` config: %d') 1163 msg = _(b'invalid value for `storage.revlog.zstd.level` config: %d')
1164 raise error.Abort(msg % zstd_level) 1164 raise error.Abort(msg % zstd_level)
1165 feature_config.compression_engine_options[b'zstd.level'] = zstd_level 1165 feature_config.compression_engine_options[b'zstd.level'] = zstd_level
1166 1166
1167 if requirementsmod.NARROW_REQUIREMENT in requirements: 1167 if requirementsmod.NARROW_REQUIREMENT in requirements:
1168 options[b'enableellipsis'] = True 1168 feature_config.enable_ellipsis = True
1169 1169
1170 if ui.configbool(b'experimental', b'rust.index'): 1170 if ui.configbool(b'experimental', b'rust.index'):
1171 options[b'rust.index'] = True 1171 options[b'rust.index'] = True
1172 if requirementsmod.NODEMAP_REQUIREMENT in requirements: 1172 if requirementsmod.NODEMAP_REQUIREMENT in requirements:
1173 slow_path = ui.config( 1173 slow_path = ui.config(