Patchwork [13,of,17] configitems: register the 'format.usegeneraldelta' config

login
register
mail settings
Submitter Pierre-Yves David
Date July 4, 2017, 11:10 p.m.
Message ID <7e141d75caf9409e4259.1499209841@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/21983/
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 1498786949 -7200
#      Fri Jun 30 03:42:29 2017 +0200
# Node ID 7e141d75caf9409e42598a9b40521becbc67fef8
# Parent  6df8e5a37f4e7377ac0c21630668cb0d7a562a6f
# 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 7e141d75caf9
configitems: register the 'format.usegeneraldelta' config

Patch

diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -128,6 +128,9 @@  coreconfigitem('format', 'obsstore-versi
 coreconfigitem('format', 'usefncache',
     default=True,
 )
+coreconfigitem('format', 'usegeneraldelta',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
diff --git a/mercurial/scmutil.py b/mercurial/scmutil.py
--- a/mercurial/scmutil.py
+++ b/mercurial/scmutil.py
@@ -983,7 +983,7 @@  def gdinitconfig(ui):
     """
     # experimental config: format.generaldelta
     return (ui.configbool('format', 'generaldelta')
-            or ui.configbool('format', 'usegeneraldelta', True))
+            or ui.configbool('format', 'usegeneraldelta'))
 
 def gddeltaconfig(ui):
     """helper function to know if incoming delta should be optimised