Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 147:6f9eec09db3f
Filter out the special bookmark "@" when expanding keywords.
This is analogous to filtering out the "tip" tag.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 24 Aug 2018 09:03:54 +0200 |
| parents | fb82e116a7bf |
| children | 4b2ec744e39e |
| files | extensions/kwarchive.py |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/kwarchive.py Fri Aug 24 02:10:56 2018 +0200 +++ b/extensions/kwarchive.py Fri Aug 24 09:03:54 2018 +0200 @@ -535,7 +535,7 @@ "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(ctx.bookmarks()), + "HGbookmarks": " ".join([bm for bm in ctx.bookmarks() if bm != "@"]), "State": ctx.phasestr(), "HGrevision": ctx.hex(), "Revision": templatefilters.short(ctx.hex()),
