[PATCH 04 of 13] configitems: register the 'experimental.mmapindexthreshold' config

Boris Feld boris.feld at octobus.net
Mon Oct 9 04:21:51 EDT 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1507488226 -7200
#      Sun Oct 08 20:43:46 2017 +0200
# Node ID 9769711a3f453c53163200eb4a99107eb3a1433b
# Parent  9f2d0eb6d0d4633e45f470bc0a192443d80aa730
# EXP-Topic config.register
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9769711a3f45
configitems: register the 'experimental.mmapindexthreshold' config

diff -r 9f2d0eb6d0d4 -r 9769711a3f45 mercurial/configitems.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,
 )
diff -r 9f2d0eb6d0d4 -r 9769711a3f45 mercurial/localrepo.py
--- 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
 


More information about the Mercurial-devel mailing list