--- a/mercurial/parsers.c Mon Feb 24 22:42:13 2014 +0100
+++ b/mercurial/parsers.c Mon Feb 24 22:42:13 2014 +0100
@@ -1208,7 +1208,7 @@
const bitmask allseen = (1ull << revcount) - 1;
const bitmask poison = 1ull << revcount;
PyObject *gca = PyList_New(0);
- int i, v, interesting, left;
+ int i, v, interesting;
int maxrev = -1;
long sp;
bitmask *seen;
@@ -1230,7 +1230,7 @@
for (i = 0; i < revcount; i++)
seen[revs[i]] = 1ull << i;
- interesting = left = revcount;
+ interesting = revcount;
for (v = maxrev; v >= 0 && interesting; v--) {
long sv = seen[v];
@@ -1251,11 +1251,8 @@
}
sv |= poison;
for (i = 0; i < revcount; i++) {
- if (revs[i] == v) {
- if (--left <= 1)
- goto done;
- break;
- }
+ if (revs[i] == v)
+ goto done;
}
}
}