diff -r f77e4daaf612 -r 005ae1a343f8 rust/hg-core/src/repo.rs --- 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, HgError> { Ok(self .hg_vfs()