Show More
@@ -210,7 +210,8 b' static inline int dirstate_item_c_v1_mod' | |||||
210 |
|
210 | |||
211 | static inline int dirstate_item_c_v1_size(dirstateItemObject *self) |
|
211 | static inline int dirstate_item_c_v1_size(dirstateItemObject *self) | |
212 | { |
|
212 | { | |
213 |
if (dirstate_item_c_ |
|
213 | if (dirstate_item_c_removed(self) && | |
|
214 | (self->flags & dirstate_flag_merged)) { | |||
214 | return dirstate_v1_nonnormal; |
|
215 | return dirstate_v1_nonnormal; | |
215 | } else if (dirstate_item_c_from_p2_removed(self)) { |
|
216 | } else if (dirstate_item_c_from_p2_removed(self)) { | |
216 | return dirstate_v1_from_p2; |
|
217 | return dirstate_v1_from_p2; |
@@ -386,7 +386,7 b' class DirstateItem(object):' | |||||
386 | # the object has no state to record, this is -currently- |
|
386 | # the object has no state to record, this is -currently- | |
387 | # unsupported |
|
387 | # unsupported | |
388 | raise RuntimeError('untracked item') |
|
388 | raise RuntimeError('untracked item') | |
389 |
elif self. |
|
389 | elif self.removed and self._merged: | |
390 | return NONNORMAL |
|
390 | return NONNORMAL | |
391 | elif self.from_p2_removed: |
|
391 | elif self.from_p2_removed: | |
392 | return FROM_P2 |
|
392 | return FROM_P2 |
@@ -216,7 +216,7 b' impl DirstateEntry {' | |||||
216 | } |
|
216 | } | |
217 |
|
217 | |||
218 | pub fn size(&self) -> i32 { |
|
218 | pub fn size(&self) -> i32 { | |
219 | if self.merged_removed() { |
|
219 | if self.removed() && self.flags.contains(Flags::MERGED) { | |
220 | SIZE_NON_NORMAL |
|
220 | SIZE_NON_NORMAL | |
221 | } else if self.from_p2_removed() { |
|
221 | } else if self.from_p2_removed() { | |
222 | SIZE_FROM_OTHER_PARENT |
|
222 | SIZE_FROM_OTHER_PARENT |
General Comments 0
You need to be logged in to leave comments.
Login now