changeset 48105:5437a0254590

dirstate-item: use `tracked` instead of the `state` in context Differential Revision: https://phab.mercurial-scm.org/D11530
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 29 Sep 2021 14:57:54 +0200
parents 0dc9ced02a3b
children 3fe500d15e7c
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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