hgext/blackbox.py
changeset 35724 853bf7d90804
parent 35667 de598e84c244
child 35727 05c70675e5b9
--- a/hgext/blackbox.py	Thu Jan 18 14:43:04 2018 +0000
+++ b/hgext/blackbox.py	Thu Jan 18 12:55:19 2018 +0100
@@ -130,6 +130,11 @@
         def track(self):
             return self.configlist('blackbox', 'track')
 
+        def debug(self, *msg, **opts):
+            super(blackboxui, self).debug(*msg, **opts)
+            if self.debugflag:
+                self.log('debug', '%s', ''.join(*msg))
+
         def log(self, event, *msg, **opts):
             global lastui
             super(blackboxui, self).log(event, *msg, **opts)