# HG changeset patch # User Raphaël Gomès # Date 2022-03-28 21:39:28 # Node ID 4c562108384f502fc16e3f8e42044c10867e19fb # Parent cebb263c865c7a1c529e7dafc10612e174334b1c 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 diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py --- a/mercurial/dirstatemap.py +++ b/mercurial/dirstatemap.py @@ -98,9 +98,6 @@ class _dirstatemapcommon: 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 @@ class dirstatemap(_dirstatemapcommon): 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)