Show More
@@ -225,15 +225,15 b' class DirstateItem(object):' | |||
|
225 | 225 | |
|
226 | 226 | @property |
|
227 | 227 | def mode(self): |
|
228 | return self._mode | |
|
228 | return self.v1_mode() | |
|
229 | 229 | |
|
230 | 230 | @property |
|
231 | 231 | def size(self): |
|
232 | return self._size | |
|
232 | return self.v1_size() | |
|
233 | 233 | |
|
234 | 234 | @property |
|
235 | 235 | def mtime(self): |
|
236 | return self._mtime | |
|
236 | return self.v1_mtime() | |
|
237 | 237 | |
|
238 | 238 | @property |
|
239 | 239 | def state(self): |
@@ -248,17 +248,17 b' class DirstateItem(object):' | |||
|
248 | 248 | dirstatev1 format. It would make sense to ultimately deprecate it in |
|
249 | 249 | favor of the more "semantic" attributes. |
|
250 | 250 | """ |
|
251 | return self._state | |
|
251 | return self.v1_state() | |
|
252 | 252 | |
|
253 | 253 | @property |
|
254 | 254 | def tracked(self): |
|
255 | 255 | """True is the file is tracked in the working copy""" |
|
256 | return self._state in b"nma" | |
|
256 | return self.v1_state() in b"nma" | |
|
257 | 257 | |
|
258 | 258 | @property |
|
259 | 259 | def added(self): |
|
260 | 260 | """True if the file has been added""" |
|
261 | return self._state == b'a' | |
|
261 | return self.v1_state() == b'a' | |
|
262 | 262 | |
|
263 | 263 | @property |
|
264 | 264 | def merged(self): |
@@ -266,7 +266,7 b' class DirstateItem(object):' | |||
|
266 | 266 | |
|
267 | 267 | Should only be set if a merge is in progress in the dirstate |
|
268 | 268 | """ |
|
269 | return self._state == b'm' | |
|
269 | return self.v1_state() == b'm' | |
|
270 | 270 | |
|
271 | 271 | @property |
|
272 | 272 | def from_p2(self): |
@@ -276,7 +276,7 b' class DirstateItem(object):' | |||
|
276 | 276 | |
|
277 | 277 | Should only be set if a merge is in progress in the dirstate |
|
278 | 278 | """ |
|
279 | return self._state == b'n' and self._size == FROM_P2 | |
|
279 | return self.v1_state() == b'n' and self.v1_size() == FROM_P2 | |
|
280 | 280 | |
|
281 | 281 | @property |
|
282 | 282 | def from_p2_removed(self): |
@@ -285,12 +285,12 b' class DirstateItem(object):' | |||
|
285 | 285 | This property seems like an abstraction leakage and should probably be |
|
286 | 286 | dealt in this class (or maybe the dirstatemap) directly. |
|
287 | 287 | """ |
|
288 | return self._state == b'r' and self._size == FROM_P2 | |
|
288 | return self.v1_state() == b'r' and self.v1_size() == FROM_P2 | |
|
289 | 289 | |
|
290 | 290 | @property |
|
291 | 291 | def removed(self): |
|
292 | 292 | """True if the file has been removed""" |
|
293 | return self._state == b'r' | |
|
293 | return self.v1_state() == b'r' | |
|
294 | 294 | |
|
295 | 295 | @property |
|
296 | 296 | def merged_removed(self): |
@@ -299,7 +299,7 b' class DirstateItem(object):' | |||
|
299 | 299 | This property seems like an abstraction leakage and should probably be |
|
300 | 300 | dealt in this class (or maybe the dirstatemap) directly. |
|
301 | 301 | """ |
|
302 | return self._state == b'r' and self._size == NONNORMAL | |
|
302 | return self.v1_state() == b'r' and self.v1_size() == NONNORMAL | |
|
303 | 303 | |
|
304 | 304 | @property |
|
305 | 305 | def dm_nonnormal(self): |
@@ -307,7 +307,7 b' class DirstateItem(object):' | |||
|
307 | 307 | |
|
308 | 308 | There is no reason for any code, but the dirstatemap one to use this. |
|
309 | 309 | """ |
|
310 | return self.state != b'n' or self.mtime == AMBIGUOUS_TIME | |
|
310 | return self.v1_state() != b'n' or self.v1_mtime() == AMBIGUOUS_TIME | |
|
311 | 311 | |
|
312 | 312 | @property |
|
313 | 313 | def dm_otherparent(self): |
@@ -315,7 +315,7 b' class DirstateItem(object):' | |||
|
315 | 315 | |
|
316 | 316 | There is no reason for any code, but the dirstatemap one to use this. |
|
317 | 317 | """ |
|
318 | return self._size == FROM_P2 | |
|
318 | return self.v1_size() == FROM_P2 | |
|
319 | 319 | |
|
320 | 320 | def v1_state(self): |
|
321 | 321 | """return a "state" suitable for v1 serialization""" |
@@ -335,7 +335,7 b' class DirstateItem(object):' | |||
|
335 | 335 | |
|
336 | 336 | def need_delay(self, now): |
|
337 | 337 | """True if the stored mtime would be ambiguous with the current time""" |
|
338 | return self._state == b'n' and self._mtime == now | |
|
338 | return self.v1_state() == b'n' and self.v1_mtime() == now | |
|
339 | 339 | |
|
340 | 340 | |
|
341 | 341 | def gettype(q): |
General Comments 0
You need to be logged in to leave comments.
Login now