summary: properly label the topic name in summary
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 23 Aug 2016 21:18:47 +0200
changeset 1989 cf9414f2b5cd
parent 1988 9a5d797d25be
child 1990 71410fa2c253
summary: properly label the topic name in summary This should be labelled 'topic.active' so that color can pick it up properly.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Tue Aug 23 23:38:28 2016 +0200
+++ b/hgext3rd/topic/__init__.py	Tue Aug 23 21:18:47 2016 +0200
@@ -336,7 +336,7 @@
     if not t:
         return
     # i18n: column positioning for "hg summary"
-    ui.write(_("topic:  %s\n") % t)
+    ui.write(_("topic:  %s\n") % ui.label(t, 'topic.active'))
 
 def commitwrap(orig, ui, repo, *args, **opts):
     with repo.wlock():