Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 154:f287e23cb3ad
Don't print the leading '*' characters of active bookmarks in keyword expansion
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 26 Aug 2018 18:13:36 +0200 |
| parents | 11b39af77153 |
| children | 7c5af9e953be |
| files | extensions/kwarchive.py |
| diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/kwarchive.py Sat Aug 25 22:37:43 2018 +0200 +++ b/extensions/kwarchive.py Sun Aug 26 18:13:36 2018 +0200 @@ -558,7 +558,8 @@ "HGpath": path_uri, # XXX FIXME: Should Archive an alias of this "HGbranch": ctx.branch(), "HGtags": " ".join([tag for tag in ctx.tags() if tag != "tip"]), - "HGbookmarks": " ".join([bm for bm in ctx.bookmarks() if bm != "@"]), + "HGbookmarks": " ".join([bm if not bm.startswith('*') else bm[1:] + for bm in ctx.bookmarks() if bm != "@"]), "State": ctx.phasestr(), "HGrevision": ctx.hex(), "Revision": templatefilters.short(ctx.hex()),
