##// END OF EJS Templates
summary: allow color to highlight active bookmark
Augie Fackler -
r14907:84af56cc default
parent child Browse files
Show More
@@ -4750,14 +4750,17 b' def summary(ui, repo, **opts):'
4750
4750
4751 if marks:
4751 if marks:
4752 current = repo._bookmarkcurrent
4752 current = repo._bookmarkcurrent
4753 ui.write(_('bookmarks:'), label='log.bookmark')
4753 if current is not None:
4754 if current is not None:
4754 try:
4755 try:
4755 marks.remove(current)
4756 marks.remove(current)
4756 marks = ['*' + current] + marks
4757 ui.write(' *' + current, label='bookmarks.current')
4757 except ValueError:
4758 except ValueError:
4758 # current bookmark not in parent ctx marks
4759 # current bookmark not in parent ctx marks
4759 pass
4760 pass
4760 ui.write(_('bookmarks: %s\n') % ' '.join(marks), label='log.bookmark')
4761 for m in marks:
4762 ui.write(' ' + m, label='log.bookmark')
4763 ui.write('\n', label='log.bookmark')
4761
4764
4762 st = list(repo.status(unknown=True))[:6]
4765 st = list(repo.status(unknown=True))[:6]
4763
4766
General Comments 0
You need to be logged in to leave comments. Login now