Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/repo.rs @ 48510:7f633432ca92
rhg: Sub-repositories are not supported
Differential Revision: https://phab.mercurial-scm.org/D11940
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Tue, 09 Nov 2021 18:17:52 +0100 |
parents | 2097f63575a5 |
children | 1d5fd9def5ac dd6b67d5c256 |
comparison
equal
deleted
inserted
replaced
48509:5151b0f6519e | 48510:7f633432ca92 |
---|---|
415 .manifest_node()? | 415 .manifest_node()? |
416 .into(), | 416 .into(), |
417 ) | 417 ) |
418 } | 418 } |
419 | 419 |
420 pub fn has_subrepos(&self) -> Result<bool, DirstateError> { | |
421 if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? { | |
422 Ok(entry.state().is_tracked()) | |
423 } else { | |
424 Ok(false) | |
425 } | |
426 } | |
427 | |
420 pub fn filelog(&self, path: &HgPath) -> Result<Filelog, HgError> { | 428 pub fn filelog(&self, path: &HgPath) -> Result<Filelog, HgError> { |
421 Filelog::open(self, path) | 429 Filelog::open(self, path) |
422 } | 430 } |
423 | 431 |
424 /// Write to disk any updates that were made through `dirstate_map_mut`. | 432 /// Write to disk any updates that were made through `dirstate_map_mut`. |