Patchwork D12515: dirstatemap: move `_refresh_entry` out of the common methods

login
register
mail settings
Submitter phabricator
Date April 12, 2022, 4:03 p.m.
Message ID <differential-rev-PHID-DREV-pbzbly5hnkex5wm4d74o-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50863/
State New
Headers show

Comments

phabricator - April 12, 2022, 4:03 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is only used in the Python implementation now

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12515

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -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)