comparison tests/test-status-tracked-key.t @ 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 e4b31016e194
children 13c0e3b4fd35
comparison
equal deleted inserted replaced
49492:b3e77d536b53 49500:3a53871048dc
225 automatically upgrading repository to the `tracked-hint` feature 225 automatically upgrading repository to the `tracked-hint` feature
226 (see `hg help config.format.use-dirstate-tracked-hint` for details) 226 (see `hg help config.format.use-dirstate-tracked-hint` for details)
227 $ hg debugformat -R auto-upgrade | grep tracked 227 $ hg debugformat -R auto-upgrade | grep tracked
228 tracked-hint: yes 228 tracked-hint: yes
229 229
230 rhg supports this feature
231
232 $ hg status -R auto-upgrade \
233 > --config format.use-dirstate-tracked-hint=yes --config rhg.on-unsupported=abort
234
230 downgrade it from dirstate-tracked-hint automatically 235 downgrade it from dirstate-tracked-hint automatically
231 236
232 $ hg status -R auto-upgrade \ 237 $ hg status -R auto-upgrade \
233 > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \ 238 > --config format.use-dirstate-tracked-hint.automatic-upgrade-of-mismatching-repositories=yes \
234 > --config format.use-dirstate-tracked-hint=no 239 > --config format.use-dirstate-tracked-hint=no