diff --git a/rust/hg-core/src/requirements.rs b/rust/hg-core/src/requirements.rs --- a/rust/hg-core/src/requirements.rs +++ b/rust/hg-core/src/requirements.rs @@ -84,6 +84,7 @@ const SUPPORTED: &[&str] = &[ RELATIVE_SHARED_REQUIREMENT, REVLOG_COMPRESSION_ZSTD, DIRSTATE_V2_REQUIREMENT, + DIRSTATE_TRACKED_HINT_V1, // As of this writing everything rhg does is read-only. // When it starts writing to the repository, it’ll need to either keep the // persistent nodemap up to date or remove this entry: diff --git a/rust/rhg/src/main.rs b/rust/rhg/src/main.rs --- a/rust/rhg/src/main.rs +++ b/rust/rhg/src/main.rs @@ -737,7 +737,7 @@ const AUTO_UPGRADES: &[((&str, &str), (& 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, ), diff --git a/tests/test-status-tracked-key.t b/tests/test-status-tracked-key.t --- a/tests/test-status-tracked-key.t +++ b/tests/test-status-tracked-key.t @@ -227,6 +227,11 @@ upgrade it to dirstate-tracked-hint auto $ hg debugformat -R auto-upgrade | grep tracked tracked-hint: yes +rhg supports this feature + + $ hg status -R auto-upgrade \ + > --config format.use-dirstate-tracked-hint=yes --config rhg.on-unsupported=abort + downgrade it from dirstate-tracked-hint automatically $ hg status -R auto-upgrade \