Mercurial > hg
diff mercurial/pure/parsers.py @ 47259:07641bafa646
revlog: compress sidedata when doing "post-pull" sidedata update
All path writing sidedata are now using compression (when appropriate).
Differential Revision: https://phab.mercurial-scm.org/D10656
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 23:40:05 +0200 |
parents | 2b69555e4875 |
children | 468e451fc0de |
line wrap: on
line diff
--- 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