[Updated] D11435: dirstate: drop the `_addpath` method
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Sep 20 14:08:31 UTC 2021
Closed by commit rHGe7d0a511965c: dirstate: drop the `_addpath` method (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11435?vs=30273&id=30317
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11435/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11435
AFFECTED FILES
mercurial/dirstate.py
CHANGE DETAILS
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -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):
To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210920/644bbb79/attachment-0002.html>
More information about the Mercurial-patches
mailing list