From patchwork Sun Oct 7 14:32:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [7,of,7] help: document about "version" template keywords From: Yuya Nishihara X-Patchwork-Id: 35539 Message-Id: <39d4dc4752afe35aac84.1538922750@mimosa> To: mercurial-devel@mercurial-scm.org Date: Sun, 07 Oct 2018 23:32:30 +0900 # HG changeset patch # User Yuya Nishihara # Date 1538921989 -32400 # Sun Oct 07 23:19:49 2018 +0900 # Node ID 39d4dc4752afe35aac84e702fd33c0dfaad4598f # Parent 4df2ec2902c502325e8276ce8f190ee61f2e4367 help: document about "version" template keywords diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -6008,7 +6008,23 @@ def verify(ui, repo): @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')