diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -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