hgext/bugzilla.py
changeset 28950 9e1c9f016b72
parent 28091 2f0384242b35
child 29431 80880ad3fccd
--- a/hgext/bugzilla.py	Sat Apr 16 15:14:25 2016 -0500
+++ b/hgext/bugzilla.py	Mon Apr 04 22:48:34 2016 +0900
@@ -886,8 +886,10 @@
                 count -= 1
             return root
 
-        mapfile = self.ui.config('bugzilla', 'style')
+        mapfile = None
         tmpl = self.ui.config('bugzilla', 'template')
+        if not tmpl:
+            mapfile = self.ui.config('bugzilla', 'style')
         if not mapfile and not tmpl:
             tmpl = _('changeset {node|short} in repo {root} refers '
                      'to bug {bug}.\ndetails:\n\t{desc|tabindent}')