hgext3rd/topic/__init__.py
changeset 1989 cf9414f2b5cd
parent 1988 9a5d797d25be
child 1990 71410fa2c253
equal deleted inserted replaced
1988:9a5d797d25be 1989:cf9414f2b5cd
   334 def summaryhook(ui, repo):
   334 def summaryhook(ui, repo):
   335     t = repo.currenttopic
   335     t = repo.currenttopic
   336     if not t:
   336     if not t:
   337         return
   337         return
   338     # i18n: column positioning for "hg summary"
   338     # i18n: column positioning for "hg summary"
   339     ui.write(_("topic:  %s\n") % t)
   339     ui.write(_("topic:  %s\n") % ui.label(t, 'topic.active'))
   340 
   340 
   341 def commitwrap(orig, ui, repo, *args, **opts):
   341 def commitwrap(orig, ui, repo, *args, **opts):
   342     with repo.wlock():
   342     with repo.wlock():
   343         if opts.get('topic'):
   343         if opts.get('topic'):
   344             t = opts['topic']
   344             t = opts['topic']