diff --git a/rust/hg-core/src/copy_tracing.rs b/rust/hg-core/src/copy_tracing.rs index 28886f5c0d58110d5d56deb32b5e60ad78c01c46_cnVzdC9oZy1jb3JlL3NyYy9jb3B5X3RyYWNpbmcucnM=..45a6eae44bac5eeea6c329cab97336deabad93d5_cnVzdC9oZy1jb3JlL3NyYy9jb3B5X3RyYWNpbmcucnM= 100644 --- a/rust/hg-core/src/copy_tracing.rs +++ b/rust/hg-core/src/copy_tracing.rs @@ -570,7 +570,11 @@ (Some(mut e1), Some(mut e2)) => { let cs1 = e1.get_mut(); let cs2 = e2.get(); - cs1.mark_delete_with_pair(current_rev, &cs2); + if cs1 == cs2 { + cs1.mark_delete(current_rev); + } else { + cs1.mark_delete_with_pair(current_rev, &cs2); + } e2.insert(cs1.clone()); } }