Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 49778: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 | 523cacdfd324 |
children | 4bd12c0f531e |
line wrap: on
line diff
--- a/mercurial/configitems.py Mon Nov 21 15:04:19 2022 +0100 +++ b/mercurial/configitems.py Tue Nov 22 12:44:22 2022 +0100 @@ -923,6 +923,13 @@ b'changegroup4', default=False, ) + +# might remove rank configuration once the computation has no impact +coreconfigitem( + b'experimental', + b'changelog-v2.compute-rank', + default=True, +) coreconfigitem( b'experimental', b'cleanup-as-archived',