--- a/mercurial/parsers.c Thu Jul 25 10:44:51 2013 -0400
+++ b/mercurial/parsers.c Thu Jul 25 14:20:37 2013 -0700
@@ -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;