Skip to content
Snippets Groups Projects
Commit 8704477a authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

ancestor.deepest: sort revs in C version

This isn't strictly necessary, but it makes the code more consistent with the
Python version.
parent 725507cd
No related branches found
No related tags found
No related merge requests found
......@@ -1311,6 +1311,9 @@
goto bail;
}
if (PyList_Sort(revs) == -1)
goto bail;
for (i = 0; i < revcount; i++) {
int n = (int)PyInt_AsLong(PyList_GET_ITEM(revs, i));
long b = 1l << i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment