Mercurial > hg
changeset 40117:dd23eb81a3a3
help: document about "version" template keywords
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 07 Oct 2018 23:19:49 +0900 |
parents | b99e91b2d39c |
children | cd490ac908c0 |
files | mercurial/commands.py |
diffstat | 1 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Oct 07 23:14:21 2018 +0900 +++ b/mercurial/commands.py Sun Oct 07 23:19:49 2018 +0900 @@ -6008,7 +6008,23 @@ @command('version', [] + formatteropts, norepo=True, intents={INTENT_READONLY}) def version_(ui, **opts): - """output version and copyright information""" + """output version and copyright information + + .. container:: verbose + + Template: + + The following keywords are supported. See also :hg:`help templates`. + + :extensions: List of extensions. + :ver: String. Version number. + + And each entry of ``{extensions}`` provides the following sub-keywords + in addition to ``{ver}``. + + :bundled: Boolean. True if included in the release. + :name: String. Extension name. + """ opts = pycompat.byteskwargs(opts) if ui.verbose: ui.pager('version')