diff rust/rhg/src/main.rs @ 49500:3a53871048dc stable

rhg: fix bugs around [use-dirstate-tracked-hint] and repo auto-upgrade This makes two changes: - make rhg support the [dirstate-tracked-key-v1] requirement. I believe rhg never changes the tracked file set, so it's OK that it doesn't have any logic for writing this file. - fix the name of [format.use-dirstate-v2.automatic-upgrade-of-mismatching-repositories] config option in rhg, which makes rhg actually honor the auto-upgrade. These two issues cancelled each other out in tests (auto-upgrade was happening because [dirstate-tracked-key-v1] forced the fallback, not because of the config), which is I think why they went unnoticed earlier.
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 22 Sep 2022 16:05:22 -0400
parents 411d591e0a27
children 44bc045a43ca
line wrap: on
line diff
--- a/rust/rhg/src/main.rs	Tue Sep 20 13:38:07 2022 -0400
+++ b/rust/rhg/src/main.rs	Thu Sep 22 16:05:22 2022 -0400
@@ -737,7 +737,7 @@
         requirements::DIRSTATE_TRACKED_HINT_V1,
     ),
     (
-        ("use-dirstate-v2", "automatic-upgrade-of-mismatching-repositories"),
+        ("format", "use-dirstate-v2.automatic-upgrade-of-mismatching-repositories"),
         ("format", "use-dirstate-v2"),
         requirements::DIRSTATE_V2_REQUIREMENT,
     ),