config: register the 'devel.bundle2.debug' config
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 28 Jun 2017 13:25:33 +0200
changeset 33159 0224820688ac
parent 33158 cb7140e230c8
child 33160 12aaade1f617
config: register the 'devel.bundle2.debug' config Existing explicit default are dropped now that the default is centralised.
mercurial/bundle2.py
mercurial/configitems.py
--- a/mercurial/bundle2.py	Wed Jun 28 13:19:40 2017 +0200
+++ b/mercurial/bundle2.py	Wed Jun 28 13:25:33 2017 +0200
@@ -187,12 +187,12 @@
 
 def outdebug(ui, message):
     """debug regarding output stream (bundling)"""
-    if ui.configbool('devel', 'bundle2.debug', False):
+    if ui.configbool('devel', 'bundle2.debug'):
         ui.debug('bundle2-output: %s\n' % message)
 
 def indebug(ui, message):
     """debug on input stream (unbundling)"""
-    if ui.configbool('devel', 'bundle2.debug', False):
+    if ui.configbool('devel', 'bundle2.debug'):
         ui.debug('bundle2-input: %s\n' % message)
 
 def validateparttype(parttype):
--- a/mercurial/configitems.py	Wed Jun 28 13:19:40 2017 +0200
+++ b/mercurial/configitems.py	Wed Jun 28 13:25:33 2017 +0200
@@ -59,6 +59,9 @@
 coreconfigitem('devel', 'all-warnings',
     default=False,
 )
+coreconfigitem('devel', 'bundle2.debug',
+    default=False,
+)
 coreconfigitem('patch', 'fuzz',
     default=2,
 )