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

login
register
mail settings
Submitter Boris Feld
Date Oct. 9, 2017, 8:21 a.m.
Message ID <9769711a3f453c531632.1507537311@FB>
Download mbox | patch
Permalink /patch/24645/
State Accepted
Headers show

Comments

Boris Feld - Oct. 9, 2017, 8:21 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@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

Patch

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