--- a/mercurial/revlog.py Fri May 20 17:35:20 2005 -0800
+++ b/mercurial/revlog.py Fri May 20 17:36:02 2005 -0800
@@ -194,9 +194,9 @@
text = None
rev = self.rev(node)
- base = self.base(rev)
- start = self.start(base)
- end = self.end(rev)
+ start, length, base, link, p1, p2, node = self.index[rev]
+ end = start + length
+ if base != rev: start = self.start(base)
if self.cache and self.cache[1] >= base and self.cache[1] < rev:
base = self.cache[1]
@@ -220,7 +220,6 @@
text = mdiff.patches(text, bins)
- (p1, p2) = self.parents(node)
if node != hash(text, p1, p2):
raise IOError("integrity check failed on %s:%d"
% (self.datafile, rev))