changeset 48510 | 7f633432ca92 |
parent 48421 | 2097f63575a5 |
child 48809 | 1d5fd9def5ac |
child 49000 | dd6b67d5c256 |
--- a/rust/hg-core/src/repo.rs Tue Dec 07 17:48:50 2021 -0800 +++ b/rust/hg-core/src/repo.rs Tue Nov 09 18:17:52 2021 +0100 @@ -417,6 +417,14 @@ ) } + pub fn has_subrepos(&self) -> Result<bool, DirstateError> { + if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? { + Ok(entry.state().is_tracked()) + } else { + Ok(false) + } + } + pub fn filelog(&self, path: &HgPath) -> Result<Filelog, HgError> { Filelog::open(self, path) }