Mercurial > hg-stable
changeset 46873:0abf5eba0042
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Apr 2021 13:31:15 +0200 |
parents | 8bca353b1ebc |
children | 84a93fa7ecfd |
files | rust/hg-core/src/requirements.rs |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/hg-core/src/requirements.rs Wed Mar 31 12:46:54 2021 -0700 +++ b/rust/hg-core/src/requirements.rs Wed Apr 07 13:31:15 2021 +0200 @@ -81,6 +81,7 @@ 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 @@ /// `.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";