changeset 47250:4dca422d3907

revlog: use `format_version` to dispatch different version in index_get This is semantically more correct. Differential Revision: https://phab.mercurial-scm.org/D10647
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 04 May 2021 01:49:37 +0200
parents 130c9f7ed914
children 6bfa6c2c5f15
files mercurial/cext/revlog.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cext/revlog.c	Mon May 03 18:19:16 2021 +0200
+++ b/mercurial/cext/revlog.c	Tue May 04 01:49:37 2021 +0200
@@ -335,7 +335,7 @@
 	parent_2 = getbe32(data + 28);
 	c_node_id = data + 32;
 
-	if (self->entry_size == v1_entry_size) {
+	if (self->format_version == format_v1) {
 		sidedata_offset = 0;
 		sidedata_comp_len = 0;
 	} else {