Mercurial > hg
comparison rust/hg-core/src/requirements.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 | e4b31016e194 |
children | 13f58ce70299 |
comparison
equal
deleted
inserted
replaced
49492:b3e77d536b53 | 49500:3a53871048dc |
---|---|
82 SHARESAFE_REQUIREMENT, | 82 SHARESAFE_REQUIREMENT, |
83 SPARSEREVLOG_REQUIREMENT, | 83 SPARSEREVLOG_REQUIREMENT, |
84 RELATIVE_SHARED_REQUIREMENT, | 84 RELATIVE_SHARED_REQUIREMENT, |
85 REVLOG_COMPRESSION_ZSTD, | 85 REVLOG_COMPRESSION_ZSTD, |
86 DIRSTATE_V2_REQUIREMENT, | 86 DIRSTATE_V2_REQUIREMENT, |
87 DIRSTATE_TRACKED_HINT_V1, | |
87 // As of this writing everything rhg does is read-only. | 88 // As of this writing everything rhg does is read-only. |
88 // When it starts writing to the repository, it’ll need to either keep the | 89 // When it starts writing to the repository, it’ll need to either keep the |
89 // persistent nodemap up to date or remove this entry: | 90 // persistent nodemap up to date or remove this entry: |
90 NODEMAP_REQUIREMENT, | 91 NODEMAP_REQUIREMENT, |
91 // Not all commands support `sparse` and `narrow`. The commands that do | 92 // Not all commands support `sparse` and `narrow`. The commands that do |