equal
deleted
inserted
replaced
880 self.with_dmap_mut(|map| { |
880 self.with_dmap_mut(|map| { |
881 map.root = Default::default(); |
881 map.root = Default::default(); |
882 map.nodes_with_entry_count = 0; |
882 map.nodes_with_entry_count = 0; |
883 map.nodes_with_copy_source_count = 0; |
883 map.nodes_with_copy_source_count = 0; |
884 }); |
884 }); |
885 } |
|
886 |
|
887 pub fn set_entry( |
|
888 &mut self, |
|
889 filename: &HgPath, |
|
890 entry: DirstateEntry, |
|
891 ) -> Result<(), DirstateV2ParseError> { |
|
892 self.with_dmap_mut(|map| { |
|
893 map.get_or_insert(&filename)?.data = NodeData::Entry(entry); |
|
894 Ok(()) |
|
895 }) |
|
896 } |
885 } |
897 |
886 |
898 pub fn set_tracked( |
887 pub fn set_tracked( |
899 &mut self, |
888 &mut self, |
900 filename: &HgPath, |
889 filename: &HgPath, |