[Commented On] D12465: rust-dirstatemap: remove unused `_refresh_entry` implementation

baymax (Baymax, Your Personal Patch-care Companion) phabricator at mercurial-scm.org
Fri Apr 8 16:31:15 UTC 2022


baymax added a comment.
baymax updated this revision to Diff 32937.


  ✅ refresh by Heptapod after a successful CI run (🐙 💚)

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D12465?vs=32901&id=32937

BRANCH
  default

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D12465/new/

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

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS

diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -701,12 +701,6 @@
 
         ### code related to manipulation of entries and copy-sources
 
-        def _refresh_entry(self, f, entry):
-            if not entry.any_tracked:
-                self._map.drop_item_and_copy_source(f)
-            else:
-                self._map.addfile(f, entry)
-
         def set_tracked(self, f):
             return self._map.set_tracked(f)
 



To: Alphare, #hg-reviewers, marmoute
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220408/bf26aa9c/attachment-0002.html>


More information about the Mercurial-patches mailing list