mercurial/cext/parsers.c
changeset 47517 28632eb3ca3e
parent 47516 b8ffe85e399b
child 47526 8bcae9bf9e8d
--- a/mercurial/cext/parsers.c	Sat Jul 03 20:34:09 2021 +0200
+++ b/mercurial/cext/parsers.c	Sun Jul 04 01:14:15 2021 +0200
@@ -178,7 +178,7 @@
 
 static PyObject *dirstatetuple_get_from_p2(dirstateTupleObject *self)
 {
-	if (self->size == dirstate_v1_from_p2) {
+	if (self->state == 'n' && self->size == dirstate_v1_from_p2) {
 		Py_RETURN_TRUE;
 	} else {
 		Py_RETURN_FALSE;