comparison rust/hg-core/src/dirstate_tree/dirstate_map.rs @ 47105:ba17a2ee85ac

dirstate-tree: Add clear_ambiguous_times in the new DirstateMap Also drive-by refactor it in the other DirstateMap Differential Revision: https://phab.mercurial-scm.org/D10489
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 12 Apr 2021 18:42:51 +0200
parents fdf6cfa0e254
children 52906934b775
comparison
equal deleted inserted replaced
47104:fdf6cfa0e254 47105:ba17a2ee85ac
285 _old_state: EntryState, 285 _old_state: EntryState,
286 ) -> Result<bool, DirstateMapError> { 286 ) -> Result<bool, DirstateMapError> {
287 todo!() 287 todo!()
288 } 288 }
289 289
290 fn clear_ambiguous_times( 290 fn clear_ambiguous_times(&mut self, filenames: Vec<HgPathBuf>, now: i32) {
291 &mut self, 291 for filename in filenames {
292 _filenames: Vec<HgPathBuf>, 292 if let Some(node) = Self::get_node_mut(&mut self.root, &filename) {
293 _now: i32, 293 if let Some(entry) = node.entry.as_mut() {
294 ) { 294 clear_ambiguous_mtime(entry, now);
295 todo!() 295 }
296 }
297 }
296 } 298 }
297 299
298 fn non_normal_entries_contains(&mut self, _key: &HgPath) -> bool { 300 fn non_normal_entries_contains(&mut self, _key: &HgPath) -> bool {
299 todo!() 301 todo!()
300 } 302 }