mercurial/parsers.c
changeset 22399 9f490afcb067
parent 21871 0feb41534421
child 22400 888bc106de83
equal deleted inserted replaced
22398:402e5fba6509 22399:9f490afcb067
  1302 	const bitmask allseen = (1ull << revcount) - 1;
  1302 	const bitmask allseen = (1ull << revcount) - 1;
  1303 	const bitmask poison = 1ull << revcount;
  1303 	const bitmask poison = 1ull << revcount;
  1304 	PyObject *gca = PyList_New(0);
  1304 	PyObject *gca = PyList_New(0);
  1305 	int i, v, interesting;
  1305 	int i, v, interesting;
  1306 	int maxrev = -1;
  1306 	int maxrev = -1;
  1307 	long sp;
  1307 	bitmask sp;
  1308 	bitmask *seen;
  1308 	bitmask *seen;
  1309 
  1309 
  1310 	if (gca == NULL)
  1310 	if (gca == NULL)
  1311 		return PyErr_NoMemory();
  1311 		return PyErr_NoMemory();
  1312 
  1312 
  1325 		seen[revs[i]] = 1ull << i;
  1325 		seen[revs[i]] = 1ull << i;
  1326 
  1326 
  1327 	interesting = revcount;
  1327 	interesting = revcount;
  1328 
  1328 
  1329 	for (v = maxrev; v >= 0 && interesting; v--) {
  1329 	for (v = maxrev; v >= 0 && interesting; v--) {
  1330 		long sv = seen[v];
  1330 		bitmask sv = seen[v];
  1331 		int parents[2];
  1331 		int parents[2];
  1332 
  1332 
  1333 		if (!sv)
  1333 		if (!sv)
  1334 			continue;
  1334 			continue;
  1335 
  1335