comparison mercurial/localrepo.py @ 49663:45d7b8c380d7

changelog-v2: add a configuration to disable rank computation We encountered a graph where rank computation was pathologically slow. We add an option to disable this computation while this is getting fixed. Disabling the rank computation should allow for testing other changelog-v2 features undisturbed (like changeset-based copy tracing). I am purposely not adding a test for the new non-default code path, as this is a temporary work around of an experimental feature.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 22 Nov 2022 12:44:22 +0100
parents f5f113f1b011
children 78af51ba73c5
comparison
equal deleted inserted replaced
49662:7aea9babac5d 49663:45d7b8c380d7
1066 options[b'revlogv1'] = True 1066 options[b'revlogv1'] = True
1067 if requirementsmod.REVLOGV2_REQUIREMENT in requirements: 1067 if requirementsmod.REVLOGV2_REQUIREMENT in requirements:
1068 options[b'revlogv2'] = True 1068 options[b'revlogv2'] = True
1069 if requirementsmod.CHANGELOGV2_REQUIREMENT in requirements: 1069 if requirementsmod.CHANGELOGV2_REQUIREMENT in requirements:
1070 options[b'changelogv2'] = True 1070 options[b'changelogv2'] = True
1071 cmp_rank = ui.configbool(b'experimental', b'changelog-v2.compute-rank')
1072 options[b'changelogv2.compute-rank'] = cmp_rank
1071 1073
1072 if requirementsmod.GENERALDELTA_REQUIREMENT in requirements: 1074 if requirementsmod.GENERALDELTA_REQUIREMENT in requirements:
1073 options[b'generaldelta'] = True 1075 options[b'generaldelta'] = True
1074 1076
1075 # experimental config: format.chunkcachesize 1077 # experimental config: format.chunkcachesize