--- a/mercurial/cext/parsers.c Sun Jul 04 02:33:21 2021 +0200
+++ b/mercurial/cext/parsers.c Sun Jul 04 02:34:24 2021 +0200
@@ -174,6 +174,11 @@
return PyInt_FromLong(self->mode);
};
+static PyObject *dirstatetuple_get_size(dirstateTupleObject *self)
+{
+ return PyInt_FromLong(self->size);
+};
+
static PyObject *dirstatetuple_get_state(dirstateTupleObject *self)
{
return PyBytes_FromStringAndSize(&self->state, 1);
@@ -244,6 +249,7 @@
static PyGetSetDef dirstatetuple_getset[] = {
{"mode", (getter)dirstatetuple_get_mode, NULL, "mode", NULL},
+ {"size", (getter)dirstatetuple_get_size, NULL, "size", NULL},
{"state", (getter)dirstatetuple_get_state, NULL, "state", NULL},
{"tracked", (getter)dirstatetuple_get_tracked, NULL, "tracked", NULL},
{"added", (getter)dirstatetuple_get_added, NULL, "added", NULL},