Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/revlog.py @ 126:f6d1f8a84372
Remove some debugging code from lazyparser
author | mpm@selenic.com |
---|---|
date | Fri, 20 May 2005 17:50:11 -0800 |
parents | c7a66f9752a4 |
children | b6d8ed7aeba0 |
line wrap: on
line diff
--- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -50,17 +50,6 @@ class lazyparser: 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