Patchwork [03,of,13] configitems: register the 'experimental.maxdeltachainspan' config

login
register
mail settings
Submitter Boris Feld
Date Oct. 9, 2017, 8:21 a.m.
Message ID <9f2d0eb6d0d4633e45f4.1507537310@FB>
Download mbox | patch
Permalink /patch/24643/
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 1507488139 -7200
#      Sun Oct 08 20:42:19 2017 +0200
# Node ID 9f2d0eb6d0d4633e45f470bc0a192443d80aa730
# Parent  1b9db6bb7fc2997f0dcd286a768a45e5f65f288f
# EXP-Topic config.register
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9f2d0eb6d0d4
configitems: register the 'experimental.maxdeltachainspan' config

Patch

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