mercurial/pure/parsers.py
changeset 47531 f5b8f0b9c129
parent 47526 8bcae9bf9e8d
child 47532 ccbabaee5c36
equal deleted inserted replaced
47530:a1745a292885 47531:f5b8f0b9c129
    83         XXX This "state" is a bit obscure and mostly a direct expression of the
    83         XXX This "state" is a bit obscure and mostly a direct expression of the
    84         dirstatev1 format. It would make sense to ultimately deprecate it in
    84         dirstatev1 format. It would make sense to ultimately deprecate it in
    85         favor of the more "semantic" attributes.
    85         favor of the more "semantic" attributes.
    86         """
    86         """
    87         return self._state
    87         return self._state
       
    88 
       
    89     @property
       
    90     def tracked(self):
       
    91         """True is the file is tracked in the working copy"""
       
    92         return self._state in b"nma"
    88 
    93 
    89     @property
    94     @property
    90     def added(self):
    95     def added(self):
    91         """True if the file has been added"""
    96         """True if the file has been added"""
    92         return self._state == b'a'
    97         return self._state == b'a'