configitems: register the 'format.usegeneraldelta' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 30 Jun 2017 03:42:29 +0200
changeset 33246 4d9458e06ef0
parent 33245 28e8983d9ed7
child 33247 4d5d493ea54a
configitems: register the 'format.usegeneraldelta' config
mercurial/configitems.py
mercurial/scmutil.py
--- 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