[Commented On] D11332: dirstatemap: also discard item from sets
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Thu Aug 26 13:01:48 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 30058.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11332?vs=29981&id=30058
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11332/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11332
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
@@ -199,8 +199,12 @@
self._map[f] = new_entry
if new_entry.dm_nonnormal:
self.nonnormalset.add(f)
+ else:
+ self.nonnormalset.discard(f)
if new_entry.dm_otherparent:
self.otherparentset.add(f)
+ else:
+ self.otherparentset.discard(f)
def reset_state(
self,
To: marmoute, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210826/8d681721/attachment-0002.html>
More information about the Mercurial-patches
mailing list