dirstate: drop the `_addpath` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Sep 2021 12:38:56 +0200
changeset 47995 e7d0a511965c
parent 47994 ccb9cc47b7b6
child 47996 aa442fde0ea5
dirstate: drop the `_addpath` method All user have been migrated. Differential Revision: https://phab.mercurial-scm.org/D11435
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Wed Sep 15 12:33:59 2021 +0200
+++ b/mercurial/dirstate.py	Wed Sep 15 12:38:56 2021 +0200
@@ -667,33 +667,6 @@
             # modifications that happen within the same timeslot.
             self._lastnormaltime = parentfiledata[2]
 
-    def _addpath(
-        self,
-        f,
-        mode=0,
-        size=None,
-        mtime=None,
-        added=False,
-        merged=False,
-        from_p2=False,
-        possibly_dirty=False,
-    ):
-        entry = self._map.get(f)
-        if added or entry is not None and not entry.tracked:
-            self._check_new_tracked_filename(f)
-        self._dirty = True
-        self._updatedfiles.add(f)
-        self._map.addfile(
-            f,
-            mode=mode,
-            size=size,
-            mtime=mtime,
-            added=added,
-            merged=merged,
-            from_p2=from_p2,
-            possibly_dirty=possibly_dirty,
-        )
-
     def _check_new_tracked_filename(self, filename):
         scmutil.checkfilename(filename)
         if self._map.hastrackeddir(filename):