Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 40012:e66a3ae8211a
help: document about "annotate" template keywords
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 03 Oct 2018 22:27:45 +0900 |
parents | a91398dc73ab |
children | d44efe0e6f40 |
comparison
equal
deleted
inserted
replaced
40011:f5d819d84461 | 40012:e66a3ae8211a |
---|---|
286 Without the -a/--text option, annotate will avoid processing files | 286 Without the -a/--text option, annotate will avoid processing files |
287 it detects as binary. With -a, annotate will annotate the file | 287 it detects as binary. With -a, annotate will annotate the file |
288 anyway, although the results will probably be neither useful | 288 anyway, although the results will probably be neither useful |
289 nor desirable. | 289 nor desirable. |
290 | 290 |
291 .. container:: verbose | |
292 | |
293 Template: | |
294 | |
295 The following keywords are supported in addition to the common template | |
296 keywords and functions. See also :hg:`help templates`. | |
297 | |
298 :lines: List of lines with annotation data. | |
299 :path: String. Repository-absolute path of the specified file. | |
300 | |
301 And each entry of ``{lines}`` provides the following sub-keywords in | |
302 addition to ``{date}``, ``{node}``, ``{rev}``, ``{user}``, etc. | |
303 | |
304 :line: String. Line content. | |
305 :lineno: Integer. Line number at that revision. | |
306 :path: String. Repository-absolute path of the file at that revision. | |
307 | |
308 See :hg:`help templates.operators` for the list expansion syntax. | |
309 | |
291 Returns 0 on success. | 310 Returns 0 on success. |
292 """ | 311 """ |
293 opts = pycompat.byteskwargs(opts) | 312 opts = pycompat.byteskwargs(opts) |
294 if not pats: | 313 if not pats: |
295 raise error.Abort(_('at least one filename or pattern is required')) | 314 raise error.Abort(_('at least one filename or pattern is required')) |