comparison mercurial/configitems.py @ 44382:f0027a3dd7cb

revlog-compression: update the config to be a list format.revlog-compression is now a list of engine, the first supported one is to be used. Doing this have several benefits: 1) this is fully backward compatible, config using a single entry will be read as a single item list, not changing any behavior. 2) This open the way to use zstd by default without impacting platform were it is not available. This will be done in a later changesets. Using zstd provide a significant performance boost explained in : bb271ec2fbfb. However zstd is not available in some cases, A notable example is the `--pure` version of Mercurial which doesn't come with zstd support. Differential Revision: https://phab.mercurial-scm.org/D8148
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 19 Feb 2020 17:30:04 +0100
parents f7459da77f23
children edc8504bc26b
comparison
equal deleted inserted replaced
44381:454bc51f114c 44382:f0027a3dd7cb
757 b'format', b'sparse-revlog', default=True, 757 b'format', b'sparse-revlog', default=True,
758 ) 758 )
759 coreconfigitem( 759 coreconfigitem(
760 b'format', 760 b'format',
761 b'revlog-compression', 761 b'revlog-compression',
762 default=b'zlib', 762 default=lambda: [b'zlib'],
763 alias=[(b'experimental', b'format.compression')], 763 alias=[(b'experimental', b'format.compression')],
764 ) 764 )
765 coreconfigitem( 765 coreconfigitem(
766 b'format', b'usefncache', default=True, 766 b'format', b'usefncache', default=True,
767 ) 767 )