changeset 19502:8704477ad3b6 stable

ancestor.deepest: sort revs in C version This isn't strictly necessary, but it makes the code more consistent with the Python version.
author Siddharth Agarwal <sid0@fb.com>
date Thu, 25 Jul 2013 14:20:37 -0700
parents 725507cd5216
children f2dfda6ac152
files mercurial/parsers.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;