##// END OF EJS Templates
help: move "revision syntax" help topics into online help...
Johannes Stezenbach -
r6655:ab798a37 default
parent child Browse files
Show More
@@ -37,58 +37,6 b' repository path::'
37
37
38 include::hg.1.gendoc.txt[]
38 include::hg.1.gendoc.txt[]
39
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
92 FILES
40 FILES
93 -----
41 -----
94 .hgignore::
42 .hgignore::
@@ -161,4 +161,56 b' PYTHONPATH::'
161 This is used by Python to find imported modules and may need to be set
161 This is used by Python to find imported modules and may need to be set
162 appropriately if Mercurial is not installed system-wide.
162 appropriately if Mercurial is not installed system-wide.
163 '''),
163 '''),
164
165 ('revs|revisions|Specifying Single Revisions',
166 r'''
167 Mercurial accepts several notations for identifying individual
168 revisions.
169
170 A plain integer is treated as a revision number. Negative
171 integers are treated as offsets from the tip, with -1 denoting the
172 tip.
173
174 A 40-digit hexadecimal string is treated as a unique revision
175 identifier.
176
177 A hexadecimal string less than 40 characters long is treated as a
178 unique revision identifier, and referred to as a short-form
179 identifier. A short-form identifier is only valid if it is the
180 prefix of one full-length identifier.
181
182 Any other string is treated as a tag name, which is a symbolic
183 name associated with a revision identifier. Tag names may not
184 contain the ":" character.
185
186 The reserved name "tip" is a special tag that always identifies
187 the most recent revision.
188
189 The reserved name "null" indicates the null revision. This is the
190 revision of an empty repository, and the parent of revision 0.
191
192 The reserved name "." indicates the working directory parent. If
193 no working directory is checked out, it is equivalent to null.
194 If an uncommitted merge is in progress, "." is the revision of
195 the first parent.
196 '''),
197
198 ('mrevs|multirevs|Specifying Multiple Revisions',
199 r'''
200 When Mercurial accepts more than one revision, they may be
201 specified individually, or provided as a continuous range,
202 separated by the ":" character.
203
204 The syntax of range notation is [BEGIN]:[END], where BEGIN and END
205 are revision identifiers. Both BEGIN and END are optional. If
206 BEGIN is not specified, it defaults to revision number 0. If END
207 is not specified, it defaults to the tip. The range ":" thus
208 means "all revisions".
209
210 If BEGIN is greater than END, revisions are treated in reverse
211 order.
212
213 A range acts as a closed interval. This means that a range of 3:5
214 gives 3, 4 and 5. Similarly, a range of 4:2 gives 4, 3, and 2.
215 '''),
164 )
216 )
@@ -37,6 +37,8 b' special help topics:'
37 dates Date Formats
37 dates Date Formats
38 patterns File Name Patterns
38 patterns File Name Patterns
39 environment, env Environment Variables
39 environment, env Environment Variables
40 revs, revisions Specifying Single Revisions
41 mrevs, multirevs Specifying Multiple Revisions
40
42
41 global options:
43 global options:
42 -R --repository repository root directory or symbolic path name
44 -R --repository repository root directory or symbolic path name
General Comments 0
You need to be logged in to leave comments. Login now