rust/hg-core/src/requirements.rs
changeset 47374 bd88b6bfd8da
parent 47229 21b3e6116bd1
child 47952 9cd35c8c6044
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";