##// END OF EJS Templates
rust-dirstatemap: correctly decrement the copies counter...
Raphaël Gomès -
r49867:ce919b1a stable
parent child Browse files
Show More
@@ -864,14 +864,16 b' impl OwningDirstateMap {'
864 if had_entry {
864 if had_entry {
865 node.data = NodeData::None
865 node.data = NodeData::None
866 }
866 }
867 let mut had_copy_source = false;
867 if let Some(source) = &node.copy_source {
868 if let Some(source) = &node.copy_source {
868 DirstateMap::count_dropped_path(unreachable_bytes, source);
869 DirstateMap::count_dropped_path(unreachable_bytes, source);
870 had_copy_source = true;
869 node.copy_source = None
871 node.copy_source = None
870 }
872 }
871 dropped = Dropped {
873 dropped = Dropped {
872 was_tracked,
874 was_tracked,
873 had_entry,
875 had_entry,
874 had_copy_source: node.copy_source.take().is_some(),
876 had_copy_source,
875 };
877 };
876 }
878 }
877 // After recursion, for both leaf (rest_of_path is None) nodes and
879 // After recursion, for both leaf (rest_of_path is None) nodes and
General Comments 0
You need to be logged in to leave comments. Login now