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