mercurial/cext/revlog.c
changeset 49679 b670eb3dd6c9
parent 49678 efbbc2f9121e
child 51239 7eea2e4109ae
child 51388 cb5175edd225
--- a/mercurial/cext/revlog.c	Sun Nov 06 16:56:23 2022 -0500
+++ b/mercurial/cext/revlog.c	Sun Nov 06 17:55:46 2022 -0500
@@ -1489,7 +1489,7 @@
 		}
 		if (allvalues == NULL) {
 			int r;
-			allvalues = PyList_New(0);
+			allvalues = PySet_New(0);
 			if (!allvalues) {
 				goto bail;
 			}
@@ -1500,7 +1500,7 @@
 			}
 		}
 		value = PyLong_FromSsize_t(rev);
-		if (PyList_Append(allvalues, value)) {
+		if (PySet_Add(allvalues, value)) {
 			goto bail;
 		}
 		Py_CLEAR(key);