mq: implement log() on dummyui
authorYuya Nishihara <yuya@tcha.org>
Sat, 15 Dec 2018 16:52:04 +0900
changeset 41005 19178aeb9b43
parent 41004 ab92e2111408
child 41006 6f2510b581a0
mq: implement log() on dummyui Otherwise ui.log() in extensions.py would explode.
hgext/mq.py
--- 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