[Request] [+ ] D11422: dirstate: use `tracked` property in `_addpath`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Thu Sep 16 14:42:19 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It is semantically better.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11422
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
@@ -674,7 +674,7 @@
possibly_dirty=False,
):
entry = self._map.get(f)
- if added or entry is not None and entry.removed:
+ if added or entry is not None and not entry.tracked:
self._check_new_tracked_filename(f)
self._dirty = True
self._updatedfiles.add(f)
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210916/5d2f0791/attachment.html>
More information about the Mercurial-patches
mailing list