rust/hg-core/src/dirstate/dirstate_map.rs
changeset 48050 2ac0e6b23222
parent 48048 76f1c76186a1
child 48051 98c0408324e6
--- 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(())
     }