diff extensions/kwarchive.py @ 143:717f326181b0

Add "HGphase" and "HGtags" to the list of expanded Mercurial-specific keywords
author Franz Glasner <hg@dom66.de>
date Fri, 24 Aug 2018 01:38:56 +0200
parents 02126a3ad162
children 2a59edc0a44a
line wrap: on
line diff
--- a/extensions/kwarchive.py	Fri Aug 24 01:00:43 2018 +0200
+++ b/extensions/kwarchive.py	Fri Aug 24 01:38:56 2018 +0200
@@ -534,7 +534,9 @@
     keywords = {
         "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()),
+        "HGphase": ctx.phasestr(),
         "HGrevision": ctx.hex(),
         "Revision": templatefilters.short(ctx.hex()),
         "Date": templatefilters.isodatesec(ctx.date()),