Patchwork [02,of,17] configitems: register the 'format.aggressivemergedeltas' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <827304d8ad4a2be6d73b.1499209830@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21976/
State Accepted
Headers show

Comments

Pierre-Yves David - July 4, 2017, 11:10 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1498786940 -7200
#      Fri Jun 30 03:42:20 2017 +0200
# Node ID 827304d8ad4a2be6d73b8fb49202e95c9b9cec72
# Parent  c9849bec227a83355e5c12e74abca6f77ce636c4
# EXP-Topic config.register.format
# Available At https://www.mercurial-scm.org/repo/users/marmoute/mercurial/
#              hg pull https://www.mercurial-scm.org/repo/users/marmoute/mercurial/ -r 827304d8ad4a
configitems: register the 'format.aggressivemergedeltas' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -104,6 +104,9 @@  coreconfigitem('devel', 'serverrequirece
 coreconfigitem('devel', 'strip-obsmarkers',
     default=True,
 )
+coreconfigitem('format', 'aggressivemergedeltas',
+    default=False,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -439,7 +439,7 @@  class localrepository(object):
             self.svfs.options['manifestcachesize'] = manifestcachesize
         # experimental config: format.aggressivemergedeltas
         aggressivemergedeltas = self.ui.configbool('format',
-            'aggressivemergedeltas', False)
+                                                   'aggressivemergedeltas')
         self.svfs.options['aggressivemergedeltas'] = aggressivemergedeltas
         self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui)
         chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan', -1)