##// END OF EJS Templates
pure: fix index parsing on empty repositories
Wagner Bruna -
r13435:90d7ce98 stable
parent child Browse files
Show More
@@ -56,10 +56,11 b' def parse_index2(data, inline):'
56 56 n += 1
57 57 off += s
58 58
59 e = list(index[0])
60 type = gettype(e[0])
61 e[0] = offset_type(0, type)
62 index[0] = tuple(e)
59 if index:
60 e = list(index[0])
61 type = gettype(e[0])
62 e[0] = offset_type(0, type)
63 index[0] = tuple(e)
63 64
64 65 # add the magic null revision at -1
65 66 index.append((0, 0, 0, -1, -1, -1, -1, nullid))
General Comments 0
You need to be logged in to leave comments. Login now