# HG changeset patch # User Yuya Nishihara # Date 1538573265 -32400 # Node ID e66a3ae8211a4a6d81cddcecf00f3e642aa2cbda # Parent f5d819d84461263dcfaf06442ae7912e6aec4384 help: document about "annotate" template keywords diff -r f5d819d84461 -r e66a3ae8211a mercurial/commands.py --- a/mercurial/commands.py Fri Sep 28 16:34:53 2018 -0700 +++ b/mercurial/commands.py Wed Oct 03 22:27:45 2018 +0900 @@ -288,6 +288,25 @@ anyway, although the results will probably be neither useful nor desirable. + .. container:: verbose + + Template: + + 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)