summary: allow color to highlight active bookmark
authorAugie Fackler <durin42@gmail.com>
Thu, 21 Jul 2011 15:52:08 -0500
changeset 14907 84af56cc673b
parent 14906 7c3c8f37e84f
child 14908 e2b5605501df
summary: allow color to highlight active bookmark
mercurial/commands.py
--- a/mercurial/commands.py	Mon Jul 18 07:53:26 2011 -0500
+++ b/mercurial/commands.py	Thu Jul 21 15:52:08 2011 -0500
@@ -4750,14 +4750,17 @@
 
     if marks:
         current = repo._bookmarkcurrent
+        ui.write(_('bookmarks:'), label='log.bookmark')
         if current is not None:
             try:
                 marks.remove(current)
-                marks = ['*' + current] + marks
+                ui.write(' *' + current, label='bookmarks.current')
             except ValueError:
                 # current bookmark not in parent ctx marks
                 pass
-        ui.write(_('bookmarks: %s\n') % ' '.join(marks), label='log.bookmark')
+        for m in marks:
+          ui.write(' ' + m, label='log.bookmark')
+        ui.write('\n', label='log.bookmark')
 
     st = list(repo.status(unknown=True))[:6]