mercurial/pure/parsers.py
branchstable
changeset 13435 90d7ce986565
parent 13261 20a54bdf2328
child 14064 e4bfb9c337f3
equal deleted inserted replaced
13434:b5cc838dd999 13435:90d7ce986565
    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