dirstate: use `tracked` property in `_addpath`
It is semantically better.
Differential Revision: https://phab.mercurial-scm.org/D11422
--- a/mercurial/dirstate.py Fri Sep 17 08:57:12 2021 +0200
+++ b/mercurial/dirstate.py Wed Sep 15 09:28:17 2021 +0200
@@ -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)