##// END OF EJS Templates
copies-rust: use the entry API to overwrite deleted entry...
marmoute -
r46767:e166e8a0 default
parent child Browse files
Show More
@@ -523,13 +523,10 b' fn add_from_changes('
523 523 // propagate this information when merging two
524 524 // TimeStampedPathCopies object.
525 525 let deleted = path_map.tokenize(deleted_path);
526 if copies.contains_key(&deleted) {
527 let ttpc = TimeStampedPathCopy {
528 rev: current_rev,
529 path: None,
530 };
531 copies.insert(deleted, ttpc);
532 }
526 copies.entry(deleted).and_modify(|old| {
527 old.rev = current_rev;
528 old.path = None;
529 });
533 530 }
534 531 }
535 532 }
General Comments 0
You need to be logged in to leave comments. Login now