##// END OF EJS Templates
help: add "glossary" topic...
Faheem Mitha -
r11356:51144584 default
parent child Browse files
Show More
@@ -0,0 +1,357
1 Ancestor
2 Any changeset that can be reached by an unbroken chain of parent
3 changesets from a given changeset. More precisely, the ancestors
4 of a changeset can be defined by two properties: a parent of a
5 changeset is an ancestor, and a parent of an ancestor is an
6 ancestor. See also: 'Descendant'.
7
8 Branch
9 (Noun) A child changeset that has been created from a parent that
10 is not a head. These are known as topological branches, see
11 'Branch, topological'.If a topological branch is named, it becomes
12 a named branch. If a topological branch is not named, it becomes
13 an anonymous branch. See 'Branch, anonymous' and 'Branch, named'.
14
15 Branches may be created when changes are pulled from or pushed to
16 a remote repository, since new heads may be created by these
17 operations. Note that the term branch can also be used informally
18 to describe a development process in which certain development is
19 done independently of other development.This is sometimes done
20 explicitly with a named branch, but it can also be done locally,
21 using bookmarks or clones and anonymous branches.
22
23 Example: "The experimental branch".
24
25 (Verb) The action of creating a child changeset which results in
26 its parent having more than one child.
27
28 Example: "I'm going to branch at X".
29
30 Branch, anonymous
31 Every time a new child changeset is created from a parent that is not
32 a head and the name of the branch is not changed, a new anonymous
33 branch is created.
34
35 Branch, closed
36 A named branch whose branch heads have all been closed.
37
38 Branch, default
39 The branch assigned to a changeset when no name has previously been
40 assigned.
41
42 Branch head
43 See 'Head, branch'.
44
45 Branch, named
46 A collection of changesets which have the same branch name. By
47 default, children of a changeset in a named branch belong to the
48 same named branch. A child can be explicitly assigned to a
49 different branch. See :hg:`help branch`, :hg:`help branches` and
50 :hg:`commit --close-branch` for more information on managing
51 branches.
52
53 Named branches can be thought of as a kind of namespace, dividing
54 the collection of changesets that comprise the repository into a
55 collection of disjoint subsets. A named branch is not necessarily
56 a topological branch. If a new named branch is created from the
57 head of another named branch, or the default branch, but no
58 further changesets are added to that previous branch, then the new
59 named branch will be a branch in name only.
60
61 Branch tip
62 See 'Tip, branch'.
63
64 Branch, topological
65 Every time a new child changeset is created from a parent that is
66 not a head, a new topological branch is created. If a topological
67 branch is named, it becomes a named branch. If a topological
68 branch is not named, it becomes an anonymous branch of the
69 current, possibly default, branch.
70
71 Changelog
72 A record of the changesets in the order in which they were added
73 to the repository. This includes details such as changeset id,
74 author, commit message, date, and list of changed files.
75
76 Changeset
77 A snapshot of the state of the repository used to record a change.
78
79 Changeset, child
80 The converse of parent changeset: if P is a parent of C, then C is
81 a child of P. There is no limit to the number of children that a
82 changeset may have.
83
84 Changeset id
85 A SHA-1 hash that uniquely identifies a changeset. It may be
86 represented as either a "long" 40-byte hexadecimal string, or a
87 "short" 12-byte hexadecimal string.
88
89 Changeset, merge
90 A changeset with two parents. This occurs when a merge is
91 committed.
92
93 Changeset, parent
94 A revision upon which a child changeset is based. Specifically, a
95 parent changeset of a changeset C is a changeset whose node
96 immediately precedes C in the DAG. Changesets have at most two
97 parents.
98
99 Checkout
100 (Noun) The working directory being updated to a specific
101 revision. This use should probably be avoided where possible, as
102 changeset is much more appropriate than checkout in this context.
103
104 Example: "I'm using checkout X."
105
106 (Verb) Updating the working directory to a specific changeset. See
107 :hg:`help update`.
108
109 Example: "I'm going to check out changeset X."
110
111 Child changeset
112 See 'Changeset, child'.
113
114 Close changeset
115 See 'Changeset, close'.
116
117 Closed branch
118 See 'Branch, closed'.
119
120 Clone
121 (Noun) An entire or partial copy of a repository. The partial
122 clone must be in the form of a revision and its ancestors.
123
124 Example: "Is your clone up to date?".
125
126 (Verb) The process of creating a clone, using :hg:`clone`.
127
128 Example: "I'm going to clone the repository".
129
130 Closed branch head
131 See 'Head, closed branch'.
132
133 Commit
134 (Noun) A synonym for changeset.
135
136 Example: "Is the bug fixed in your recent commit?"
137
138 (Verb) The act of recording changes to a repository. When files
139 are committed in a working directory, Mercurial finds the
140 differences between the committed files and their parent
141 changeset, creating a new changeset in the repository.
142
143 Example: "You should commit those changes now."
144
145 Cset
146 A common abbreviation of the term changeset.
147
148 DAG
149 The repository of changesets of a distributed version control
150 system (DVCS) can be described as a directed acyclic graph (DAG),
151 consisting of nodes and edges, where nodes correspond to
152 changesets and edges imply a parent -> child relation. This graph
153 can be visualized by graphical tools such as :hg:`glog`
154 (graphlog). In mercurial, the DAG is limited by the requirement
155 for children to have at most two parents.
156
157 Default branch
158 See 'Branch, default'.
159
160 Descendant
161 Any changeset that can be reached by a chain of child changesets
162 from a given changeset. More precisely, the descendants of a
163 changeset can be defined by two properties: the child of a
164 changeset is a descendant, and the child of a descendant is a
165 descendant. See also: 'Ancestor'.
166
167 Diff
168 (Noun) The difference between the contents and attributes of files
169 in two changesets or a changeset and the current working
170 directory. The difference is usually represented in a standard
171 form called a "diff" or "patch". The "git diff" format is used
172 when the changes include copies, renames, or changes to file
173 attributes, none of which can be represented/handled by classic
174 "diff" and "patch".
175
176 Example: "Did you see my correction in the diff?"
177
178 (Verb) Diffing two changesets is the action of creating a diff or
179 patch.
180
181 Example: "If you diff with changeset X, you will see what I mean."
182
183 Directory, working
184 The working directory represents the state of the files tracked by
185 Mercurial, that will be recorded in the next commit. The working
186 directory initially corresponds to the snapshot at an existing
187 changeset, known as the parent of the working directory. See
188 'Parents, working directory'. The state may be modified by changes
189 to the files introduced manually or by a merge. The repository
190 metadata exists in the .hg directory inside the working directory.
191
192 Graph
193 See DAG and :hg:`help graphlog`.
194
195 Head
196 The term 'head' may be used to refer to both a branch head or a
197 repository head, depending on the context. See 'Head, branch' and
198 'Head, repository' for specific definitions.
199
200 Heads are where development generally takes place and are the
201 usual targets for update and merge operations.
202
203 Head, branch
204 A changeset with no descendants on the same named branch.
205
206 Head, closed branch
207 A changeset that marks a head as no longer interesting. The closed
208 head is no longer listed by :hg:`heads`. A branch is considered
209 closed when all its heads are closed and consequently is not
210 listed by :hg:`branches`.
211
212 Head, repository
213 A topological head which has not been closed.
214
215 Head, topological
216 A changeset with no children in the repository.
217
218 History, immutable
219 Once committed, changesets cannot be altered. Extensions which
220 appear to change history actually create new changesets that
221 replace existing ones, and then destroy the old changesets. Doing
222 so in public repositories can result in old changesets being
223 reintroduced to the repository.
224
225 History, rewriting
226 The changesets in a repository are immutable. However, extensions
227 to Mercurial can be used to alter the repository, usually in such
228 a way as to preserve changeset contents.
229
230 Immutable history
231 See 'History, immutable'.
232
233 Merge changeset
234 See 'Changeset, merge'.
235
236 Manifest
237 Each changeset has a manifest, which is the list of files that are
238 tracked by the changeset.
239
240 Merge
241 Used to bring together divergent branches of work. When you update
242 to a changeset and then merge another changeset, you bring the
243 history of the latter changeset into your working directory. Once
244 conflicts are resolved (and marked), this merge may be committed
245 as a merge changeset, bringing two branches together in the DAG.
246
247 Named branch
248 See 'Branch, named'.
249
250 Null changeset
251 The empty changeset. It is the parent state of newly-initialized
252 repositories and repositories with no checked out revision. It is
253 thus the parent of root changesets and the effective ancestor when
254 merging unrelated changesets. Can be specified by the alias 'null'
255 or by the changeset ID '000000000000'.
256
257 Parent
258 See 'Changeset, parent'.
259
260 Parent changeset
261 See 'Changeset, parent'.
262
263 Parent, working directory
264 The working directory parent reflects a virtual revision which is
265 the child of the changeset (or two changesets with an uncommitted
266 merge) shown by :hg:`parents`. This is changed with
267 :hg:`update`. Other commands to see the working directory parent
268 are :hg:`summary` and :hg:`id`. Can be specified by the alias ".".
269
270 Patch
271 (Noun) The product of a diff operation.
272
273 Example: "I've sent you my patch."
274
275 (Verb) The process of using a patch file to transform one
276 changeset into another.
277
278 Example: "You will need to patch that revision."
279
280 Pull
281 An operation in which changesets in a remote repository which are
282 not in the local repository are brought into the local
283 repository. Note that this operation without special arguments
284 only updates the repository, it does not update the files in the
285 working directory. See :hg:`help pull`.
286
287 Push
288 An operation in which changesets in a local repository which are
289 not in a remote repository are sent to the remote repository. Note
290 that this operation only adds changesets which have been committed
291 locally to the remote repository. Uncommitted changes are not
292 sent. See :hg:`help push`.
293
294 Repository
295 The metadata describing all recorded states of a collection of
296 files. Each recorded state is represented by a changeset. A
297 repository is usually (but not always) found in the ``.hg``
298 subdirectory of a working directory. Any recorded state can be
299 recreated by "updating" a working directory to a specific
300 changeset.
301
302 Repository head
303 See 'Head, repository'.
304
305 Revision
306 A state of the repository at some point in time. Earlier revisions
307 can be updated to by using :hg:`update`. See also 'Revision
308 number'; See also 'Changeset'.
309
310 Revision number
311 This integer uniquely identifies a changeset in a specific
312 repository. It represents the order in which changesets were added
313 to a repository, starting with revision number 0. Note that the
314 revision number may be different in each clone of a repository. To
315 identify changesets uniquely between different clones, see
316 'Changeset id'.
317
318 Revlog
319 History storage mechanism used by Mercurial. It is a form of delta
320 encoding, with occasional full revision of data followed by delta
321 of each successive revision. It includes data and an index
322 pointing to the data.
323
324 Rewriting history
325 See 'History, rewriting'.
326
327 Root
328 A changeset that has only the null changeset as its parent. Most
329 repositories have only a single root changeset.
330
331 Tip
332 The changeset with the highest revision number. It is the changeset
333 most recently added in a repository.
334
335 Tip, branch
336 The head of a given branch with the highest revision number. When
337 a branch name is used as a revision identifier, it refers to the
338 branch tip. See also 'Branch, head'. Note that because revision
339 numbers may be different in different repository clones, the
340 branch tip may be different in different cloned repositories.
341
342 Update
343 (Noun) Another synonym of changeset.
344
345 Example: "I've pushed an update".
346
347 (Verb) This term is usually used to describe updating the state of
348 the working directory to that of a specific changeset. See
349 :hg:`help update`.
350
351 Example: "You should update".
352
353 Working directory
354 See 'Directory, working'.
355
356 Working directory parent
357 See 'Parent, working directory'.
@@ -1,101 +1,102
1 1 # help.py - help data for mercurial
2 2 #
3 3 # Copyright 2006 Matt Mackall <mpm@selenic.com>
4 4 #
5 5 # This software may be used and distributed according to the terms of the
6 6 # GNU General Public License version 2 or any later version.
7 7
8 8 from i18n import gettext, _
9 9 import sys, os
10 10 import extensions
11 11
12 12
13 13 def moduledoc(file):
14 14 '''return the top-level python documentation for the given file
15 15
16 16 Loosely inspired by pydoc.source_synopsis(), but rewritten to
17 17 handle triple quotes and to return the whole text instead of just
18 18 the synopsis'''
19 19 result = []
20 20
21 21 line = file.readline()
22 22 while line[:1] == '#' or not line.strip():
23 23 line = file.readline()
24 24 if not line:
25 25 break
26 26
27 27 start = line[:3]
28 28 if start == '"""' or start == "'''":
29 29 line = line[3:]
30 30 while line:
31 31 if line.rstrip().endswith(start):
32 32 line = line.split(start)[0]
33 33 if line:
34 34 result.append(line)
35 35 break
36 36 elif not line:
37 37 return None # unmatched delimiter
38 38 result.append(line)
39 39 line = file.readline()
40 40 else:
41 41 return None
42 42
43 43 return ''.join(result)
44 44
45 45 def listexts(header, exts, maxlength, indent=1):
46 46 '''return a text listing of the given extensions'''
47 47 if not exts:
48 48 return ''
49 49 result = '\n%s\n\n' % header
50 50 for name, desc in sorted(exts.iteritems()):
51 51 result += '%s%-*s %s\n' % (' ' * indent, maxlength + 2,
52 52 ':%s:' % name, desc)
53 53 return result
54 54
55 55 def extshelp():
56 56 doc = loaddoc('extensions')()
57 57
58 58 exts, maxlength = extensions.enabled()
59 59 doc += listexts(_('enabled extensions:'), exts, maxlength)
60 60
61 61 exts, maxlength = extensions.disabled()
62 62 doc += listexts(_('disabled extensions:'), exts, maxlength)
63 63
64 64 return doc
65 65
66 66 def loaddoc(topic):
67 67 """Return a delayed loader for help/topic.txt."""
68 68
69 69 def loader():
70 70 if hasattr(sys, 'frozen'):
71 71 module = sys.executable
72 72 else:
73 73 module = __file__
74 74 base = os.path.dirname(module)
75 75
76 76 for dir in ('.', '..'):
77 77 docdir = os.path.join(base, dir, 'help')
78 78 if os.path.isdir(docdir):
79 79 break
80 80
81 81 path = os.path.join(docdir, topic + ".txt")
82 82 return gettext(open(path).read())
83 83 return loader
84 84
85 85 helptable = (
86 86 (["config"], _("Configuration Files"), loaddoc('config')),
87 87 (["dates"], _("Date Formats"), loaddoc('dates')),
88 88 (["patterns"], _("File Name Patterns"), loaddoc('patterns')),
89 89 (['environment', 'env'], _('Environment Variables'),
90 90 loaddoc('environment')),
91 91 (['revs', 'revisions'], _('Specifying Single Revisions'),
92 92 loaddoc('revisions')),
93 93 (['mrevs', 'multirevs'], _('Specifying Multiple Revisions'),
94 94 loaddoc('multirevs')),
95 95 (['diffs'], _('Diff Formats'), loaddoc('diffs')),
96 96 (['templating', 'templates'], _('Template Usage'),
97 97 loaddoc('templates')),
98 98 (['urls'], _('URL Paths'), loaddoc('urls')),
99 99 (["extensions"], _("Using additional features"), extshelp),
100 100 (["hgweb"], _("Configuring hgweb"), loaddoc('hgweb')),
101 (["glossary"], _("Glossary"), loaddoc('glossary')),
101 102 )
@@ -1,288 +1,290
1 1 adding a
2 2 adding b
3 3 updating to branch default
4 4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 5 pulling from ../b
6 6 searching for changes
7 7 warning: repository is unrelated
8 8 adding changesets
9 9 adding manifests
10 10 adding file changes
11 11 added 1 changesets with 1 changes to 1 files (+1 heads)
12 12 (run 'hg heads' to see heads, 'hg merge' to merge)
13 13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 14 (branch merge, don't forget to commit)
15 15 %% -R/--repository
16 16 changeset: 0:8580ff50825a
17 17 tag: tip
18 18 user: test
19 19 date: Thu Jan 01 00:00:01 1970 +0000
20 20 summary: a
21 21
22 22 changeset: 0:b6c483daf290
23 23 tag: tip
24 24 user: test
25 25 date: Thu Jan 01 00:00:01 1970 +0000
26 26 summary: b
27 27
28 28 %% implicit -R
29 29 0: a
30 30 0: a
31 31 abort: There is no Mercurial repository here (.hg not found)!
32 32 abort: a/a not under root
33 33 abort: There is no Mercurial repository here (.hg not found)!
34 34 %% abbrev of long option
35 35 changeset: 1:b6c483daf290
36 36 tag: tip
37 37 parent: -1:000000000000
38 38 user: test
39 39 date: Thu Jan 01 00:00:01 1970 +0000
40 40 summary: b
41 41
42 42 %% earlygetopt with duplicate options (36d23de02da1)
43 43 changeset: 1:b6c483daf290
44 44 tag: tip
45 45 parent: -1:000000000000
46 46 user: test
47 47 date: Thu Jan 01 00:00:01 1970 +0000
48 48 summary: b
49 49
50 50 changeset: 0:8580ff50825a
51 51 tag: tip
52 52 user: test
53 53 date: Thu Jan 01 00:00:01 1970 +0000
54 54 summary: a
55 55
56 56 %% earlygetopt short option without following space
57 57 0:b6c483daf290
58 58 %% earlygetopt with illegal abbreviations
59 59 abort: Option --config may not be abbreviated!
60 60 abort: Option --cwd may not be abbreviated!
61 61 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
62 62 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
63 63 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
64 64 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
65 65 %% --cwd
66 66 changeset: 0:8580ff50825a
67 67 tag: tip
68 68 user: test
69 69 date: Thu Jan 01 00:00:01 1970 +0000
70 70 summary: a
71 71
72 72 %% -y/--noninteractive - just be sure it is parsed
73 73 0:8580ff50825a
74 74 0:8580ff50825a
75 75 %% -q/--quiet
76 76 0:8580ff50825a
77 77 0:b6c483daf290
78 78 0:8580ff50825a
79 79 1:b6c483daf290
80 80 %% -v/--verbose
81 81 changeset: 1:b6c483daf290
82 82 tag: tip
83 83 parent: -1:000000000000
84 84 user: test
85 85 date: Thu Jan 01 00:00:01 1970 +0000
86 86 files: b
87 87 description:
88 88 b
89 89
90 90
91 91 changeset: 0:8580ff50825a
92 92 user: test
93 93 date: Thu Jan 01 00:00:01 1970 +0000
94 94 files: a
95 95 description:
96 96 a
97 97
98 98
99 99 changeset: 0:b6c483daf290
100 100 tag: tip
101 101 user: test
102 102 date: Thu Jan 01 00:00:01 1970 +0000
103 103 files: b
104 104 description:
105 105 b
106 106
107 107
108 108 %% --config
109 109 quuxfoo
110 110 abort: malformed --config option: '' (use --config section.name=value)
111 111 abort: malformed --config option: 'a.b' (use --config section.name=value)
112 112 abort: malformed --config option: 'a' (use --config section.name=value)
113 113 abort: malformed --config option: 'a.=' (use --config section.name=value)
114 114 abort: malformed --config option: '.b=' (use --config section.name=value)
115 115 %% --debug
116 116 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
117 117 tag: tip
118 118 parent: -1:0000000000000000000000000000000000000000
119 119 parent: -1:0000000000000000000000000000000000000000
120 120 manifest: 1:23226e7a252cacdc2d99e4fbdc3653441056de49
121 121 user: test
122 122 date: Thu Jan 01 00:00:01 1970 +0000
123 123 files+: b
124 124 extra: branch=default
125 125 description:
126 126 b
127 127
128 128
129 129 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
130 130 parent: -1:0000000000000000000000000000000000000000
131 131 parent: -1:0000000000000000000000000000000000000000
132 132 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
133 133 user: test
134 134 date: Thu Jan 01 00:00:01 1970 +0000
135 135 files+: a
136 136 extra: branch=default
137 137 description:
138 138 a
139 139
140 140
141 141 %% --traceback
142 142 Traceback (most recent call last):
143 143 %% --time
144 144 Time: real x.x secs (user x.x+x.x sys x.x+x.x)
145 145 %% --version
146 146 Mercurial Distributed SCM (version xxx)
147 147 %% -h/--help
148 148 Mercurial Distributed SCM
149 149
150 150 list of commands:
151 151
152 152 add add the specified files on the next commit
153 153 addremove add all new files, delete all missing files
154 154 annotate show changeset information by line for each file
155 155 archive create an unversioned archive of a repository revision
156 156 backout reverse effect of earlier changeset
157 157 bisect subdivision search of changesets
158 158 branch set or show the current branch name
159 159 branches list repository named branches
160 160 bundle create a changegroup file
161 161 cat output the current or given revision of files
162 162 clone make a copy of an existing repository
163 163 commit commit the specified files or all outstanding changes
164 164 copy mark files as copied for the next commit
165 165 diff diff repository (or selected files)
166 166 export dump the header and diffs for one or more changesets
167 167 forget forget the specified files on the next commit
168 168 grep search for a pattern in specified files and revisions
169 169 heads show current repository heads or show branch heads
170 170 help show help for a given topic or a help overview
171 171 identify identify the working copy or specified revision
172 172 import import an ordered set of patches
173 173 incoming show new changesets found in source
174 174 init create a new repository in the given directory
175 175 locate locate files matching specific patterns
176 176 log show revision history of entire repository or files
177 177 manifest output the current or given revision of the project manifest
178 178 merge merge working directory with another revision
179 179 outgoing show changesets not found in the destination
180 180 parents show the parents of the working directory or revision
181 181 paths show aliases for remote repositories
182 182 pull pull changes from the specified source
183 183 push push changes to the specified destination
184 184 recover roll back an interrupted transaction
185 185 remove remove the specified files on the next commit
186 186 rename rename files; equivalent of copy + remove
187 187 resolve various operations to help finish a merge
188 188 revert restore individual files or directories to an earlier state
189 189 rollback roll back the last transaction (dangerous)
190 190 root print the root (top) of the current working directory
191 191 serve start stand-alone webserver
192 192 showconfig show combined config settings from all hgrc files
193 193 status show changed files in the working directory
194 194 summary summarize working directory state
195 195 tag add one or more tags for the current or given revision
196 196 tags list repository tags
197 197 tip show the tip revision
198 198 unbundle apply one or more changegroup files
199 199 update update working directory (or switch revisions)
200 200 verify verify the integrity of the repository
201 201 version output version and copyright information
202 202
203 203 additional help topics:
204 204
205 205 config Configuration Files
206 206 dates Date Formats
207 207 patterns File Name Patterns
208 208 environment Environment Variables
209 209 revisions Specifying Single Revisions
210 210 multirevs Specifying Multiple Revisions
211 211 diffs Diff Formats
212 212 templating Template Usage
213 213 urls URL Paths
214 214 extensions Using additional features
215 215 hgweb Configuring hgweb
216 glossary Glossary
216 217
217 218 use "hg -v help" to show aliases and global options
218 219 Mercurial Distributed SCM
219 220
220 221 list of commands:
221 222
222 223 add add the specified files on the next commit
223 224 addremove add all new files, delete all missing files
224 225 annotate show changeset information by line for each file
225 226 archive create an unversioned archive of a repository revision
226 227 backout reverse effect of earlier changeset
227 228 bisect subdivision search of changesets
228 229 branch set or show the current branch name
229 230 branches list repository named branches
230 231 bundle create a changegroup file
231 232 cat output the current or given revision of files
232 233 clone make a copy of an existing repository
233 234 commit commit the specified files or all outstanding changes
234 235 copy mark files as copied for the next commit
235 236 diff diff repository (or selected files)
236 237 export dump the header and diffs for one or more changesets
237 238 forget forget the specified files on the next commit
238 239 grep search for a pattern in specified files and revisions
239 240 heads show current repository heads or show branch heads
240 241 help show help for a given topic or a help overview
241 242 identify identify the working copy or specified revision
242 243 import import an ordered set of patches
243 244 incoming show new changesets found in source
244 245 init create a new repository in the given directory
245 246 locate locate files matching specific patterns
246 247 log show revision history of entire repository or files
247 248 manifest output the current or given revision of the project manifest
248 249 merge merge working directory with another revision
249 250 outgoing show changesets not found in the destination
250 251 parents show the parents of the working directory or revision
251 252 paths show aliases for remote repositories
252 253 pull pull changes from the specified source
253 254 push push changes to the specified destination
254 255 recover roll back an interrupted transaction
255 256 remove remove the specified files on the next commit
256 257 rename rename files; equivalent of copy + remove
257 258 resolve various operations to help finish a merge
258 259 revert restore individual files or directories to an earlier state
259 260 rollback roll back the last transaction (dangerous)
260 261 root print the root (top) of the current working directory
261 262 serve start stand-alone webserver
262 263 showconfig show combined config settings from all hgrc files
263 264 status show changed files in the working directory
264 265 summary summarize working directory state
265 266 tag add one or more tags for the current or given revision
266 267 tags list repository tags
267 268 tip show the tip revision
268 269 unbundle apply one or more changegroup files
269 270 update update working directory (or switch revisions)
270 271 verify verify the integrity of the repository
271 272 version output version and copyright information
272 273
273 274 additional help topics:
274 275
275 276 config Configuration Files
276 277 dates Date Formats
277 278 patterns File Name Patterns
278 279 environment Environment Variables
279 280 revisions Specifying Single Revisions
280 281 multirevs Specifying Multiple Revisions
281 282 diffs Diff Formats
282 283 templating Template Usage
283 284 urls URL Paths
284 285 extensions Using additional features
285 286 hgweb Configuring hgweb
287 glossary Glossary
286 288
287 289 use "hg -v help" to show aliases and global options
288 290 %% not tested: --debugger
@@ -1,664 +1,667
1 1 Mercurial Distributed SCM
2 2
3 3 basic commands:
4 4
5 5 add add the specified files on the next commit
6 6 annotate show changeset information by line for each file
7 7 clone make a copy of an existing repository
8 8 commit commit the specified files or all outstanding changes
9 9 diff diff repository (or selected files)
10 10 export dump the header and diffs for one or more changesets
11 11 forget forget the specified files on the next commit
12 12 init create a new repository in the given directory
13 13 log show revision history of entire repository or files
14 14 merge merge working directory with another revision
15 15 pull pull changes from the specified source
16 16 push push changes to the specified destination
17 17 remove remove the specified files on the next commit
18 18 serve start stand-alone webserver
19 19 status show changed files in the working directory
20 20 summary summarize working directory state
21 21 update update working directory (or switch revisions)
22 22
23 23 use "hg help" for the full list of commands or "hg -v" for details
24 24 add add the specified files on the next commit
25 25 annotate show changeset information by line for each file
26 26 clone make a copy of an existing repository
27 27 commit commit the specified files or all outstanding changes
28 28 diff diff repository (or selected files)
29 29 export dump the header and diffs for one or more changesets
30 30 forget forget the specified files on the next commit
31 31 init create a new repository in the given directory
32 32 log show revision history of entire repository or files
33 33 merge merge working directory with another revision
34 34 pull pull changes from the specified source
35 35 push push changes to the specified destination
36 36 remove remove the specified files on the next commit
37 37 serve start stand-alone webserver
38 38 status show changed files in the working directory
39 39 summary summarize working directory state
40 40 update update working directory (or switch revisions)
41 41 Mercurial Distributed SCM
42 42
43 43 list of commands:
44 44
45 45 add add the specified files on the next commit
46 46 addremove add all new files, delete all missing files
47 47 annotate show changeset information by line for each file
48 48 archive create an unversioned archive of a repository revision
49 49 backout reverse effect of earlier changeset
50 50 bisect subdivision search of changesets
51 51 branch set or show the current branch name
52 52 branches list repository named branches
53 53 bundle create a changegroup file
54 54 cat output the current or given revision of files
55 55 clone make a copy of an existing repository
56 56 commit commit the specified files or all outstanding changes
57 57 copy mark files as copied for the next commit
58 58 diff diff repository (or selected files)
59 59 export dump the header and diffs for one or more changesets
60 60 forget forget the specified files on the next commit
61 61 grep search for a pattern in specified files and revisions
62 62 heads show current repository heads or show branch heads
63 63 help show help for a given topic or a help overview
64 64 identify identify the working copy or specified revision
65 65 import import an ordered set of patches
66 66 incoming show new changesets found in source
67 67 init create a new repository in the given directory
68 68 locate locate files matching specific patterns
69 69 log show revision history of entire repository or files
70 70 manifest output the current or given revision of the project manifest
71 71 merge merge working directory with another revision
72 72 outgoing show changesets not found in the destination
73 73 parents show the parents of the working directory or revision
74 74 paths show aliases for remote repositories
75 75 pull pull changes from the specified source
76 76 push push changes to the specified destination
77 77 recover roll back an interrupted transaction
78 78 remove remove the specified files on the next commit
79 79 rename rename files; equivalent of copy + remove
80 80 resolve various operations to help finish a merge
81 81 revert restore individual files or directories to an earlier state
82 82 rollback roll back the last transaction (dangerous)
83 83 root print the root (top) of the current working directory
84 84 serve start stand-alone webserver
85 85 showconfig show combined config settings from all hgrc files
86 86 status show changed files in the working directory
87 87 summary summarize working directory state
88 88 tag add one or more tags for the current or given revision
89 89 tags list repository tags
90 90 tip show the tip revision
91 91 unbundle apply one or more changegroup files
92 92 update update working directory (or switch revisions)
93 93 verify verify the integrity of the repository
94 94 version output version and copyright information
95 95
96 96 additional help topics:
97 97
98 98 config Configuration Files
99 99 dates Date Formats
100 100 patterns File Name Patterns
101 101 environment Environment Variables
102 102 revisions Specifying Single Revisions
103 103 multirevs Specifying Multiple Revisions
104 104 diffs Diff Formats
105 105 templating Template Usage
106 106 urls URL Paths
107 107 extensions Using additional features
108 108 hgweb Configuring hgweb
109 glossary Glossary
109 110
110 111 use "hg -v help" to show aliases and global options
111 112 add add the specified files on the next commit
112 113 addremove add all new files, delete all missing files
113 114 annotate show changeset information by line for each file
114 115 archive create an unversioned archive of a repository revision
115 116 backout reverse effect of earlier changeset
116 117 bisect subdivision search of changesets
117 118 branch set or show the current branch name
118 119 branches list repository named branches
119 120 bundle create a changegroup file
120 121 cat output the current or given revision of files
121 122 clone make a copy of an existing repository
122 123 commit commit the specified files or all outstanding changes
123 124 copy mark files as copied for the next commit
124 125 diff diff repository (or selected files)
125 126 export dump the header and diffs for one or more changesets
126 127 forget forget the specified files on the next commit
127 128 grep search for a pattern in specified files and revisions
128 129 heads show current repository heads or show branch heads
129 130 help show help for a given topic or a help overview
130 131 identify identify the working copy or specified revision
131 132 import import an ordered set of patches
132 133 incoming show new changesets found in source
133 134 init create a new repository in the given directory
134 135 locate locate files matching specific patterns
135 136 log show revision history of entire repository or files
136 137 manifest output the current or given revision of the project manifest
137 138 merge merge working directory with another revision
138 139 outgoing show changesets not found in the destination
139 140 parents show the parents of the working directory or revision
140 141 paths show aliases for remote repositories
141 142 pull pull changes from the specified source
142 143 push push changes to the specified destination
143 144 recover roll back an interrupted transaction
144 145 remove remove the specified files on the next commit
145 146 rename rename files; equivalent of copy + remove
146 147 resolve various operations to help finish a merge
147 148 revert restore individual files or directories to an earlier state
148 149 rollback roll back the last transaction (dangerous)
149 150 root print the root (top) of the current working directory
150 151 serve start stand-alone webserver
151 152 showconfig show combined config settings from all hgrc files
152 153 status show changed files in the working directory
153 154 summary summarize working directory state
154 155 tag add one or more tags for the current or given revision
155 156 tags list repository tags
156 157 tip show the tip revision
157 158 unbundle apply one or more changegroup files
158 159 update update working directory (or switch revisions)
159 160 verify verify the integrity of the repository
160 161 version output version and copyright information
161 162
162 163 additional help topics:
163 164
164 165 config Configuration Files
165 166 dates Date Formats
166 167 patterns File Name Patterns
167 168 environment Environment Variables
168 169 revisions Specifying Single Revisions
169 170 multirevs Specifying Multiple Revisions
170 171 diffs Diff Formats
171 172 templating Template Usage
172 173 urls URL Paths
173 174 extensions Using additional features
174 175 hgweb Configuring hgweb
176 glossary Glossary
175 177 %% test short command list with verbose option
176 178 Mercurial Distributed SCM (version xxx)
177 179
178 180 Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
179 181 This is free software; see the source for copying conditions. There is NO
180 182 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
181 183
182 184 basic commands:
183 185
184 186 add:
185 187 add the specified files on the next commit
186 188 annotate, blame:
187 189 show changeset information by line for each file
188 190 clone:
189 191 make a copy of an existing repository
190 192 commit, ci:
191 193 commit the specified files or all outstanding changes
192 194 diff:
193 195 diff repository (or selected files)
194 196 export:
195 197 dump the header and diffs for one or more changesets
196 198 forget:
197 199 forget the specified files on the next commit
198 200 init:
199 201 create a new repository in the given directory
200 202 log, history:
201 203 show revision history of entire repository or files
202 204 merge:
203 205 merge working directory with another revision
204 206 pull:
205 207 pull changes from the specified source
206 208 push:
207 209 push changes to the specified destination
208 210 remove, rm:
209 211 remove the specified files on the next commit
210 212 serve:
211 213 start stand-alone webserver
212 214 status, st:
213 215 show changed files in the working directory
214 216 summary, sum:
215 217 summarize working directory state
216 218 update, up, checkout, co:
217 219 update working directory (or switch revisions)
218 220
219 221 global options:
220 222 -R --repository REPO repository root directory or name of overlay bundle
221 223 file
222 224 --cwd DIR change working directory
223 225 -y --noninteractive do not prompt, assume 'yes' for any required answers
224 226 -q --quiet suppress output
225 227 -v --verbose enable additional output
226 228 --config CONFIG [+] set/override config option (use 'section.name=value')
227 229 --debug enable debugging output
228 230 --debugger start debugger
229 231 --encoding ENCODE set the charset encoding (default: ascii)
230 232 --encodingmode MODE set the charset encoding mode (default: strict)
231 233 --traceback always print a traceback on exception
232 234 --time time how long the command takes
233 235 --profile print command execution profile
234 236 --version output version information and exit
235 237 -h --help display help and exit
236 238
237 239 [+] marked option can be specified multiple times
238 240
239 241 use "hg help" for the full list of commands
240 242 hg add [OPTION]... [FILE]...
241 243
242 244 add the specified files on the next commit
243 245
244 246 Schedule files to be version controlled and added to the repository.
245 247
246 248 The files will be added to the repository at the next commit. To undo an
247 249 add before that, see "hg forget".
248 250
249 251 If no names are given, add all files to the repository.
250 252
251 253 use "hg -v help add" to show verbose help
252 254
253 255 options:
254 256
255 257 -I --include PATTERN [+] include names matching the given patterns
256 258 -X --exclude PATTERN [+] exclude names matching the given patterns
257 259 -n --dry-run do not perform actions, just print output
258 260
259 261 [+] marked option can be specified multiple times
260 262
261 263 use "hg -v help add" to show global options
262 264 %% verbose help for add
263 265 hg add [OPTION]... [FILE]...
264 266
265 267 add the specified files on the next commit
266 268
267 269 Schedule files to be version controlled and added to the repository.
268 270
269 271 The files will be added to the repository at the next commit. To undo an
270 272 add before that, see "hg forget".
271 273
272 274 If no names are given, add all files to the repository.
273 275
274 276 An example showing how new (unknown) files are added automatically by "hg
275 277 add":
276 278
277 279 $ ls
278 280 foo.c
279 281 $ hg status
280 282 ? foo.c
281 283 $ hg add
282 284 adding foo.c
283 285 $ hg status
284 286 A foo.c
285 287
286 288 options:
287 289
288 290 -I --include PATTERN [+] include names matching the given patterns
289 291 -X --exclude PATTERN [+] exclude names matching the given patterns
290 292 -n --dry-run do not perform actions, just print output
291 293
292 294 global options:
293 295 -R --repository REPO repository root directory or name of overlay bundle
294 296 file
295 297 --cwd DIR change working directory
296 298 -y --noninteractive do not prompt, assume 'yes' for any required
297 299 answers
298 300 -q --quiet suppress output
299 301 -v --verbose enable additional output
300 302 --config CONFIG [+] set/override config option (use
301 303 'section.name=value')
302 304 --debug enable debugging output
303 305 --debugger start debugger
304 306 --encoding ENCODE set the charset encoding (default: ascii)
305 307 --encodingmode MODE set the charset encoding mode (default: strict)
306 308 --traceback always print a traceback on exception
307 309 --time time how long the command takes
308 310 --profile print command execution profile
309 311 --version output version information and exit
310 312 -h --help display help and exit
311 313
312 314 [+] marked option can be specified multiple times
313 315 %% test help option with version option
314 316 Mercurial Distributed SCM (version xxx)
315 317
316 318 Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
317 319 This is free software; see the source for copying conditions. There is NO
318 320 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
319 321
320 322 hg add [OPTION]... [FILE]...
321 323
322 324 add the specified files on the next commit
323 325
324 326 Schedule files to be version controlled and added to the repository.
325 327
326 328 The files will be added to the repository at the next commit. To undo an
327 329 add before that, see "hg forget".
328 330
329 331 If no names are given, add all files to the repository.
330 332
331 333 use "hg -v help add" to show verbose help
332 334
333 335 options:
334 336
335 337 -I --include PATTERN [+] include names matching the given patterns
336 338 -X --exclude PATTERN [+] exclude names matching the given patterns
337 339 -n --dry-run do not perform actions, just print output
338 340
339 341 [+] marked option can be specified multiple times
340 342
341 343 use "hg -v help add" to show global options
342 344 hg add: option --skjdfks not recognized
343 345 hg add [OPTION]... [FILE]...
344 346
345 347 add the specified files on the next commit
346 348
347 349 Schedule files to be version controlled and added to the repository.
348 350
349 351 The files will be added to the repository at the next commit. To undo an
350 352 add before that, see "hg forget".
351 353
352 354 If no names are given, add all files to the repository.
353 355
354 356 use "hg -v help add" to show verbose help
355 357
356 358 options:
357 359
358 360 -I --include PATTERN [+] include names matching the given patterns
359 361 -X --exclude PATTERN [+] exclude names matching the given patterns
360 362 -n --dry-run do not perform actions, just print output
361 363
362 364 [+] marked option can be specified multiple times
363 365
364 366 use "hg -v help add" to show global options
365 367 %% test ambiguous command help
366 368 list of commands:
367 369
368 370 add add the specified files on the next commit
369 371 addremove add all new files, delete all missing files
370 372
371 373 use "hg -v help ad" to show aliases and global options
372 374 %% test command without options
373 375 hg verify
374 376
375 377 verify the integrity of the repository
376 378
377 379 Verify the integrity of the current repository.
378 380
379 381 This will perform an extensive check of the repository's integrity,
380 382 validating the hashes and checksums of each entry in the changelog,
381 383 manifest, and tracked files, as well as the integrity of their crosslinks
382 384 and indices.
383 385
384 386 Returns 0 on success, 1 if errors are encountered.
385 387
386 388 use "hg -v help verify" to show global options
387 389 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
388 390
389 391 diff repository (or selected files)
390 392
391 393 Show differences between revisions for the specified files.
392 394
393 395 Differences between files are shown using the unified diff format.
394 396
395 397 NOTE: diff may generate unexpected results for merges, as it will default
396 398 to comparing against the working directory's first parent changeset if no
397 399 revisions are specified.
398 400
399 401 When two revision arguments are given, then changes are shown between
400 402 those revisions. If only one revision is specified then that revision is
401 403 compared to the working directory, and, when no revisions are specified,
402 404 the working directory files are compared to its parent.
403 405
404 406 Alternatively you can specify -c/--change with a revision to see the
405 407 changes in that changeset relative to its first parent.
406 408
407 409 Without the -a/--text option, diff will avoid generating diffs of files it
408 410 detects as binary. With -a, diff will generate a diff anyway, probably
409 411 with undesirable results.
410 412
411 413 Use the -g/--git option to generate diffs in the git extended diff format.
412 414 For more information, read "hg help diffs".
413 415
414 416 Returns 0 on success.
415 417
416 418 options:
417 419
418 420 -r --rev REV [+] revision
419 421 -c --change REV change made by revision
420 422 -a --text treat all files as text
421 423 -g --git use git extended diff format
422 424 --nodates omit dates from diff headers
423 425 -p --show-function show which function each change is in
424 426 --reverse produce a diff that undoes the changes
425 427 -w --ignore-all-space ignore white space when comparing lines
426 428 -b --ignore-space-change ignore changes in the amount of white space
427 429 -B --ignore-blank-lines ignore changes whose lines are all blank
428 430 -U --unified NUM number of lines of context to show
429 431 --stat output diffstat-style summary of changes
430 432 -I --include PATTERN [+] include names matching the given patterns
431 433 -X --exclude PATTERN [+] exclude names matching the given patterns
432 434
433 435 [+] marked option can be specified multiple times
434 436
435 437 use "hg -v help diff" to show global options
436 438 hg status [OPTION]... [FILE]...
437 439
438 440 aliases: st
439 441
440 442 show changed files in the working directory
441 443
442 444 Show status of files in the repository. If names are given, only files
443 445 that match are shown. Files that are clean or ignored or the source of a
444 446 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
445 447 -C/--copies or -A/--all are given. Unless options described with "show
446 448 only ..." are given, the options -mardu are used.
447 449
448 450 Option -q/--quiet hides untracked (unknown and ignored) files unless
449 451 explicitly requested with -u/--unknown or -i/--ignored.
450 452
451 453 NOTE: status may appear to disagree with diff if permissions have changed
452 454 or a merge has occurred. The standard diff format does not report
453 455 permission changes and diff only reports changes relative to one merge
454 456 parent.
455 457
456 458 If one revision is given, it is used as the base revision. If two
457 459 revisions are given, the differences between them are shown. The --change
458 460 option can also be used as a shortcut to list the changed files of a
459 461 revision from its first parent.
460 462
461 463 The codes used to show the status of files are:
462 464
463 465 M = modified
464 466 A = added
465 467 R = removed
466 468 C = clean
467 469 ! = missing (deleted by non-hg command, but still tracked)
468 470 ? = not tracked
469 471 I = ignored
470 472 = origin of the previous file listed as A (added)
471 473
472 474 Returns 0 on success.
473 475
474 476 options:
475 477
476 478 -A --all show status of all files
477 479 -m --modified show only modified files
478 480 -a --added show only added files
479 481 -r --removed show only removed files
480 482 -d --deleted show only deleted (but tracked) files
481 483 -c --clean show only files without changes
482 484 -u --unknown show only unknown (not tracked) files
483 485 -i --ignored show only ignored files
484 486 -n --no-status hide status prefix
485 487 -C --copies show source of copied files
486 488 -0 --print0 end filenames with NUL, for use with xargs
487 489 --rev REV [+] show difference from revision
488 490 --change REV list the changed files of a revision
489 491 -I --include PATTERN [+] include names matching the given patterns
490 492 -X --exclude PATTERN [+] exclude names matching the given patterns
491 493
492 494 [+] marked option can be specified multiple times
493 495
494 496 use "hg -v help status" to show global options
495 497 hg status [OPTION]... [FILE]...
496 498
497 499 show changed files in the working directory
498 500 hg: unknown command 'foo'
499 501 Mercurial Distributed SCM
500 502
501 503 basic commands:
502 504
503 505 add add the specified files on the next commit
504 506 annotate show changeset information by line for each file
505 507 clone make a copy of an existing repository
506 508 commit commit the specified files or all outstanding changes
507 509 diff diff repository (or selected files)
508 510 export dump the header and diffs for one or more changesets
509 511 forget forget the specified files on the next commit
510 512 init create a new repository in the given directory
511 513 log show revision history of entire repository or files
512 514 merge merge working directory with another revision
513 515 pull pull changes from the specified source
514 516 push push changes to the specified destination
515 517 remove remove the specified files on the next commit
516 518 serve start stand-alone webserver
517 519 status show changed files in the working directory
518 520 summary summarize working directory state
519 521 update update working directory (or switch revisions)
520 522
521 523 use "hg help" for the full list of commands or "hg -v" for details
522 524 hg: unknown command 'skjdfks'
523 525 Mercurial Distributed SCM
524 526
525 527 basic commands:
526 528
527 529 add add the specified files on the next commit
528 530 annotate show changeset information by line for each file
529 531 clone make a copy of an existing repository
530 532 commit commit the specified files or all outstanding changes
531 533 diff diff repository (or selected files)
532 534 export dump the header and diffs for one or more changesets
533 535 forget forget the specified files on the next commit
534 536 init create a new repository in the given directory
535 537 log show revision history of entire repository or files
536 538 merge merge working directory with another revision
537 539 pull pull changes from the specified source
538 540 push push changes to the specified destination
539 541 remove remove the specified files on the next commit
540 542 serve start stand-alone webserver
541 543 status show changed files in the working directory
542 544 summary summarize working directory state
543 545 update update working directory (or switch revisions)
544 546
545 547 use "hg help" for the full list of commands or "hg -v" for details
546 548 %% test command with no help text
547 549 hg nohelp
548 550
549 551 (no help text available)
550 552
551 553 use "hg -v help nohelp" to show global options
552 554 %% test that default list of commands omits extension commands
553 555 Mercurial Distributed SCM
554 556
555 557 list of commands:
556 558
557 559 add add the specified files on the next commit
558 560 addremove add all new files, delete all missing files
559 561 annotate show changeset information by line for each file
560 562 archive create an unversioned archive of a repository revision
561 563 backout reverse effect of earlier changeset
562 564 bisect subdivision search of changesets
563 565 branch set or show the current branch name
564 566 branches list repository named branches
565 567 bundle create a changegroup file
566 568 cat output the current or given revision of files
567 569 clone make a copy of an existing repository
568 570 commit commit the specified files or all outstanding changes
569 571 copy mark files as copied for the next commit
570 572 diff diff repository (or selected files)
571 573 export dump the header and diffs for one or more changesets
572 574 forget forget the specified files on the next commit
573 575 grep search for a pattern in specified files and revisions
574 576 heads show current repository heads or show branch heads
575 577 help show help for a given topic or a help overview
576 578 identify identify the working copy or specified revision
577 579 import import an ordered set of patches
578 580 incoming show new changesets found in source
579 581 init create a new repository in the given directory
580 582 locate locate files matching specific patterns
581 583 log show revision history of entire repository or files
582 584 manifest output the current or given revision of the project manifest
583 585 merge merge working directory with another revision
584 586 outgoing show changesets not found in the destination
585 587 parents show the parents of the working directory or revision
586 588 paths show aliases for remote repositories
587 589 pull pull changes from the specified source
588 590 push push changes to the specified destination
589 591 recover roll back an interrupted transaction
590 592 remove remove the specified files on the next commit
591 593 rename rename files; equivalent of copy + remove
592 594 resolve various operations to help finish a merge
593 595 revert restore individual files or directories to an earlier state
594 596 rollback roll back the last transaction (dangerous)
595 597 root print the root (top) of the current working directory
596 598 serve start stand-alone webserver
597 599 showconfig show combined config settings from all hgrc files
598 600 status show changed files in the working directory
599 601 summary summarize working directory state
600 602 tag add one or more tags for the current or given revision
601 603 tags list repository tags
602 604 tip show the tip revision
603 605 unbundle apply one or more changegroup files
604 606 update update working directory (or switch revisions)
605 607 verify verify the integrity of the repository
606 608 version output version and copyright information
607 609
608 610 enabled extensions:
609 611
610 612 helpext (no help text available)
611 613
612 614 additional help topics:
613 615
614 616 config Configuration Files
615 617 dates Date Formats
616 618 patterns File Name Patterns
617 619 environment Environment Variables
618 620 revisions Specifying Single Revisions
619 621 multirevs Specifying Multiple Revisions
620 622 diffs Diff Formats
621 623 templating Template Usage
622 624 urls URL Paths
623 625 extensions Using additional features
624 626 hgweb Configuring hgweb
627 glossary Glossary
625 628
626 629 use "hg -v help" to show aliases and global options
627 630 %% test list of commands with command with no help text
628 631 helpext extension - no help text available
629 632
630 633 list of commands:
631 634
632 635 nohelp (no help text available)
633 636
634 637 use "hg -v help helpext" to show aliases and global options
635 638 %% test a help topic
636 639 Specifying Single Revisions
637 640
638 641 Mercurial supports several ways to specify individual revisions.
639 642
640 643 A plain integer is treated as a revision number. Negative integers are
641 644 treated as sequential offsets from the tip, with -1 denoting the tip, -2
642 645 denoting the revision prior to the tip, and so forth.
643 646
644 647 A 40-digit hexadecimal string is treated as a unique revision identifier.
645 648
646 649 A hexadecimal string less than 40 characters long is treated as a unique
647 650 revision identifier and is referred to as a short-form identifier. A
648 651 short-form identifier is only valid if it is the prefix of exactly one
649 652 full-length identifier.
650 653
651 654 Any other string is treated as a tag or branch name. A tag name is a
652 655 symbolic name associated with a revision identifier. A branch name denotes
653 656 the tipmost revision of that branch. Tag and branch names must not contain
654 657 the ":" character.
655 658
656 659 The reserved name "tip" is a special tag that always identifies the most
657 660 recent revision.
658 661
659 662 The reserved name "null" indicates the null revision. This is the revision
660 663 of an empty repository, and the parent of revision 0.
661 664
662 665 The reserved name "." indicates the working directory parent. If no
663 666 working directory is checked out, it is equivalent to null. If an
664 667 uncommitted merge is in progress, "." is the revision of the first parent.
General Comments 0
You need to be logged in to leave comments. Login now