comparison mercurial/revlogutils/revlogv0.py @ 47156: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
comparison
equal deleted inserted replaced
47155:ac72eee94035 47156:4292bed8da7c
133 e[2], 133 e[2],
134 e[3], 134 e[3],
135 nodemap.get(e[4], node.nullrev), 135 nodemap.get(e[4], node.nullrev),
136 nodemap.get(e[5], node.nullrev), 136 nodemap.get(e[5], node.nullrev),
137 e[6], 137 e[6],
138 0, # no side data support
139 0, # no side data support
138 ) 140 )
139 index.append(e2) 141 index.append(e2)
140 nodemap[e[6]] = n 142 nodemap[e[6]] = n
141 n += 1 143 n += 1
142 144