revlog: fix the `null_item` attribute for V0
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 04 May 2021 01:15:03 +0200
changeset 47248 013c645dd28c
parent 47247 ba21cfd9b044
child 47249 130c9f7ed914
revlog: fix the `null_item` attribute for V0 This is not a proper index tuple. Differential Revision: https://phab.mercurial-scm.org/D10645
mercurial/revlogutils/revlogv0.py
--- a/mercurial/revlogutils/revlogv0.py	Tue May 04 01:13:53 2021 +0200
+++ b/mercurial/revlogutils/revlogv0.py	Tue May 04 01:15:03 2021 +0200
@@ -42,7 +42,7 @@
 
 class revlogoldindex(list):
     entry_size = INDEX_ENTRY_V0.size
-    null_item = (0, 0, 0, -1, -1, -1, -1, node.nullid)
+    null_item = (0, 0, 0, -1, -1, -1, -1, sha1nodeconstants.nullid, 0, 0)
 
     @property
     def nodemap(self):