changeset 33246:4d9458e06ef0

configitems: register the 'format.usegeneraldelta' config
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 30 Jun 2017 03:42:29 +0200
parents 28e8983d9ed7
children 4d5d493ea54a
files mercurial/configitems.py mercurial/scmutil.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Jun 30 03:42:28 2017 +0200
+++ b/mercurial/configitems.py	Fri Jun 30 03:42:29 2017 +0200
@@ -128,6 +128,9 @@
 coreconfigitem('format', 'usefncache',
     default=True,
 )
+coreconfigitem('format', 'usegeneraldelta',
+    default=True,
+)
 coreconfigitem('hostsecurity', 'ciphers',
     default=None,
 )
--- a/mercurial/scmutil.py	Fri Jun 30 03:42:28 2017 +0200
+++ b/mercurial/scmutil.py	Fri Jun 30 03:42:29 2017 +0200
@@ -983,7 +983,7 @@
     """
     # 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