Show More
@@ -1114,7 +1114,6 b' static PyObject *reachableroots(indexObj' | |||||
1114 | int includepath = 0; |
|
1114 | int includepath = 0; | |
1115 | /* heads is a list */ |
|
1115 | /* heads is a list */ | |
1116 | PyObject *heads = NULL; |
|
1116 | PyObject *heads = NULL; | |
1117 | Py_ssize_t numheads; |
|
|||
1118 | /* roots is a set */ |
|
1117 | /* roots is a set */ | |
1119 | PyObject *roots = NULL; |
|
1118 | PyObject *roots = NULL; | |
1120 | PyObject *reachable = NULL; |
|
1119 | PyObject *reachable = NULL; | |
@@ -1124,6 +1123,7 b' static PyObject *reachableroots(indexObj' | |||||
1124 | long revnum; |
|
1123 | long revnum; | |
1125 | Py_ssize_t k; |
|
1124 | Py_ssize_t k; | |
1126 | Py_ssize_t i; |
|
1125 | Py_ssize_t i; | |
|
1126 | Py_ssize_t l; | |||
1127 | int r; |
|
1127 | int r; | |
1128 | int minidx; |
|
1128 | int minidx; | |
1129 | int parents[2]; |
|
1129 | int parents[2]; | |
@@ -1164,8 +1164,8 b' static PyObject *reachableroots(indexObj' | |||||
1164 | } |
|
1164 | } | |
1165 |
|
1165 | |||
1166 | /* Populate tovisit with all the heads */ |
|
1166 | /* Populate tovisit with all the heads */ | |
1167 |
|
|
1167 | l = PyList_GET_SIZE(heads); | |
1168 |
for (i = 0; i < |
|
1168 | for (i = 0; i < l; i++) { | |
1169 | revnum = PyInt_AsLong(PyList_GET_ITEM(heads, i)); |
|
1169 | revnum = PyInt_AsLong(PyList_GET_ITEM(heads, i)); | |
1170 | if (revnum == -1 && PyErr_Occurred()) |
|
1170 | if (revnum == -1 && PyErr_Occurred()) | |
1171 | goto bail; |
|
1171 | goto bail; |
General Comments 0
You need to be logged in to leave comments.
Login now