Mercurial > hg
changeset 117:2ac722ad1a9d
Make revision code slightly faster
author | mpm@selenic.com |
---|---|
date | Fri, 20 May 2005 17:36:02 -0800 |
parents | e484cd5ec282 |
children | a0e57df96e96 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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))