Mercurial > hgrepos > DevTools > mercurial-extensions
diff extensions/kwarchive.py @ 52:d06311d805af
Make the "$Author$" expansion a single word: replace spaces with a '+' char.
This is similar to the encoding of spaces in URIs.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 19 Nov 2017 16:59:35 +0100 |
| parents | 3807a60ee0dd |
| children | 333f98d045ab |
line wrap: on
line diff
--- a/extensions/kwarchive.py Sun Nov 19 16:53:58 2017 +0100 +++ b/extensions/kwarchive.py Sun Nov 19 16:59:35 2017 +0100 @@ -322,7 +322,7 @@ "HGpath": path_uri, "HGrevision": ctx.hex(), "Revision": templatefilters.short(ctx.hex()), - "Author": templatefilters.person(ctx.user()), + "Author": templatefilters.person(ctx.user()).replace(' ', '+'), "Date": templatefilters.isodatesec(ctx.date()), } return keywords
