help: document about "branches" template keywords
authorYuya Nishihara <yuya@tcha.org>
Wed, 03 Oct 2018 22:38:49 +0900
changeset 40013 d6e02248cdba
parent 40012 d44efe0e6f40
child 40014 d6b3cb3c5b11
help: document about "branches" template keywords
mercurial/commands.py
--- a/mercurial/commands.py	Wed Oct 03 22:32:18 2018 +0900
+++ b/mercurial/commands.py	Wed Oct 03 22:38:49 2018 +0900
@@ -1132,6 +1132,18 @@
 
     Use the command :hg:`update` to switch to an existing branch.
 
+    .. container:: verbose
+
+      Template:
+
+      The following keywords are supported in addition to the common template
+      keywords and functions such as ``{branch}``. See also
+      :hg:`help templates`.
+
+      :active:  Boolean. True if the branch is active.
+      :closed:  Boolean. True if the branch is closed.
+      :current: Boolean. True if it is the current branch.
+
     Returns 0.
     """