configitems: register the 'experimental.mmapindexthreshold' config
authorBoris Feld <boris.feld@octobus.net>
Sun, 08 Oct 2017 20:43:46 +0200
changeset 34520 ca5b833ce756
parent 34519 0314e02efa25
child 34521 aacb17cc0ee4
configitems: register the 'experimental.mmapindexthreshold' config
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Sun Oct 08 20:42:19 2017 +0200
+++ b/mercurial/configitems.py	Sun Oct 08 20:43:46 2017 +0200
@@ -197,6 +197,9 @@
 coreconfigitem('experimental', 'maxdeltachainspan',
     default=-1,
 )
+coreconfigitem('experimental', 'mmapindexthreshold',
+    default=None,
+)
 coreconfigitem('experimental', 'nonnormalparanoidcheck',
     default=False,
 )
--- a/mercurial/localrepo.py	Sun Oct 08 20:42:19 2017 +0200
+++ b/mercurial/localrepo.py	Sun Oct 08 20:43:46 2017 +0200
@@ -605,7 +605,7 @@
         if 0 <= chainspan:
             self.svfs.options['maxdeltachainspan'] = chainspan
         mmapindexthreshold = self.ui.configbytes('experimental',
-                                                 'mmapindexthreshold', None)
+                                                 'mmapindexthreshold')
         if mmapindexthreshold is not None:
             self.svfs.options['mmapindexthreshold'] = mmapindexthreshold