revlog: use `format_version` to dispatch different version in index_get
This is semantically more correct.
Differential Revision: https://phab.mercurial-scm.org/D10647
--- 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 {