dirstate-item: use `tracked` instead of the `state` in context
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 29 Sep 2021 14:57:54 +0200
changeset 48105 5437a0254590
parent 48104 0dc9ced02a3b
child 48106 3fe500d15e7c
dirstate-item: use `tracked` instead of the `state` in context Differential Revision: https://phab.mercurial-scm.org/D11530
mercurial/context.py
--- a/mercurial/context.py	Wed Sep 29 14:56:23 2021 +0200
+++ b/mercurial/context.py	Wed Sep 29 14:57:54 2021 +0200
@@ -1555,7 +1555,7 @@
                 yield f
 
     def __contains__(self, key):
-        return self._repo.dirstate[key] not in b"?r"
+        return self._repo.dirstate.get_entry(key).tracked
 
     def hex(self):
         return self._repo.nodeconstants.wdirhex