revlog: use `format_version` to dispatch different version in index_get
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 04 May 2021 01:49:37 +0200
changeset 47250 4dca422d3907
parent 47249 130c9f7ed914
child 47251 6bfa6c2c5f15
revlog: use `format_version` to dispatch different version in index_get This is semantically more correct. Differential Revision: https://phab.mercurial-scm.org/D10647
mercurial/cext/revlog.c
--- 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 {