# HG changeset patch # User Pierre-Yves David # Date 2021-08-27 15:07:12 # Node ID f1033c2d9b668c7e9db4cfb1fd9d5cb996e63e5f # Parent b81f52ca80753fe3e5efcc1aecf9bb4cc6a77144 dirstate-item: implement `tracked` in a simpler way We can simply use the underlying attribute. Differential Revision: https://phab.mercurial-scm.org/D11365 diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py +++ b/mercurial/pure/parsers.py @@ -263,7 +263,7 @@ class DirstateItem(object): @property def tracked(self): """True is the file is tracked in the working copy""" - return self.v1_state() in b"nma" + return self._wc_tracked @property def added(self):