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