mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
ancestor.deepest: sort revs in C version
This isn't strictly necessary, but it makes the code more consistent with the Python version.
This commit is contained in:
parent
ac76c4f1a9
commit
2267993ebc
@ -1311,6 +1311,9 @@ static PyObject *find_deepest(indexObject *self, PyObject *revs)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user