127 between those revisions. If only one revision is specified then |
127 between those revisions. If only one revision is specified then |
128 that revision is compared to the working directory, and, when no |
128 that revision is compared to the working directory, and, when no |
129 revisions are specified, the working directory files are compared |
129 revisions are specified, the working directory files are compared |
130 to its parent. |
130 to its parent. |
131 |
131 |
132 export [revision]:: |
132 export [-o filespec] [revision] ...:: |
133 Print the changeset header and diffs for a particular revision. |
133 Print the changeset header and diffs for one or more revisions. |
134 |
134 |
135 The information shown in the changeset header is: author, changeset hash, |
135 The information shown in the changeset header is: author, |
136 parent and commit comment. |
136 changeset hash, parent and commit comment. |
|
137 |
|
138 Output may be to a file, in which case the name of the file is |
|
139 given using a format string. The formatting rules are as follows: |
|
140 |
|
141 %% literal "%" character |
|
142 %H changeset hash (40 bytes of hexadecimal) |
|
143 %N number of patches being generated |
|
144 %R changeset revision number |
|
145 %b basename of the exporting repository |
|
146 %h short-form changeset hash (12 bytes of hexadecimal) |
|
147 %n zero-padded sequence number, starting at 1 |
|
148 %r zero-padded changeset revision number |
|
149 |
|
150 Options: |
|
151 |
|
152 -o, --output <filespec> print output to file with formatted named |
137 |
153 |
138 forget [files]:: |
154 forget [files]:: |
139 Undo an 'hg add' scheduled for the next commit. |
155 Undo an 'hg add' scheduled for the next commit. |
140 |
156 |
141 heads:: |
157 heads:: |
315 This will perform an extensive check of the repository's |
331 This will perform an extensive check of the repository's |
316 integrity, validating the hashes and checksums of each entry in |
332 integrity, validating the hashes and checksums of each entry in |
317 the changelog, manifest, and tracked files, as well as the |
333 the changelog, manifest, and tracked files, as well as the |
318 integrity of their crosslinks and indices. |
334 integrity of their crosslinks and indices. |
319 |
335 |
|
336 SPECIFYING SINGLE REVISIONS |
|
337 --------------------------- |
|
338 |
|
339 Mercurial accepts several notations for identifying individual |
|
340 revisions. |
|
341 |
|
342 A plain integer is treated as a revision number. Negative |
|
343 integers are treated as offsets from the tip, with -1 denoting the |
|
344 tip. |
|
345 |
|
346 A 40-digit hexadecimal string is treated as a unique revision |
|
347 identifier. |
|
348 |
|
349 A hexadecimal string less than 40 characters long is treated as a |
|
350 unique revision identifier, and referred to as a short-form |
|
351 identifier. A short-form identifier is only valid if it is the |
|
352 prefix of one full-length identifier. |
|
353 |
|
354 Any other string is treated as a tag name, which is a symbolic |
|
355 name associated with a revision identifier. Tag names may not |
|
356 contain the ":" character. |
|
357 |
|
358 The reserved name "tip" is a special tag that always identifies |
|
359 the most recent revision. |
|
360 |
|
361 SPECIFYING MULTIPLE REVISIONS |
|
362 ----------------------------- |
|
363 |
|
364 When Mercurial accepts more than one revision, they may be |
|
365 specified individually, or provided as a continuous range, |
|
366 separated by the ":" character. |
|
367 |
|
368 The syntax of range notation is [BEGIN]:[END], where BEGIN and END |
|
369 are revision identifiers. Both BEGIN and END are optional. If |
|
370 BEGIN is not specified, it defaults to revision number 0. If END |
|
371 is not specified, it defaults to the tip. The range ":" thus |
|
372 means "all revisions". |
|
373 |
|
374 If BEGIN is greater than END, revisions are treated in reverse |
|
375 order. |
|
376 |
|
377 A range acts as an open interval. This means that a range of 3:5 |
|
378 gives 3, 4 and 5. Similarly, a range of 4:2 gives 4, 3, and 2. |
320 |
379 |
321 ENVIRONMENT VARIABLES |
380 ENVIRONMENT VARIABLES |
322 --------------------- |
381 --------------------- |
323 |
382 |
324 HGEDITOR:: |
383 HGEDITOR:: |