##// END OF EJS Templates
rust: use `entry.tracked()` directly...
Raphaël Gomès -
r50027:3f5e207f default
parent child Browse files
Show More
@@ -477,7 +477,7 b" impl<'on_disk> DirstateMap<'on_disk> {"
477 477 let parents = parse_dirstate_entries(
478 478 map.on_disk,
479 479 |path, entry, copy_source| {
480 let tracked = entry.state().is_tracked();
480 let tracked = entry.tracked();
481 481 let node = Self::get_or_insert_node_inner(
482 482 map.on_disk,
483 483 &mut map.unreachable_bytes,
@@ -587,7 +587,7 b" pub(crate) fn for_each_tracked_path<'on_"
587 587 ) -> Result<(), DirstateV2ParseError> {
588 588 for node in read_nodes(on_disk, nodes)? {
589 589 if let Some(entry) = node.entry()? {
590 if entry.state().is_tracked() {
590 if entry.tracked() {
591 591 f(node.full_path(on_disk)?)
592 592 }
593 593 }
@@ -51,7 +51,7 b' impl Dirstate {'
51 51 let _parents = parse_dirstate_entries(
52 52 &self.content,
53 53 |path, entry, _copy_source| {
54 if entry.state().is_tracked() {
54 if entry.tracked() {
55 55 files.push(path)
56 56 }
57 57 Ok(())
@@ -401,7 +401,7 b' impl Repo {'
401 401
402 402 pub fn has_subrepos(&self) -> Result<bool, DirstateError> {
403 403 if let Some(entry) = self.dirstate_map()?.get(HgPath::new(".hgsub"))? {
404 Ok(entry.state().is_tracked())
404 Ok(entry.tracked())
405 405 } else {
406 406 Ok(false)
407 407 }
General Comments 0
You need to be logged in to leave comments. Login now