Patchwork [5,of,6] help: document about "config" template keywords

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 3, 2018, 2:09 p.m.
Message ID <5657857137840bbb4406.1538575744@mimosa>
Download mbox | patch
Permalink /patch/35363/
State New
Headers show

Comments

Yuya Nishihara - Oct. 3, 2018, 2:09 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1538574237 -32400
#      Wed Oct 03 22:43:57 2018 +0900
# Node ID 5657857137840bbb4406c7d5ca2b17b99918eb94
# Parent  221a266fb0313847e30acb095e080aee3d955a8d
help: document about "config" template keywords

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1729,6 +1729,16 @@  def config(ui, repo, *values, **opts):
 
     See :hg:`help config` for more information about config files.
 
+    .. container:: verbose
+
+      Template:
+
+      The following keywords are supported. See also :hg:`help templates`.
+
+      :name:    String. Config name.
+      :source:  String. Filename and line number where the item is defined.
+      :value:   String. Config value.
+
     Returns 0 on success, 1 if NAME does not exist.
 
     """