Patchwork D10324: rhg: make rhg recognise it support zstd compression for revlogs

login
register
mail settings
Submitter phabricator
Date April 7, 2021, 11:54 a.m.
Message ID <differential-rev-PHID-DREV-rmx2oays5yxqhsvubgjx-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48641/
State Superseded
Headers show

Comments

phabricator - April 7, 2021, 11:54 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It already did, but was not aware of it.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10324

AFFECTED FILES
  rust/hg-core/src/requirements.rs

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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 @@ 
     SHARESAFE_REQUIREMENT,
     SPARSEREVLOG_REQUIREMENT,
     RELATIVE_SHARED_REQUIREMENT,
+    REVLOG_COMPRESSION_STD,
     // 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_STD: &str = "revlog-compression-zstd";