[PATCH 2 of 2] summary: allow color to highlight active bookmark
Augie Fackler
durin42 at gmail.com
Thu Jul 21 15:52:47 CDT 2011
# HG changeset patch
# User Augie Fackler <durin42 at gmail.com>
# Date 1311281528 18000
# Node ID c35579fb3b3a56ec59e30f5cf53b3f23d325c065
# Parent 5976606d5825c41960058d69535a8bf8ce10c009
summary: allow color to highlight active bookmark
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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]
More information about the Mercurial-devel
mailing list