changeset 40013:d6e02248cdba

help: document about "branches" template keywords
author Yuya Nishihara <yuya@tcha.org>
date Wed, 03 Oct 2018 22:38:49 +0900
parents d44efe0e6f40
children d6b3cb3c5b11
files mercurial/commands.py
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
     """