[Updated] D11443: dirstate: drop the `dirstatemap.dropfile` method
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Sep 20 14:09:01 UTC 2021
Closed by commit rHG5e7eea915019: dirstate: drop the `dirstatemap.dropfile` 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/D11443?vs=30281&id=30325
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11443/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11443
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
@@ -320,17 +320,6 @@
entry.set_untracked()
return True
- def dropfile(self, f):
- """
- Remove a file from the dirstate. Returns True if the file was
- previously recorded.
- """
- old_entry = self._map.pop(f, None)
- self._dirs_decr(f, old_entry=old_entry)
- self.nonnormalset.discard(f)
- self.copymap.pop(f, None)
- return old_entry is not None
-
def clearambiguoustimes(self, files, now):
for f in files:
e = self.get(f)
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/aa6420cd/attachment-0002.html>
More information about the Mercurial-patches
mailing list