--- a/mercurial/bundle2.py Tue May 26 23:47:19 2015 -0700
+++ b/mercurial/bundle2.py Tue May 26 23:06:17 2015 -0700
@@ -175,11 +175,13 @@
def outdebug(ui, message):
"""debug regarding output stream (bundling)"""
- ui.debug('bundle2-output: %s\n' % message)
+ if ui.configbool('devel', 'bundle2.debug', False):
+ ui.debug('bundle2-output: %s\n' % message)
def indebug(ui, message):
"""debug on input stream (unbundling)"""
- ui.debug('bundle2-input: %s\n' % message)
+ if ui.configbool('devel', 'bundle2.debug', False):
+ ui.debug('bundle2-input: %s\n' % message)
def validateparttype(parttype):
"""raise ValueError if a parttype contains invalid character"""