changeset 49116:cebb263c865c

dirstatemap: move `_drop_entry` out of the common methods Only the Python implementation uses it. Differential Revision: https://phab.mercurial-scm.org/D12514
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 28 Mar 2022 23:38:05 +0200
parents d953a62e4f78
children 4c562108384f
files mercurial/dirstatemap.py
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstatemap.py	Mon Mar 28 23:37:36 2022 +0200
+++ b/mercurial/dirstatemap.py	Mon Mar 28 23:38:05 2022 +0200
@@ -101,13 +101,6 @@
     def _refresh_entry(self, f, entry):
         """record updated state of an entry"""
 
-    def _drop_entry(self, f):
-        """remove any entry for file f
-
-        This should also drop associated copy information
-
-        The fact we actually need to drop it is the responsability of the caller"""
-
     ### disk interaction
 
     def _opendirstatefile(self):
@@ -534,6 +527,11 @@
             self._map.pop(f, None)
 
     def _drop_entry(self, f):
+        """remove any entry for file f
+
+        This should also drop associated copy information
+
+        The fact we actually need to drop it is the responsability of the caller"""
         self._map.pop(f, None)
         self.copymap.pop(f, None)