diff rust/hg-core/src/requirements.rs @ 49061:81d293eb5264

rust-requirements: allow loading repos with `bookmarksinstore` requirement `rhg` does support bookmarks, so it can load repos with the `bookmarksinstore` requirement just as well as other repos. Differential Revision: https://phab.mercurial-scm.org/D12425
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 31 Mar 2022 22:02:46 -0700
parents 005ae1a343f8
children 4450faeb52bb
line wrap: on
line diff
--- a/rust/hg-core/src/requirements.rs	Sat Apr 09 14:43:30 2022 +0200
+++ b/rust/hg-core/src/requirements.rs	Thu Mar 31 22:02:46 2022 -0700
@@ -92,6 +92,8 @@
     // not should opt out by checking `has_sparse` and `has_narrow`.
     SPARSE_REQUIREMENT,
     NARROW_REQUIREMENT,
+    // rhg doesn't care about bookmarks at all yet
+    BOOKMARKS_IN_STORE_REQUIREMENT,
 ];
 
 // Copied from mercurial/requirements.py:
@@ -103,6 +105,11 @@
 #[allow(unused)]
 pub(crate) const NARROW_REQUIREMENT: &str = "narrowhg-experimental";
 
+/// Bookmarks must be stored in the `store` part of the repository and will be
+/// share accross shares
+#[allow(unused)]
+pub(crate) const BOOKMARKS_IN_STORE_REQUIREMENT: &str = "bookmarksinstore";
+
 /// Enables sparse working directory usage
 #[allow(unused)]
 pub(crate) const SPARSE_REQUIREMENT: &str = "exp-sparse";