[PATCH 4 of 6] help: document about "cat" template keywords
Yuya Nishihara
yuya at tcha.org
Wed Oct 3 10:09:03 EDT 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1538573658 -32400
# Wed Oct 03 22:34:18 2018 +0900
# Node ID 221a266fb0313847e30acb095e080aee3d955a8d
# Parent 1d6252375718965479b2602fa7558436a08cbeb1
help: document about "cat" template keywords
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)
More information about the Mercurial-devel
mailing list