##// END OF EJS Templates
revlog: create a create `null_item` attribute for V0...
marmoute -
r48021:ba21cfd9 default
parent child Browse files
Show More
@@ -42,6 +42,7 b' def offset_type(offset, type):'
42 42
43 43 class revlogoldindex(list):
44 44 entry_size = INDEX_ENTRY_V0.size
45 null_item = (0, 0, 0, -1, -1, -1, -1, node.nullid)
45 46
46 47 @property
47 48 def nodemap(self):
@@ -89,7 +90,7 b' class revlogoldindex(list):'
89 90
90 91 def __getitem__(self, i):
91 92 if i == -1:
92 return (0, 0, 0, -1, -1, -1, -1, node.nullid)
93 return self.null_item
93 94 return list.__getitem__(self, i)
94 95
95 96 def pack_header(self, header):
General Comments 0
You need to be logged in to leave comments. Login now