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
--- 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)