rust/hg-core/src/repo.rs
changeset 48409 005ae1a343f8
parent 48069 3d0a9c6e614d
child 48417 5734b03ecf3e
--- a/rust/hg-core/src/repo.rs	Fri Dec 03 14:36:40 2021 +0100
+++ b/rust/hg-core/src/repo.rs	Tue Nov 16 11:53:58 2021 +0000
@@ -248,6 +248,14 @@
             .contains(requirements::DIRSTATE_V2_REQUIREMENT)
     }
 
+    pub fn has_sparse(&self) -> bool {
+        self.requirements.contains(requirements::SPARSE_REQUIREMENT)
+    }
+
+    pub fn has_narrow(&self) -> bool {
+        self.requirements.contains(requirements::NARROW_REQUIREMENT)
+    }
+
     fn dirstate_file_contents(&self) -> Result<Vec<u8>, HgError> {
         Ok(self
             .hg_vfs()