changeset 131:91077014c7b7

Added Mercurial specific keywords "HGbranch" and "HGbookmarks"
author Franz Glasner <hg@dom66.de>
date Sat, 18 Aug 2018 20:22:36 +0200
parents c3397e670063
children 2984818d96e4
files extensions/kwarchive.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/kwarchive.py	Sat Aug 18 18:48:45 2018 +0200
+++ b/extensions/kwarchive.py	Sat Aug 18 20:22:36 2018 +0200
@@ -503,7 +503,9 @@
         # an absolute POSIX path
         path_uri = b"file://" + path_uri
     keywords = {
-        "HGpath": path_uri,
+        "HGpath": path_uri,     # XXX FIXME: Should Archive an alias of this
+        "HGbranch": ctx.branch(),
+        "HGbookmarks": " ".join(ctx.bookmarks()),
         "HGrevision": ctx.hex(),
         "Revision": templatefilters.short(ctx.hex()),
         "Date": templatefilters.isodatesec(ctx.date()),