changeset 47248:013c645dd28c

revlog: fix the `null_item` attribute for V0 This is not a proper index tuple. Differential Revision: https://phab.mercurial-scm.org/D10645
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 04 May 2021 01:15:03 +0200
parents ba21cfd9b044
children 130c9f7ed914
files mercurial/revlogutils/revlogv0.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):