dirstate-item: implement `tracked` in a simpler way
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 27 Aug 2021 17:07:12 +0200
changeset 47928 f1033c2d9b66
parent 47927 b81f52ca8075
child 47929 03f57915e0ce
dirstate-item: implement `tracked` in a simpler way We can simply use the underlying attribute. Differential Revision: https://phab.mercurial-scm.org/D11365
mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py	Fri Aug 27 15:10:21 2021 +0200
+++ b/mercurial/pure/parsers.py	Fri Aug 27 17:07:12 2021 +0200
@@ -263,7 +263,7 @@
     @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):