Mercurial > hgrepos > DevTools > mercurial-extensions
diff extensions/kwarchive.py @ 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 | 2a59edc0a44a |
| children | f195b4704726 |
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()),
