Show More
@@ -158,6 +158,15 b' static PyObject *dirstatetuple_get_state' | |||
|
158 | 158 | return PyBytes_FromStringAndSize(&self->state, 1); |
|
159 | 159 | }; |
|
160 | 160 | |
|
161 | static PyObject *dirstatetuple_get_added(dirstateTupleObject *self) | |
|
162 | { | |
|
163 | if (self->state == 'a') { | |
|
164 | Py_RETURN_TRUE; | |
|
165 | } else { | |
|
166 | Py_RETURN_FALSE; | |
|
167 | } | |
|
168 | }; | |
|
169 | ||
|
161 | 170 | static PyObject *dirstatetuple_get_merged(dirstateTupleObject *self) |
|
162 | 171 | { |
|
163 | 172 | if (self->state == 'm') { |
@@ -205,6 +214,7 b' static PyObject *dirstatetuple_get_remov' | |||
|
205 | 214 | |
|
206 | 215 | static PyGetSetDef dirstatetuple_getset[] = { |
|
207 | 216 | {"state", (getter)dirstatetuple_get_state, NULL, "state", NULL}, |
|
217 | {"added", (getter)dirstatetuple_get_added, NULL, "added", NULL}, | |
|
208 | 218 | {"merged_removed", (getter)dirstatetuple_get_merged_removed, NULL, |
|
209 | 219 | "merged_removed", NULL}, |
|
210 | 220 | {"merged", (getter)dirstatetuple_get_merged, NULL, "merged", NULL}, |
General Comments 0
You need to be logged in to leave comments.
Login now