diff -r 29aa633815db -r 2ac0e6b23222 rust/hg-core/src/dirstate/dirstate_map.rs --- a/rust/hg-core/src/dirstate/dirstate_map.rs Thu Sep 23 15:29:38 2021 +0200 +++ b/rust/hg-core/src/dirstate/dirstate_map.rs Thu Sep 23 15:36:43 2021 +0200 @@ -195,7 +195,7 @@ /// Remove a file from the dirstate. /// Returns `true` if the file was previously recorded. - pub fn drop_file( + pub fn drop_entry_and_copy_source( &mut self, filename: &HgPath, ) -> Result<(), DirstateError> { @@ -216,6 +216,8 @@ .0 .remove(filename); + self.copy_map.remove(filename); + Ok(()) }