mercurial/parsers.c
branchstable
changeset 19502 8704477ad3b6
parent 19062 365b0de17c1c
child 19503 f2dfda6ac152
equal deleted inserted replaced
19501:725507cd5216 19502:8704477ad3b6
  1308 	interesting = calloc(sizeof(*interesting), 2 << revcount);
  1308 	interesting = calloc(sizeof(*interesting), 2 << revcount);
  1309 	if (interesting == NULL) {
  1309 	if (interesting == NULL) {
  1310 		PyErr_NoMemory();
  1310 		PyErr_NoMemory();
  1311 		goto bail;
  1311 		goto bail;
  1312 	}
  1312 	}
       
  1313 
       
  1314 	if (PyList_Sort(revs) == -1)
       
  1315 		goto bail;
  1313 
  1316 
  1314 	for (i = 0; i < revcount; i++) {
  1317 	for (i = 0; i < revcount; i++) {
  1315 		int n = (int)PyInt_AsLong(PyList_GET_ITEM(revs, i));
  1318 		int n = (int)PyInt_AsLong(PyList_GET_ITEM(revs, i));
  1316 		long b = 1l << i;
  1319 		long b = 1l << i;
  1317 		depth[n] = 1;
  1320 		depth[n] = 1;