D11426: dirstate: removed the now unused `_add` method
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Sep 16 14:42:58 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11426
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
@@ -744,10 +744,6 @@
self._addpath(f, possibly_dirty=True)
self._map.copymap.pop(f, None)
- def _add(self, filename):
- """internal function to mark a file as added"""
- self._addpath(filename, added=True)
-
def _drop(self, filename):
"""internal function to drop a file from the dirstate"""
if self._map.dropfile(filename):
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list