changeset 40995:19178aeb9b43

mq: implement log() on dummyui Otherwise ui.log() in extensions.py would explode.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 15 Dec 2018 16:52:04 +0900
parents ab92e2111408
children 6f2510b581a0
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Sat Dec 15 16:24:08 2018 +0900
+++ b/hgext/mq.py	Sat Dec 15 16:52:04 2018 +0900
@@ -139,6 +139,8 @@
     class dummyui(object):
         def debug(self, msg):
             pass
+        def log(self, event, msgfmt, *msgargs, **opts):
+            pass
     stripext = extensions.load(dummyui(), 'strip', '')
 
 strip = stripext.strip