rust/hg-core/src/dirstate_tree/dirstate_map.rs
branchstable
changeset 50724 a10d823a8e3d
parent 50252 a6b8b1ab9116
child 50863 264072107105
equal deleted inserted replaced
50723:bfbd84c57bda 50724:a10d823a8e3d
   962     pub fn clear(&mut self) {
   962     pub fn clear(&mut self) {
   963         self.with_dmap_mut(|map| {
   963         self.with_dmap_mut(|map| {
   964             map.root = Default::default();
   964             map.root = Default::default();
   965             map.nodes_with_entry_count = 0;
   965             map.nodes_with_entry_count = 0;
   966             map.nodes_with_copy_source_count = 0;
   966             map.nodes_with_copy_source_count = 0;
       
   967             map.unreachable_bytes = map.on_disk.len() as u32;
   967         });
   968         });
   968     }
   969     }
   969 
   970 
   970     pub fn set_tracked(
   971     pub fn set_tracked(
   971         &mut self,
   972         &mut self,