changeset 33159:0224820688ac

config: register the 'devel.bundle2.debug' config Existing explicit default are dropped now that the default is centralised.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Jun 2017 13:25:33 +0200
parents cb7140e230c8
children 12aaade1f617
files mercurial/bundle2.py mercurial/configitems.py
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
 )