comparison mercurial/configitems.py @ 46308:05a1e44b2224

persistent-nodemap: add a revlog.storage.persistent-nodemap.slow-path option As discussed during the sprint, we want to prevent user to get an unexpected performance regression when accessing a repository using "persistent-nodemap" without the associated Rust extension. We start by adding a config declaration and some documentation. Since "allow" is the current behavior, we don't need to add any code. The option possible value will come later. Note that we already have a `storage.revlog.nodemap.mode` option, but that option is a bit different. It does some warning and checking at revlog instantiation time. While we want something done at requirements checking time. Since we plan for new names and new config value names, we introduce a new option and will drop the old one later. Differential Revision: https://phab.mercurial-scm.org/D9758
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 14 Jan 2021 01:25:06 +0100
parents 7d096e5a5b90
children fc2d5c0aed7f
comparison
equal deleted inserted replaced
46307:51da7c8ef357 46308:05a1e44b2224
1791 ) 1791 )
1792 # experimental as long as format.use-persistent-nodemap is. 1792 # experimental as long as format.use-persistent-nodemap is.
1793 coreconfigitem( 1793 coreconfigitem(
1794 b'storage', b'revlog.nodemap.mode', default=b'compat', experimental=True 1794 b'storage', b'revlog.nodemap.mode', default=b'compat', experimental=True
1795 ) 1795 )
1796 # experimental as long as format.use-persistent-nodemap is.
1797 coreconfigitem(
1798 b'storage',
1799 b'revlog.persistent-nodemap.slow-path',
1800 default=b"allow",
1801 experimental=True,
1802 )
1803
1796 coreconfigitem( 1804 coreconfigitem(
1797 b'storage', 1805 b'storage',
1798 b'revlog.reuse-external-delta', 1806 b'revlog.reuse-external-delta',
1799 default=True, 1807 default=True,
1800 ) 1808 )