[PATCH 03 of 13] configitems: register the 'experimental.maxdeltachainspan' config
Boris Feld
boris.feld at octobus.net
Mon Oct 9 04:21:50 EDT 2017
# HG changeset patch
# User Boris Feld <boris.feld at 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
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',
More information about the Mercurial-devel
mailing list