changeset 1989:cf9414f2b5cd

summary: properly label the topic name in summary This should be labelled 'topic.active' so that color can pick it up properly.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 23 Aug 2016 21:18:47 +0200
parents 9a5d797d25be
children 71410fa2c253
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():