| 1 |
.TH HG ANNOTATE "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg annotate \- show changeset information by line for each file |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg annotate [\-r REV] [\-f] [\-a] [\-u] [\-d] [\-n] [\-c] [\-l] FILE... |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
List changes in files, showing the revision id responsible for |
| 16 |
each line. |
| 17 |
.sp |
| 18 |
This command is useful for discovering when a change was made and |
| 19 |
by whom. |
| 20 |
.sp |
| 21 |
If you include \-\-file, \-\-user, or \-\-date, the revision number is |
| 22 |
suppressed unless you also include \-\-number. |
| 23 |
.sp |
| 24 |
Without the \-a/\-\-text option, annotate will avoid processing files |
| 25 |
it detects as binary. With \-a, annotate will annotate the file |
| 26 |
anyway, although the results will probably be neither useful |
| 27 |
nor desirable. |
| 28 |
.sp |
| 29 |
Use \-L/\-\-line\-range FILE,M:N options to filter the output to the lines |
| 30 |
from M to N in FILE. This option is incompatible with \-\-no\-follow and |
| 31 |
cannot be combined with file pattern arguments. When combined with \-\-rev |
| 32 |
the line ranges refer to the state of the file at the requested revision. |
| 33 |
.sp |
| 34 |
Template: |
| 35 |
.sp |
| 36 |
The following keywords are supported in addition to the common template |
| 37 |
keywords and functions. See also \%\fBhg help templates\fP\:. |
| 38 |
.INDENT 0.0 |
| 39 |
.TP |
| 40 |
.B lines |
| 41 |
. |
| 42 |
List of lines with annotation data. |
| 43 |
.TP |
| 44 |
.B path |
| 45 |
. |
| 46 |
String. Repository\-absolute path of the specified file. |
| 47 |
.UNINDENT |
| 48 |
.sp |
| 49 |
And each entry of \fB{lines}\fP provides the following sub\-keywords in |
| 50 |
addition to \fB{date}\fP, \fB{node}\fP, \fB{rev}\fP, \fB{user}\fP, etc. |
| 51 |
.INDENT 0.0 |
| 52 |
.TP |
| 53 |
.B line |
| 54 |
. |
| 55 |
String. Line content. |
| 56 |
.TP |
| 57 |
.B lineno |
| 58 |
. |
| 59 |
Integer. Line number at that revision. |
| 60 |
.TP |
| 61 |
.B path |
| 62 |
. |
| 63 |
String. Repository\-absolute path of the file at that revision. |
| 64 |
.UNINDENT |
| 65 |
.sp |
| 66 |
See \%\fBhg help templates.operators\fP\: for the list expansion syntax. |
| 67 |
.sp |
| 68 |
Returns 0 on success. |
| 69 |
.SH OPTIONS |
| 70 |
.INDENT 0.0 |
| 71 |
.TP |
| 72 |
.BI \-r, \-\-rev \ <REV> |
| 73 |
. |
| 74 |
annotate the specified revision |
| 75 |
.TP |
| 76 |
.B \-\-follow |
| 77 |
. |
| 78 |
follow copies/renames and list the filename (DEPRECATED) |
| 79 |
.TP |
| 80 |
.B \-\-no\-follow |
| 81 |
. |
| 82 |
don\(aqt follow copies and renames |
| 83 |
.TP |
| 84 |
.B \-a, \-\-text |
| 85 |
. |
| 86 |
treat all files as text |
| 87 |
.TP |
| 88 |
.B \-u, \-\-user |
| 89 |
. |
| 90 |
list the author (long with \-v) |
| 91 |
.TP |
| 92 |
.B \-f, \-\-file |
| 93 |
. |
| 94 |
list the filename |
| 95 |
.TP |
| 96 |
.B \-d, \-\-date |
| 97 |
. |
| 98 |
list the date (short with \-q) |
| 99 |
.TP |
| 100 |
.B \-n, \-\-number |
| 101 |
. |
| 102 |
list the revision number (default) |
| 103 |
.TP |
| 104 |
.B \-c, \-\-changeset |
| 105 |
. |
| 106 |
list the changeset |
| 107 |
.TP |
| 108 |
.B \-l, \-\-line\-number |
| 109 |
. |
| 110 |
show line number at the first appearance |
| 111 |
.TP |
| 112 |
.BI \-\-skip \ <REV[+]> |
| 113 |
. |
| 114 |
revset to not display (EXPERIMENTAL) |
| 115 |
.TP |
| 116 |
.BI \-L, \-\-line\-range \ <FILE,RANGE[+]> |
| 117 |
. |
| 118 |
follow line range of specified file (EXPERIMENTAL) |
| 119 |
.TP |
| 120 |
.B \-w, \-\-ignore\-all\-space |
| 121 |
. |
| 122 |
ignore white space when comparing lines |
| 123 |
.TP |
| 124 |
.B \-b, \-\-ignore\-space\-change |
| 125 |
. |
| 126 |
ignore changes in the amount of white space |
| 127 |
.TP |
| 128 |
.B \-B, \-\-ignore\-blank\-lines |
| 129 |
. |
| 130 |
ignore changes whose lines are all blank |
| 131 |
.TP |
| 132 |
.B \-Z, \-\-ignore\-space\-at\-eol |
| 133 |
. |
| 134 |
ignore changes in whitespace at EOL |
| 135 |
.TP |
| 136 |
.BI \-I, \-\-include \ <PATTERN[+]> |
| 137 |
. |
| 138 |
include names matching the given patterns |
| 139 |
.TP |
| 140 |
.BI \-X, \-\-exclude \ <PATTERN[+]> |
| 141 |
. |
| 142 |
exclude names matching the given patterns |
| 143 |
.TP |
| 144 |
.BI \-T, \-\-template \ <TEMPLATE> |
| 145 |
. |
| 146 |
display with template |
| 147 |
.UNINDENT |
| 148 |
.sp |
| 149 |
[+] marked option can be specified multiple times |
| 150 |
.SH ALIASES |
| 151 |
.sp |
| 152 |
.nf |
| 153 |
.ft C |
| 154 |
blame |
| 155 |
.ft P |
| 156 |
.fi |
| 157 |
.\" Generated by docutils manpage writer. |
| 158 |
.\" |
| 159 |
. |