changeset 14907:84af56cc673b

summary: allow color to highlight active bookmark
author Augie Fackler <durin42@gmail.com>
date Thu, 21 Jul 2011 15:52:08 -0500
parents 7c3c8f37e84f
children e2b5605501df
files mercurial/commands.py
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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]