Mercurial > hg
comparison rust/hg-core/src/requirements.rs @ 47374:bd88b6bfd8da
rhg: Add support for dirstate-v2
Differential Revision: https://phab.mercurial-scm.org/D10804
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 25 May 2021 09:20:30 +0200 |
parents | 21b3e6116bd1 |
children | 9cd35c8c6044 |
comparison
equal
deleted
inserted
replaced
47373:d2fb8b4adcc3 | 47374:bd88b6bfd8da |
---|---|
80 SHARED_REQUIREMENT, | 80 SHARED_REQUIREMENT, |
81 SHARESAFE_REQUIREMENT, | 81 SHARESAFE_REQUIREMENT, |
82 SPARSEREVLOG_REQUIREMENT, | 82 SPARSEREVLOG_REQUIREMENT, |
83 RELATIVE_SHARED_REQUIREMENT, | 83 RELATIVE_SHARED_REQUIREMENT, |
84 REVLOG_COMPRESSION_ZSTD, | 84 REVLOG_COMPRESSION_ZSTD, |
85 DIRSTATE_V2_REQUIREMENT, | |
85 // As of this writing everything rhg does is read-only. | 86 // As of this writing everything rhg does is read-only. |
86 // When it starts writing to the repository, it’ll need to either keep the | 87 // When it starts writing to the repository, it’ll need to either keep the |
87 // persistent nodemap up to date or remove this entry: | 88 // persistent nodemap up to date or remove this entry: |
88 NODEMAP_REQUIREMENT, | 89 NODEMAP_REQUIREMENT, |
89 ]; | 90 ]; |
90 | 91 |
91 // Copied from mercurial/requirements.py: | 92 // Copied from mercurial/requirements.py: |
93 | |
94 pub(crate) const DIRSTATE_V2_REQUIREMENT: &str = "exp-dirstate-v2"; | |
92 | 95 |
93 /// When narrowing is finalized and no longer subject to format changes, | 96 /// When narrowing is finalized and no longer subject to format changes, |
94 /// we should move this to just "narrow" or similar. | 97 /// we should move this to just "narrow" or similar. |
95 #[allow(unused)] | 98 #[allow(unused)] |
96 pub(crate) const NARROW_REQUIREMENT: &str = "narrowhg-experimental"; | 99 pub(crate) const NARROW_REQUIREMENT: &str = "narrowhg-experimental"; |