mercurial/cext/parsers.c
changeset 48064 2943955304b3
parent 48061 060cd909439f
child 48065 870100c0209b
--- a/mercurial/cext/parsers.c	Tue Sep 28 18:57:20 2021 +0200
+++ b/mercurial/cext/parsers.c	Tue Sep 28 19:12:44 2021 +0200
@@ -210,7 +210,8 @@
 
 static inline int dirstate_item_c_v1_size(dirstateItemObject *self)
 {
-	if (dirstate_item_c_merged_removed(self)) {
+	if (dirstate_item_c_removed(self) &&
+	    (self->flags & dirstate_flag_merged)) {
 		return dirstate_v1_nonnormal;
 	} else if (dirstate_item_c_from_p2_removed(self)) {
 		return dirstate_v1_from_p2;