comparison hgext/blackbox.py @ 35724:853bf7d90804

blackbox: if --debug is used, also trace ui.debug() calls Differential Revision: https://phab.mercurial-scm.org/D1880
author Joerg Sonnenberger <joerg@bec.de>
date Thu, 18 Jan 2018 12:55:19 +0100
parents de598e84c244
children 05c70675e5b9
comparison
equal deleted inserted replaced
35723:50868145a8de 35724:853bf7d90804
127 return vfs 127 return vfs
128 128
129 @util.propertycache 129 @util.propertycache
130 def track(self): 130 def track(self):
131 return self.configlist('blackbox', 'track') 131 return self.configlist('blackbox', 'track')
132
133 def debug(self, *msg, **opts):
134 super(blackboxui, self).debug(*msg, **opts)
135 if self.debugflag:
136 self.log('debug', '%s', ''.join(*msg))
132 137
133 def log(self, event, *msg, **opts): 138 def log(self, event, *msg, **opts):
134 global lastui 139 global lastui
135 super(blackboxui, self).log(event, *msg, **opts) 140 super(blackboxui, self).log(event, *msg, **opts)
136 141