equal
deleted
inserted
replaced
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'] |