comparison mercurial/pure/parsers.py @ 13253:61c9bc3da402

revlog: remove lazy index
author Matt Mackall <mpm@selenic.com>
date Tue, 04 Jan 2011 14:12:52 -0600
parents 25e572394f5c
children 20a54bdf2328
comparison
equal deleted inserted replaced
13252:9f6afc288702 13253:61c9bc3da402
36 s = struct.calcsize(indexformatng) 36 s = struct.calcsize(indexformatng)
37 index = [] 37 index = []
38 cache = None 38 cache = None
39 nodemap = {nullid: nullrev} 39 nodemap = {nullid: nullrev}
40 n = off = 0 40 n = off = 0
41 # if we're not using lazymap, always read the whole index 41
42 l = len(data) - s 42 l = len(data) - s
43 append = index.append 43 append = index.append
44 if inline: 44 if inline:
45 cache = (0, data) 45 cache = (0, data)
46 while off <= l: 46 while off <= l: