--- a/mercurial/repair.py Thu Nov 13 10:11:32 2008 +0100
+++ b/mercurial/repair.py Wed Nov 12 15:19:14 2008 -0600
@@ -41,8 +41,7 @@
startrev = count = len(revlog)
# find the truncation point of the revlog
for i in xrange(0, count):
- node = revlog.node(i)
- lrev = revlog.linkrev(node)
+ lrev = revlog.linkrev(i)
if lrev >= link:
startrev = i + 1
break
@@ -51,7 +50,7 @@
# (we have to manually save these guys)
for i in xrange(startrev, count):
node = revlog.node(i)
- lrev = revlog.linkrev(node)
+ lrev = revlog.linkrev(i)
if lrev < link:
extra.append((node, cl.node(lrev)))