equal
deleted
inserted
replaced
105 if has_meaningful_data: |
105 if has_meaningful_data: |
106 self._mode = parentfiledata[0] |
106 self._mode = parentfiledata[0] |
107 self._size = parentfiledata[1] |
107 self._size = parentfiledata[1] |
108 if has_meaningful_mtime: |
108 if has_meaningful_mtime: |
109 self._mtime = parentfiledata[2] |
109 self._mtime = parentfiledata[2] |
110 |
|
111 @classmethod |
|
112 def new_added(cls): |
|
113 """constructor to help legacy API to build a new "added" item |
|
114 |
|
115 Should eventually be removed |
|
116 """ |
|
117 return cls(wc_tracked=True) |
|
118 |
110 |
119 @classmethod |
111 @classmethod |
120 def new_from_p2(cls): |
112 def new_from_p2(cls): |
121 """constructor to help legacy API to build a new "from_p2" item |
113 """constructor to help legacy API to build a new "from_p2" item |
122 |
114 |