Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/parsers.py @ 47262:6bfa6c2c5f15
revlogv2: preserve the compression mode on disk
The value is still the same and still not treated, but now it exists one disk.
Differential Revision: https://phab.mercurial-scm.org/D10648
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 18:41:51 +0200 |
parents | 130c9f7ed914 |
children | 2b69555e4875 |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Tue May 04 01:49:37 2021 +0200 +++ b/mercurial/pure/parsers.py Mon May 03 18:41:51 2021 +0200 @@ -315,12 +315,10 @@ self._extra[rev - self._lgt] = new def _unpack_entry(self, data): - return self.index_format.unpack(data) + ( - revlog_constants.COMP_MODE_INLINE, - ) + return self.index_format.unpack(data) def _pack_entry(self, entry): - return self.index_format.pack(*entry[:10]) + return self.index_format.pack(*entry[:11]) def entry_binary(self, rev): """return the raw binary string representing a revision"""