Commit 4e51cf9b authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

help: document about "annotate" template keywords

parent f5d819d84461
......@@ -288,6 +288,25 @@ def annotate(ui, repo, *pats, **opts):
anyway, although the results will probably be neither useful
nor desirable.
.. container:: verbose
The following keywords are supported in addition to the common template
keywords and functions. See also :hg:`help templates`.
:lines: List of lines with annotation data.
:path: String. Repository-absolute path of the specified file.
And each entry of ``{lines}`` provides the following sub-keywords in
addition to ``{date}``, ``{node}``, ``{rev}``, ``{user}``, etc.
:line: String. Line content.
:lineno: Integer. Line number at that revision.
:path: String. Repository-absolute path of the file at that revision.
See :hg:`help templates.operators` for the list expansion syntax.
Returns 0 on success.
opts = pycompat.byteskwargs(opts)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment