Show More
@@ -363,16 +363,12 b' class DirstateItem(object):' | |||
|
363 | 363 | raise RuntimeError('untracked item') |
|
364 | 364 | elif self.removed and self._p1_tracked and self._p2_info: |
|
365 | 365 | return NONNORMAL |
|
366 |
elif self. |
|
|
366 | elif self._p2_info: | |
|
367 | 367 | return FROM_P2 |
|
368 | 368 | elif self.removed: |
|
369 | 369 | return 0 |
|
370 | elif self.merged: | |
|
371 | return FROM_P2 | |
|
372 | 370 | elif self.added: |
|
373 | 371 | return NONNORMAL |
|
374 | elif self.from_p2: | |
|
375 | return FROM_P2 | |
|
376 | 372 | elif self._size is None: |
|
377 | 373 | return NONNORMAL |
|
378 | 374 | else: |
@@ -250,16 +250,12 b' impl DirstateEntry {' | |||
|
250 | 250 | && self.flags.contains(Flags::P1_TRACKED | Flags::P2_INFO) |
|
251 | 251 | { |
|
252 | 252 | SIZE_NON_NORMAL |
|
253 |
} else if |
|
|
253 | } else if self.flags.contains(Flags::P2_INFO) { | |
|
254 | 254 | SIZE_FROM_OTHER_PARENT |
|
255 | 255 | } else if self.removed() { |
|
256 | 256 | 0 |
|
257 | } else if self.merged() { | |
|
258 | SIZE_FROM_OTHER_PARENT | |
|
259 | 257 | } else if self.added() { |
|
260 | 258 | SIZE_NON_NORMAL |
|
261 | } else if self.from_p2() { | |
|
262 | SIZE_FROM_OTHER_PARENT | |
|
263 | 259 | } else if let Some((_mode, size)) = self.mode_size { |
|
264 | 260 | size |
|
265 | 261 | } else { |
General Comments 0
You need to be logged in to leave comments.
Login now