diff -r c4dbb7636a12 -r 07641bafa646 mercurial/pure/parsers.py --- a/mercurial/pure/parsers.py Mon May 03 23:14:48 2021 +0200 +++ b/mercurial/pure/parsers.py Mon May 03 23:40:05 2021 +0200 @@ -297,7 +297,12 @@ index_format = revlog_constants.INDEX_ENTRY_V2 def replace_sidedata_info( - self, rev, sidedata_offset, sidedata_length, offset_flags + self, + rev, + sidedata_offset, + sidedata_length, + offset_flags, + compression_mode, ): """ Replace an existing index entry's sidedata offset and length with new @@ -316,6 +321,7 @@ entry[0] = offset_flags entry[8] = sidedata_offset entry[9] = sidedata_length + entry[11] = compression_mode entry = tuple(entry) new = self._pack_entry(entry) self._extra[rev - self._lgt] = new