Show More
@@ -10,7 +10,6 b'' | |||||
10 | //! Used to counts the references to directories in a manifest or dirstate. |
|
10 | //! Used to counts the references to directories in a manifest or dirstate. | |
11 | use crate::dirstate_tree::on_disk::DirstateV2ParseError; |
|
11 | use crate::dirstate_tree::on_disk::DirstateV2ParseError; | |
12 | use crate::{ |
|
12 | use crate::{ | |
13 | dirstate::EntryState, |
|
|||
14 | utils::{ |
|
13 | utils::{ | |
15 | files, |
|
14 | files, | |
16 | hg_path::{HgPath, HgPathBuf, HgPathError}, |
|
15 | hg_path::{HgPath, HgPathBuf, HgPathError}, | |
@@ -49,7 +48,7 b' impl DirsMultiset {' | |||||
49 | let filename = filename.as_ref(); |
|
48 | let filename = filename.as_ref(); | |
50 | // This `if` is optimized out of the loop |
|
49 | // This `if` is optimized out of the loop | |
51 | if only_tracked { |
|
50 | if only_tracked { | |
52 |
if entry. |
|
51 | if !entry.removed() { | |
53 | multiset.add_path(filename)?; |
|
52 | multiset.add_path(filename)?; | |
54 | } |
|
53 | } | |
55 | } else { |
|
54 | } else { | |
@@ -215,6 +214,8 b" impl<'a> DirsChildrenMultiset<'a> {" | |||||
215 |
|
214 | |||
216 | #[cfg(test)] |
|
215 | #[cfg(test)] | |
217 | mod tests { |
|
216 | mod tests { | |
|
217 | use crate::EntryState; | |||
|
218 | ||||
218 | use super::*; |
|
219 | use super::*; | |
219 |
|
220 | |||
220 | #[test] |
|
221 | #[test] |
General Comments 0
You need to be logged in to leave comments.
Login now