Mercurial > hg > hgrc
changeset 23:53614a88049e
wip: colourise bookmarks by activity
We use the currentbookmark template to determine if the bookmark we're
looking at is active. The "bold" attribute seems to just make the
green a bit brighter.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 25 Jun 2015 16:27:43 -0400 |
parents | 3a4f857e082a |
children | 8f5ccb3006f9 |
files | hgrc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgrc +++ b/hgrc @@ -76,6 +76,7 @@ log.description = lightyellow log.bookmark = green log.tag = darkorange +log.activebookmark = green bold underline changeset.public = orange bold changeset.secret = blue bold @@ -132,7 +133,7 @@ wip = log --graph --rev=wip --template=wip [templates] -wip = '{label("log.branch", ifeq(branch, "default", "", branch))} {label("changeset.{phase}", rev)} {label("grep.user", author|user)}{label("log.tag", if(tags," {tags}"))} {label("log.bookmark", if(bookmarks," {bookmarks}"))}\n{label(ifcontains(rev, revset('parents()'), 'desc.here'),desc|firstline)}' +wip = '{label("log.branch", ifeq(branch, "default", "", branch))} {label("changeset.{phase}", rev)} {label("grep.user", author|user)}{label("log.tag", if(tags," {tags}"))} {bookmarks % "{ifeq(bookmark, currentbookmark, label('log.activebookmark', bookmark), label('log.bookmark', bookmark))} "}\n{label(ifcontains(rev, revset('parents()'), 'desc.here'),desc|firstline)}' [revsetalias] wip = (parents(not public()) or not public() or . or head()) and (not obsolete() or unstable()^) and not closed()