# HG changeset patch # User Boris Feld # Date 1542949653 -3600 # Node ID 875d2af8cb4e79d9118f1ce457f354d6467bc628 # Parent a0f2641ddd6172ea782999b7691809a2c681b168 mmapindex: move the 'mmapindexthreshold' option out of experimental The option is useful and should be advertised more. We move it out of experimental as a first step. The `storage` section is selected as this is related to how the storage is accessed. A new 'performance' section might be more appropriate. We move from 'mmapindexthreshold` to `mmap-threshold` as non-index item are also suitable for mmap (eg: the rev-branch-cache). If relevant, we can introduce sub-option `mmap-threshold.revlog-index` later. diff -r a0f2641ddd61 -r 875d2af8cb4e mercurial/configitems.py --- a/mercurial/configitems.py Sat Dec 01 15:57:27 2018 +0100 +++ b/mercurial/configitems.py Fri Nov 23 06:07:33 2018 +0100 @@ -544,9 +544,6 @@ coreconfigitem('experimental', 'mergetempdirprefix', default=None, ) -coreconfigitem('experimental', 'mmapindexthreshold', - default=None, -) coreconfigitem('experimental', 'narrow', default=False, ) @@ -978,6 +975,10 @@ coreconfigitem('push', 'pushvars.server', default=False, ) +coreconfigitem('storage', 'mmap-threshold', + default=None, + alias=[('experimental', 'mmapindexthreshold')], +) coreconfigitem('storage', 'new-repo-backend', default='revlogv1', ) diff -r a0f2641ddd61 -r 875d2af8cb4e mercurial/localrepo.py --- a/mercurial/localrepo.py Sat Dec 01 15:57:27 2018 +0100 +++ b/mercurial/localrepo.py Fri Nov 23 06:07:33 2018 +0100 @@ -751,8 +751,7 @@ if 0 <= chainspan: options[b'maxdeltachainspan'] = chainspan - mmapindexthreshold = ui.configbytes(b'experimental', - b'mmapindexthreshold') + mmapindexthreshold = ui.configbytes(b'storage', b'mmap-threshold') if mmapindexthreshold is not None: options[b'mmapindexthreshold'] = mmapindexthreshold