[Updated] D11422: dirstate: use `tracked` property in `_addpath`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Mon Sep 20 14:06:38 UTC 2021
Closed by commit rHG36c0d738c330: dirstate: use `tracked` property in `_addpath` (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/D11422?vs=30260&id=30304
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11422/new/
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, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210920/f9902bbb/attachment-0002.html>
More information about the Mercurial-patches
mailing list