config: register the 'devel.bundle2.debug' config
Existing explicit default are dropped now that the default is centralised.
--- 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,
)