34 fast and the static-http:// protocol which is much slower but does not |
34 fast and the static-http:// protocol which is much slower but does not |
35 require a special server on the web host. |
35 require a special server on the web host. |
36 |
36 |
37 |
37 |
38 include::hg.1.gendoc.txt[] |
38 include::hg.1.gendoc.txt[] |
39 |
|
40 SPECIFYING SINGLE REVISIONS |
|
41 --------------------------- |
|
42 |
|
43 Mercurial accepts several notations for identifying individual |
|
44 revisions. |
|
45 |
|
46 A plain integer is treated as a revision number. Negative |
|
47 integers are treated as offsets from the tip, with -1 denoting the |
|
48 tip. |
|
49 |
|
50 A 40-digit hexadecimal string is treated as a unique revision |
|
51 identifier. |
|
52 |
|
53 A hexadecimal string less than 40 characters long is treated as a |
|
54 unique revision identifier, and referred to as a short-form |
|
55 identifier. A short-form identifier is only valid if it is the |
|
56 prefix of one full-length identifier. |
|
57 |
|
58 Any other string is treated as a tag name, which is a symbolic |
|
59 name associated with a revision identifier. Tag names may not |
|
60 contain the ":" character. |
|
61 |
|
62 The reserved name "tip" is a special tag that always identifies |
|
63 the most recent revision. |
|
64 |
|
65 The reserved name "null" indicates the null revision. This is the |
|
66 revision of an empty repository, and the parent of revision 0. |
|
67 |
|
68 The reserved name "." indicates the working directory parent. If |
|
69 no working directory is checked out, it is equivalent to null. |
|
70 If an uncommitted merge is in progress, "." is the revision of |
|
71 the first parent. |
|
72 |
|
73 SPECIFYING MULTIPLE REVISIONS |
|
74 ----------------------------- |
|
75 |
|
76 When Mercurial accepts more than one revision, they may be |
|
77 specified individually, or provided as a continuous range, |
|
78 separated by the ":" character. |
|
79 |
|
80 The syntax of range notation is [BEGIN]:[END], where BEGIN and END |
|
81 are revision identifiers. Both BEGIN and END are optional. If |
|
82 BEGIN is not specified, it defaults to revision number 0. If END |
|
83 is not specified, it defaults to the tip. The range ":" thus |
|
84 means "all revisions". |
|
85 |
|
86 If BEGIN is greater than END, revisions are treated in reverse |
|
87 order. |
|
88 |
|
89 A range acts as a closed interval. This means that a range of 3:5 |
|
90 gives 3, 4 and 5. Similarly, a range of 4:2 gives 4, 3, and 2. |
|
91 |
39 |
92 FILES |
40 FILES |
93 ----- |
41 ----- |
94 .hgignore:: |
42 .hgignore:: |
95 This file contains regular expressions (one per line) that describe file |
43 This file contains regular expressions (one per line) that describe file |