dirstatemap: move `_refresh_entry` out of the common methods
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 28 Mar 2022 23:39:28 +0200
changeset 49117 4c562108384f
parent 49116 cebb263c865c
child 49118 2c78dd3f11de
dirstatemap: move `_refresh_entry` out of the common methods This is only used in the Python implementation now Differential Revision: https://phab.mercurial-scm.org/D12515
mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py	Mon Mar 28 23:38:05 2022 +0200
+++ b/mercurial/dirstatemap.py	Mon Mar 28 23:39:28 2022 +0200
@@ -98,9 +98,6 @@
         tracking in a different way.
         """
 
-    def _refresh_entry(self, f, entry):
-        """record updated state of an entry"""
-
     ### disk interaction
 
     def _opendirstatefile(self):
@@ -523,6 +520,7 @@
         self._refresh_entry(filename, entry)
 
     def _refresh_entry(self, f, entry):
+        """record updated state of an entry"""
         if not entry.any_tracked:
             self._map.pop(f, None)