# HG changeset patch # User Pierre-Yves David # Date 2021-04-07 11:31:15 # Node ID 3c4707065a62b7ad7b41dff2a5c5f22aa19e681a # Parent 67414b0aadbb6ffa55114a1f813df1ce9ad95181 rhg: make rhg recognise it supports zstd compression for revlogs It already did, but was not aware of it. Differential Revision: https://phab.mercurial-scm.org/D10324 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 @@ -81,6 +81,7 @@ const SUPPORTED: &[&str] = &[ SHARESAFE_REQUIREMENT, SPARSEREVLOG_REQUIREMENT, RELATIVE_SHARED_REQUIREMENT, + REVLOG_COMPRESSION_ZSTD, // 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: @@ -151,3 +152,7 @@ pub(crate) const RELATIVE_SHARED_REQUIRE /// `.hg/store/requires` are present. #[allow(unused)] pub(crate) const SHARESAFE_REQUIREMENT: &str = "share-safe"; + +/// A repository that use zstd compression inside its revlog +#[allow(unused)] +pub(crate) const REVLOG_COMPRESSION_ZSTD: &str = "revlog-compression-zstd";