Patchwork [4,of,6] help: document about "cat" template keywords

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

Comments

Yuya Nishihara - Oct. 3, 2018, 2:09 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1538573658 -32400
#      Wed Oct 03 22:34:18 2018 +0900
# Node ID 221a266fb0313847e30acb095e080aee3d955a8d
# Parent  1d6252375718965479b2602fa7558436a08cbeb1
help: document about "cat" template keywords

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1358,6 +1358,16 @@  def cat(ui, repo, file1, *pats, **opts):
     :``%b``: basename of the exporting repository
     :``\\``: literal "\\" character
 
+    .. container:: verbose
+
+      Template:
+
+      The following keywords are supported in addition to the common template
+      keywords and functions. See also :hg:`help templates`.
+
+      :data:    String. File content.
+      :path:    String. Repository-absolute path of the file.
+
     Returns 0 on success.
     """
     opts = pycompat.byteskwargs(opts)