rust/hg-core/src/dirstate_tree/dirstate_map.rs
changeset 48048 76f1c76186a1
parent 48047 9b2a51b2c36a
child 48050 2ac0e6b23222
--- a/rust/hg-core/src/dirstate_tree/dirstate_map.rs	Wed Sep 22 18:56:58 2021 +0200
+++ b/rust/hg-core/src/dirstate_tree/dirstate_map.rs	Thu Sep 23 15:26:33 2021 +0200
@@ -845,7 +845,7 @@
         Ok(self.add_or_remove_file(filename, old_state, entry)?)
     }
 
-    fn drop_file(&mut self, filename: &HgPath) -> Result<bool, DirstateError> {
+    fn drop_file(&mut self, filename: &HgPath) -> Result<(), DirstateError> {
         let was_tracked = self
             .get(filename)?
             .map_or(false, |e| e.state().is_tracked());
@@ -946,11 +946,10 @@
             if dropped.had_copy_source {
                 self.nodes_with_copy_source_count -= 1
             }
-            Ok(dropped.had_entry)
         } else {
             debug_assert!(!was_tracked);
-            Ok(false)
         }
+        Ok(())
     }
 
     fn clear_ambiguous_times(