Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 137:5e502e9dd5e5
As an example: put the |VCSRevision| into the extensions also and print it with the help output
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Mon, 20 Aug 2018 09:26:19 +0200 |
| parents | f470702886b4 |
| children | 593f2af92d30 |
| files | .hgkwarchive extensions/kwarchive.py extensions/revinfo.py |
| diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgkwarchive Mon Aug 20 09:18:23 2018 +0200 +++ b/.hgkwarchive Mon Aug 20 09:26:19 2018 +0200 @@ -1,5 +1,5 @@ [patterns] -extensions/**.py = +extensions/**.py = RCS, reST path:VERSION = reST path:README = RCS, reST path:test2.txt = RCS, reST
--- a/extensions/kwarchive.py Mon Aug 20 09:18:23 2018 +0200 +++ b/extensions/kwarchive.py Mon Aug 20 09:26:19 2018 +0200 @@ -70,6 +70,8 @@ code execution secnarios because Mercurial templates can execute a big bunch of Python functions. +(rev |VCSRevision|) + """ from __future__ import absolute_import
