mercurial/parsers.c
branchstable
changeset 19502 8704477ad3b6
parent 19062 365b0de17c1c
child 19503 f2dfda6ac152
--- 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;