# HG changeset patch # User Franz Glasner # Date 1535300016 -7200 # Node ID f287e23cb3ad0a469b3b8bc387bb5b29e3f403c6 # Parent 11b39af77153eaeb508b32f02a424cc469d2c8ed Don't print the leading '*' characters of active bookmarks in keyword expansion diff -r 11b39af77153 -r f287e23cb3ad extensions/kwarchive.py --- 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()),