configitems: register the 'experimental.maxdeltachainspan' config
authorBoris Feld <boris.feld@octobus.net>
Sun, 08 Oct 2017 20:42:19 +0200
changeset 34519 0314e02efa25
parent 34518 592a3cc1ebc4
child 34520 ca5b833ce756
configitems: register the 'experimental.maxdeltachainspan' config
mercurial/configitems.py
mercurial/localrepo.py
--- a/mercurial/configitems.py	Sun Oct 08 20:16:09 2017 +0200
+++ b/mercurial/configitems.py	Sun Oct 08 20:42:19 2017 +0200
@@ -194,6 +194,9 @@
 coreconfigitem('experimental', 'editortmpinhg',
     default=False,
 )
+coreconfigitem('experimental', 'maxdeltachainspan',
+    default=-1,
+)
 coreconfigitem('experimental', 'nonnormalparanoidcheck',
     default=False,
 )
--- a/mercurial/localrepo.py	Sun Oct 08 20:16:09 2017 +0200
+++ b/mercurial/localrepo.py	Sun Oct 08 20:42:19 2017 +0200
@@ -601,7 +601,7 @@
                                                    'aggressivemergedeltas')
         self.svfs.options['aggressivemergedeltas'] = aggressivemergedeltas
         self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui)
-        chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan', -1)
+        chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan')
         if 0 <= chainspan:
             self.svfs.options['maxdeltachainspan'] = chainspan
         mmapindexthreshold = self.ui.configbytes('experimental',