author | mpm@selenic.com |
Fri, 20 May 2005 17:50:11 -0800 | |
changeset 126 | f6d1f8a84372 |
parent 125 | 8913e13196e1 |
child 127 | 44538462d3c8 |
--- a/mercurial/revlog.py Fri May 20 17:49:25 2005 -0800 +++ b/mercurial/revlog.py Fri May 20 17:50:11 2005 -0800 @@ -50,17 +50,6 @@ self.index = [None] * self.l self.map = {nullid: -1} - if 0: - n = 0 - i = self.data - s = struct.calcsize(indexformat) - for f in xrange(0, len(i), s): - # offset, size, base, linkrev, p1, p2, nodeid - e = struct.unpack(indexformat, i[f:f + s]) - self.map[e[6]] = n - self.index.append(e) - n += 1 - def load(self, pos): block = pos / 1000 i = block * 1000