Debian Codegraph @

doc/html/hg-annotate.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>hg annotate</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="hg-annotate">
12 <span id="hg-annotate-1"></span>
13 <h1 class="title">hg annotate</h1>
14 <h2 class="subtitle" id="show-changeset-information-by-line-for-each-file">show changeset information by line for each file</h2>
15
16 <div class="contents htmlonly topic" id="contents">
17 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
18 <ul class="simple">
19 <li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li>
20 <li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li>
21 <li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li>
22 <li><a class="reference internal" href="#aliases" id="toc-entry-4">Aliases</a></li>
23 </ul>
24 </div>
25 <div class="section" id="synopsis">
26 <h1><a class="toc-backref" href="#contents">Synopsis</a></h1>
27 <pre class="literal-block">
28 hg annotate [-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...
29 </pre>
30 </div>
31 <div class="section" id="description">
32 <h1><a class="toc-backref" href="#contents">Description</a></h1>
33 <p>List changes in files, showing the revision id responsible for
34 each line.</p>
35 <p>This command is useful for discovering when a change was made and
36 by whom.</p>
37 <p>If you include --file, --user, or --date, the revision number is
38 suppressed unless you also include --number.</p>
39 <p>Without the -a/--text option, annotate will avoid processing files
40 it detects as binary. With -a, annotate will annotate the file
41 anyway, although the results will probably be neither useful
42 nor desirable.</p>
43 <div class="verbose docutils container">
44 Use -L/--line-range FILE,M:N options to filter the output to the lines
45 from M to N in FILE. This option is incompatible with --no-follow and
46 cannot be combined with file pattern arguments. When combined with --rev
47 the line ranges refer to the state of the file at the requested revision.</div>
48 <div class="verbose docutils container">
49 <p>Template:</p>
50 <p>The following keywords are supported in addition to the common template
51 keywords and functions. See also <a class="reference external" href="hg.1.html#templates"><tt class="docutils literal">hg help templates</tt></a>.</p>
52 <table class="docutils field-list" frame="void" rules="none">
53 <col class="field-name" />
54 <col class="field-body" />
55 <tbody valign="top">
56 <tr class="field"><th class="field-name">lines:</th><td class="field-body">List of lines with annotation data.</td>
57 </tr>
58 <tr class="field"><th class="field-name">path:</th><td class="field-body">String. Repository-absolute path of the specified file.</td>
59 </tr>
60 </tbody>
61 </table>
62 <p>And each entry of <tt class="docutils literal">{lines}</tt> provides the following sub-keywords in
63 addition to <tt class="docutils literal">{date}</tt>, <tt class="docutils literal">{node}</tt>, <tt class="docutils literal">{rev}</tt>, <tt class="docutils literal">{user}</tt>, etc.</p>
64 <table class="docutils field-list" frame="void" rules="none">
65 <col class="field-name" />
66 <col class="field-body" />
67 <tbody valign="top">
68 <tr class="field"><th class="field-name">line:</th><td class="field-body">String. Line content.</td>
69 </tr>
70 <tr class="field"><th class="field-name">lineno:</th><td class="field-body">Integer. Line number at that revision.</td>
71 </tr>
72 <tr class="field"><th class="field-name">path:</th><td class="field-body">String. Repository-absolute path of the file at that revision.</td>
73 </tr>
74 </tbody>
75 </table>
76 <p>See <a class="reference external" href="hg.1.html#templates.operators"><tt class="docutils literal">hg help templates.operators</tt></a> for the list expansion syntax.</p>
77 </div>
78 <p>Returns 0 on success.</p>
79 </div>
80 <div class="section" id="options">
81 <h1><a class="toc-backref" href="#contents">Options</a></h1>
82 <table class="docutils option-list" frame="void" rules="none">
83 <col class="option" />
84 <col class="description" />
85 <tbody valign="top">
86 <tr><td class="option-group" colspan="2">
87 <kbd><span class="option">-r</span>, <span class="option">--rev <var>&lt;REV&gt;</var></span></kbd></td>
88 </tr>
89 <tr><td>&nbsp;</td><td>annotate the specified revision</td></tr>
90 <tr><td class="option-group">
91 <kbd><span class="option">--follow</span></kbd></td>
92 <td>follow copies/renames and list the filename (DEPRECATED)</td></tr>
93 <tr><td class="option-group">
94 <kbd><span class="option">--no-follow</span></kbd></td>
95 <td>don't follow copies and renames</td></tr>
96 <tr><td class="option-group">
97 <kbd><span class="option">-a</span>, <span class="option">--text</span></kbd></td>
98 <td>treat all files as text</td></tr>
99 <tr><td class="option-group">
100 <kbd><span class="option">-u</span>, <span class="option">--user</span></kbd></td>
101 <td>list the author (long with -v)</td></tr>
102 <tr><td class="option-group">
103 <kbd><span class="option">-f</span>, <span class="option">--file</span></kbd></td>
104 <td>list the filename</td></tr>
105 <tr><td class="option-group">
106 <kbd><span class="option">-d</span>, <span class="option">--date</span></kbd></td>
107 <td>list the date (short with -q)</td></tr>
108 <tr><td class="option-group">
109 <kbd><span class="option">-n</span>, <span class="option">--number</span></kbd></td>
110 <td>list the revision number (default)</td></tr>
111 <tr><td class="option-group" colspan="2">
112 <kbd><span class="option">-c</span>, <span class="option">--changeset</span></kbd></td>
113 </tr>
114 <tr><td>&nbsp;</td><td>list the changeset</td></tr>
115 <tr><td class="option-group" colspan="2">
116 <kbd><span class="option">-l</span>, <span class="option">--line-number</span></kbd></td>
117 </tr>
118 <tr><td>&nbsp;</td><td>show line number at the first appearance</td></tr>
119 <tr><td class="option-group" colspan="2">
120 <kbd><span class="option">--skip <var>&lt;REV[+]&gt;</var></span></kbd></td>
121 </tr>
122 <tr><td>&nbsp;</td><td>revset to not display (EXPERIMENTAL)</td></tr>
123 <tr><td class="option-group" colspan="2">
124 <kbd><span class="option">-L</span>, <span class="option">--line-range <var>&lt;FILE,RANGE[+]&gt;</var></span></kbd></td>
125 </tr>
126 <tr><td>&nbsp;</td><td>follow line range of specified file (EXPERIMENTAL)</td></tr>
127 <tr><td class="option-group" colspan="2">
128 <kbd><span class="option">-w</span>, <span class="option">--ignore-all-space</span></kbd></td>
129 </tr>
130 <tr><td>&nbsp;</td><td>ignore white space when comparing lines</td></tr>
131 <tr><td class="option-group" colspan="2">
132 <kbd><span class="option">-b</span>, <span class="option">--ignore-space-change</span></kbd></td>
133 </tr>
134 <tr><td>&nbsp;</td><td>ignore changes in the amount of white space</td></tr>
135 <tr><td class="option-group" colspan="2">
136 <kbd><span class="option">-B</span>, <span class="option">--ignore-blank-lines</span></kbd></td>
137 </tr>
138 <tr><td>&nbsp;</td><td>ignore changes whose lines are all blank</td></tr>
139 <tr><td class="option-group" colspan="2">
140 <kbd><span class="option">-Z</span>, <span class="option">--ignore-space-at-eol</span></kbd></td>
141 </tr>
142 <tr><td>&nbsp;</td><td>ignore changes in whitespace at EOL</td></tr>
143 <tr><td class="option-group" colspan="2">
144 <kbd><span class="option">-I</span>, <span class="option">--include <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
145 </tr>
146 <tr><td>&nbsp;</td><td>include names matching the given patterns</td></tr>
147 <tr><td class="option-group" colspan="2">
148 <kbd><span class="option">-X</span>, <span class="option">--exclude <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
149 </tr>
150 <tr><td>&nbsp;</td><td>exclude names matching the given patterns</td></tr>
151 <tr><td class="option-group" colspan="2">
152 <kbd><span class="option">-T</span>, <span class="option">--template <var>&lt;TEMPLATE&gt;</var></span></kbd></td>
153 </tr>
154 <tr><td>&nbsp;</td><td>display with template</td></tr>
155 </tbody>
156 </table>
157 <p>[+] marked option can be specified multiple times</p>
158 </div>
159 <div class="section" id="aliases">
160 <h1><a class="toc-backref" href="#contents">Aliases</a></h1>
161 <pre class="literal-block">
162 blame
163 </pre>
164 </div>
165 </div>
166 </body>
167 </html>