diff mercurial/revlogutils/revlogv0.py @ 47142:4292bed8da7c

revlog: make the index always return the same tuple It is simpler to manage the diferrence in on disk format in the internal index code itself and lets the rest of the code always handle the same object. This will become even more important when the data we store will be entirely different (for example the changelog does not need the "linkrev" field. We start with item reading, we will deal with item writing in the next changesets. Differential Revision: https://phab.mercurial-scm.org/D10568
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 03 May 2021 12:21:15 +0200
parents 724db234b790
children ba21cfd9b044
line wrap: on
line diff
--- a/mercurial/revlogutils/revlogv0.py	Mon May 03 12:21:05 2021 +0200
+++ b/mercurial/revlogutils/revlogv0.py	Mon May 03 12:21:15 2021 +0200
@@ -135,6 +135,8 @@
             nodemap.get(e[4], node.nullrev),
             nodemap.get(e[5], node.nullrev),
             e[6],
+            0,  # no side data support
+            0,  # no side data support
         )
         index.append(e2)
         nodemap[e[6]] = n