# HG changeset patch # User Augie Fackler # Date 1311281528 18000 # Node ID 84af56cc673be1e1a3cbada3fb058ae00bf609f6 # Parent 7c3c8f37e84f15126a0164087e540021fd96032b summary: allow color to highlight active bookmark diff -r 7c3c8f37e84f -r 84af56cc673b 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]