mercurial/pure/parsers.py
changeset 47512 769037a279ec
parent 47509 80dc1d452993
child 47513 10e740292dff
equal deleted inserted replaced
47511:eaae39894312 47512:769037a279ec
    61             return self._size
    61             return self._size
    62         elif idx == 3 or idx == -1:
    62         elif idx == 3 or idx == -1:
    63             return self._mtime
    63             return self._mtime
    64         else:
    64         else:
    65             raise IndexError(idx)
    65             raise IndexError(idx)
       
    66 
       
    67     @property
       
    68     def state(self):
       
    69         """
       
    70         States are:
       
    71           n  normal
       
    72           m  needs merging
       
    73           r  marked for removal
       
    74           a  marked for addition
       
    75 
       
    76         XXX This "state" is a bit obscure and mostly a direct expression of the
       
    77         dirstatev1 format. It would make sense to ultimately deprecate it in
       
    78         favor of the more "semantic" attributes.
       
    79         """
       
    80         return self._state
    66 
    81 
    67     def v1_state(self):
    82     def v1_state(self):
    68         """return a "state" suitable for v1 serialization"""
    83         """return a "state" suitable for v1 serialization"""
    69         return self._state
    84         return self._state
    70 
    85