equal
deleted
inserted
replaced
54 e = _unpack(indexformatng, data[off:off + s]) |
54 e = _unpack(indexformatng, data[off:off + s]) |
55 append(e) |
55 append(e) |
56 n += 1 |
56 n += 1 |
57 off += s |
57 off += s |
58 |
58 |
59 e = list(index[0]) |
59 if index: |
60 type = gettype(e[0]) |
60 e = list(index[0]) |
61 e[0] = offset_type(0, type) |
61 type = gettype(e[0]) |
62 index[0] = tuple(e) |
62 e[0] = offset_type(0, type) |
|
63 index[0] = tuple(e) |
63 |
64 |
64 # add the magic null revision at -1 |
65 # add the magic null revision at -1 |
65 index.append((0, 0, 0, -1, -1, -1, -1, nullid)) |
66 index.append((0, 0, 0, -1, -1, -1, -1, nullid)) |
66 |
67 |
67 return index, cache |
68 return index, cache |