Patchwork D10645: revlog: fix the `null_item` attribute for V0

login
register
mail settings
Submitter phabricator
Date May 4, 2021, 2:18 p.m.
Message ID <differential-rev-PHID-DREV-l6qblueo7p2t2zdorbo2-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48962/
State Superseded
Headers show

Comments

phabricator - May 4, 2021, 2:18 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This is not a proper index tuple.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10645

AFFECTED FILES
  mercurial/revlogutils/revlogv0.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/revlogutils/revlogv0.py b/mercurial/revlogutils/revlogv0.py
--- a/mercurial/revlogutils/revlogv0.py
+++ b/mercurial/revlogutils/revlogv0.py
@@ -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):