equal
deleted
inserted
replaced
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 |