Show More
@@ -205,7 +205,8 b' static inline int dirstate_item_c_v1_siz' | |||||
205 | if (dirstate_item_c_removed(self) && |
|
205 | if (dirstate_item_c_removed(self) && | |
206 | (self->flags & dirstate_flag_merged)) { |
|
206 | (self->flags & dirstate_flag_merged)) { | |
207 | return dirstate_v1_nonnormal; |
|
207 | return dirstate_v1_nonnormal; | |
208 |
} else if (dirstate_item_c_ |
|
208 | } else if (dirstate_item_c_removed(self) && | |
|
209 | (self->flags & dirstate_flag_clean_p2)) { | |||
209 | return dirstate_v1_from_p2; |
|
210 | return dirstate_v1_from_p2; | |
210 | } else if (dirstate_item_c_removed(self)) { |
|
211 | } else if (dirstate_item_c_removed(self)) { | |
211 | return 0; |
|
212 | return 0; |
@@ -379,7 +379,7 b' class DirstateItem(object):' | |||||
379 | raise RuntimeError('untracked item') |
|
379 | raise RuntimeError('untracked item') | |
380 | elif self.removed and self._merged: |
|
380 | elif self.removed and self._merged: | |
381 | return NONNORMAL |
|
381 | return NONNORMAL | |
382 |
elif self. |
|
382 | elif self.removed and self._clean_p2: | |
383 | return FROM_P2 |
|
383 | return FROM_P2 | |
384 | elif self.removed: |
|
384 | elif self.removed: | |
385 | return 0 |
|
385 | return 0 |
@@ -214,7 +214,7 b' impl DirstateEntry {' | |||||
214 | pub fn size(&self) -> i32 { |
|
214 | pub fn size(&self) -> i32 { | |
215 | if self.removed() && self.flags.contains(Flags::MERGED) { |
|
215 | if self.removed() && self.flags.contains(Flags::MERGED) { | |
216 | SIZE_NON_NORMAL |
|
216 | SIZE_NON_NORMAL | |
217 | } else if self.from_p2_removed() { |
|
217 | } else if self.removed() && self.flags.contains(Flags::CLEAN_P2) { | |
218 | SIZE_FROM_OTHER_PARENT |
|
218 | SIZE_FROM_OTHER_PARENT | |
219 | } else if self.removed() { |
|
219 | } else if self.removed() { | |
220 | 0 |
|
220 | 0 |
General Comments 0
You need to be logged in to leave comments.
Login now