##// END OF EJS Templates
changegroups: add documentation for cg3
Augie Fackler -
r27434:11150176 default
parent child Browse files
Show More
@@ -1,142 +1,157 b''
1 Changegroups
1 Changegroups
2 ============
2 ============
3
3
4 Changegroups are representations of repository revlog data, specifically
4 Changegroups are representations of repository revlog data, specifically
5 the changelog, manifest, and filelogs.
5 the changelog, manifest, and filelogs.
6
6
7 There are 2 versions of changegroups: ``1`` and ``2``. From a
7 There are 3 versions of changegroups: ``1``, ``2``, and ``3``. From a
8 high-level, they are almost exactly the same, with the only difference
8 high-level, versions ``1`` and ``2`` are almost exactly the same, with
9 being a header on entries in the changeset segment.
9 the only difference being a header on entries in the changeset
10 segment. Version ``3`` adds support for exchanging treemanifests and
11 includes revlog flags in the delta header.
10
12
11 Changegroups consists of 3 logical segments::
13 Changegroups consists of 3 logical segments::
12
14
13 +---------------------------------+
15 +---------------------------------+
14 | | | |
16 | | | |
15 | changeset | manifest | filelogs |
17 | changeset | manifest | filelogs |
16 | | | |
18 | | | |
17 +---------------------------------+
19 +---------------------------------+
18
20
19 The principle building block of each segment is a *chunk*. A *chunk*
21 The principle building block of each segment is a *chunk*. A *chunk*
20 is a framed piece of data::
22 is a framed piece of data::
21
23
22 +---------------------------------------+
24 +---------------------------------------+
23 | | |
25 | | |
24 | length | data |
26 | length | data |
25 | (32 bits) | <length> bytes |
27 | (32 bits) | <length> bytes |
26 | | |
28 | | |
27 +---------------------------------------+
29 +---------------------------------------+
28
30
29 Each chunk starts with a 32-bit big-endian signed integer indicating
31 Each chunk starts with a 32-bit big-endian signed integer indicating
30 the length of the raw data that follows.
32 the length of the raw data that follows.
31
33
32 There is a special case chunk that has 0 length (``0x00000000``). We
34 There is a special case chunk that has 0 length (``0x00000000``). We
33 call this an *empty chunk*.
35 call this an *empty chunk*.
34
36
35 Delta Groups
37 Delta Groups
36 ------------
38 ------------
37
39
38 A *delta group* expresses the content of a revlog as a series of deltas,
40 A *delta group* expresses the content of a revlog as a series of deltas,
39 or patches against previous revisions.
41 or patches against previous revisions.
40
42
41 Delta groups consist of 0 or more *chunks* followed by the *empty chunk*
43 Delta groups consist of 0 or more *chunks* followed by the *empty chunk*
42 to signal the end of the delta group::
44 to signal the end of the delta group::
43
45
44 +------------------------------------------------------------------------+
46 +------------------------------------------------------------------------+
45 | | | | | |
47 | | | | | |
46 | chunk0 length | chunk0 data | chunk1 length | chunk1 data | 0x0 |
48 | chunk0 length | chunk0 data | chunk1 length | chunk1 data | 0x0 |
47 | (32 bits) | (various) | (32 bits) | (various) | (32 bits) |
49 | (32 bits) | (various) | (32 bits) | (various) | (32 bits) |
48 | | | | | |
50 | | | | | |
49 +------------------------------------------------------------+-----------+
51 +------------------------------------------------------------+-----------+
50
52
51 Each *chunk*'s data consists of the following::
53 Each *chunk*'s data consists of the following::
52
54
53 +-----------------------------------------+
55 +-----------------------------------------+
54 | | | |
56 | | | |
55 | delta header | mdiff header | delta |
57 | delta header | mdiff header | delta |
56 | (various) | (12 bytes) | (various) |
58 | (various) | (12 bytes) | (various) |
57 | | | |
59 | | | |
58 +-----------------------------------------+
60 +-----------------------------------------+
59
61
60 The *length* field is the byte length of the remaining 3 logical pieces
62 The *length* field is the byte length of the remaining 3 logical pieces
61 of data. The *delta* is a diff from an existing entry in the changelog.
63 of data. The *delta* is a diff from an existing entry in the changelog.
62
64
63 The *delta header* is different between versions ``1`` and ``2`` of the
65 The *delta header* is different between versions ``1``, ``2``, and
64 changegroup format.
66 ``3`` of the changegroup format.
65
67
66 Version 1::
68 Version 1::
67
69
68 +------------------------------------------------------+
70 +------------------------------------------------------+
69 | | | | |
71 | | | | |
70 | node | p1 node | p2 node | link node |
72 | node | p1 node | p2 node | link node |
71 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
73 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
72 | | | | |
74 | | | | |
73 +------------------------------------------------------+
75 +------------------------------------------------------+
74
76
75 Version 2::
77 Version 2::
76
78
77 +------------------------------------------------------------------+
79 +------------------------------------------------------------------+
78 | | | | | |
80 | | | | | |
79 | node | p1 node | p2 node | base node | link node |
81 | node | p1 node | p2 node | base node | link node |
80 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
82 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
81 | | | | | |
83 | | | | | |
82 +------------------------------------------------------------------+
84 +------------------------------------------------------------------+
83
85
86 Version 3::
87
88 +------------------------------------------------------------------------------+
89 | | | | | | |
90 | node | p1 node | p2 node | base node | link node | flags |
91 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (2 bytes) |
92 | | | | | | |
93 +------------------------------------------------------------------------------+
94
84 The *mdiff header* consists of 3 32-bit big-endian signed integers
95 The *mdiff header* consists of 3 32-bit big-endian signed integers
85 describing offsets at which to apply the following delta content::
96 describing offsets at which to apply the following delta content::
86
97
87 +-------------------------------------+
98 +-------------------------------------+
88 | | | |
99 | | | |
89 | offset | old length | new length |
100 | offset | old length | new length |
90 | (32 bits) | (32 bits) | (32 bits) |
101 | (32 bits) | (32 bits) | (32 bits) |
91 | | | |
102 | | | |
92 +-------------------------------------+
103 +-------------------------------------+
93
104
94 In version 1, the delta is always applied against the previous node from
105 In version 1, the delta is always applied against the previous node from
95 the changegroup or the first parent if this is the first entry in the
106 the changegroup or the first parent if this is the first entry in the
96 changegroup.
107 changegroup.
97
108
98 In version 2, the delta base node is encoded in the entry in the
109 In version 2, the delta base node is encoded in the entry in the
99 changegroup. This allows the delta to be expressed against any parent,
110 changegroup. This allows the delta to be expressed against any parent,
100 which can result in smaller deltas and more efficient encoding of data.
111 which can result in smaller deltas and more efficient encoding of data.
101
112
102 Changeset Segment
113 Changeset Segment
103 -----------------
114 -----------------
104
115
105 The *changeset segment* consists of a single *delta group* holding
116 The *changeset segment* consists of a single *delta group* holding
106 changelog data. It is followed by an *empty chunk* to denote the
117 changelog data. It is followed by an *empty chunk* to denote the
107 boundary to the *manifests segment*.
118 boundary to the *manifests segment*.
108
119
109 Manifest Segment
120 Manifest Segment
110 ----------------
121 ----------------
111
122
112 The *manifest segment* consists of a single *delta group* holding
123 The *manifest segment* consists of a single *delta group* holding
113 manifest data. It is followed by an *empty chunk* to denote the boundary
124 manifest data. It is followed by an *empty chunk* to denote the boundary
114 to the *filelogs segment*.
125 to the *filelogs segment*.
115
126
116 Filelogs Segment
127 Filelogs Segment
117 ----------------
128 ----------------
118
129
119 The *filelogs* segment consists of multiple sub-segments, each
130 The *filelogs* segment consists of multiple sub-segments, each
120 corresponding to an individual file whose data is being described::
131 corresponding to an individual file whose data is being described::
121
132
122 +--------------------------------------+
133 +--------------------------------------+
123 | | | | |
134 | | | | |
124 | filelog0 | filelog1 | filelog2 | ... |
135 | filelog0 | filelog1 | filelog2 | ... |
125 | | | | |
136 | | | | |
126 +--------------------------------------+
137 +--------------------------------------+
127
138
139 In version ``3`` of the changegroup format, filelogs may include
140 directory logs when treemanifests are in use. directory logs are
141 identified by having a trailing '/' on their filename (see below).
142
128 The final filelog sub-segment is followed by an *empty chunk* to denote
143 The final filelog sub-segment is followed by an *empty chunk* to denote
129 the end of the segment and the overall changegroup.
144 the end of the segment and the overall changegroup.
130
145
131 Each filelog sub-segment consists of the following::
146 Each filelog sub-segment consists of the following::
132
147
133 +------------------------------------------+
148 +------------------------------------------+
134 | | | |
149 | | | |
135 | filename size | filename | delta group |
150 | filename size | filename | delta group |
136 | (32 bits) | (various) | (various) |
151 | (32 bits) | (various) | (various) |
137 | | | |
152 | | | |
138 +------------------------------------------+
153 +------------------------------------------+
139
154
140 That is, a *chunk* consisting of the filename (not terminated or padded)
155 That is, a *chunk* consisting of the filename (not terminated or padded)
141 followed by N chunks constituting the *delta group* for this file.
156 followed by N chunks constituting the *delta group* for this file.
142
157
@@ -1,2613 +1,2628 b''
1 Short help:
1 Short help:
2
2
3 $ hg
3 $ hg
4 Mercurial Distributed SCM
4 Mercurial Distributed SCM
5
5
6 basic commands:
6 basic commands:
7
7
8 add add the specified files on the next commit
8 add add the specified files on the next commit
9 annotate show changeset information by line for each file
9 annotate show changeset information by line for each file
10 clone make a copy of an existing repository
10 clone make a copy of an existing repository
11 commit commit the specified files or all outstanding changes
11 commit commit the specified files or all outstanding changes
12 diff diff repository (or selected files)
12 diff diff repository (or selected files)
13 export dump the header and diffs for one or more changesets
13 export dump the header and diffs for one or more changesets
14 forget forget the specified files on the next commit
14 forget forget the specified files on the next commit
15 init create a new repository in the given directory
15 init create a new repository in the given directory
16 log show revision history of entire repository or files
16 log show revision history of entire repository or files
17 merge merge another revision into working directory
17 merge merge another revision into working directory
18 pull pull changes from the specified source
18 pull pull changes from the specified source
19 push push changes to the specified destination
19 push push changes to the specified destination
20 remove remove the specified files on the next commit
20 remove remove the specified files on the next commit
21 serve start stand-alone webserver
21 serve start stand-alone webserver
22 status show changed files in the working directory
22 status show changed files in the working directory
23 summary summarize working directory state
23 summary summarize working directory state
24 update update working directory (or switch revisions)
24 update update working directory (or switch revisions)
25
25
26 (use "hg help" for the full list of commands or "hg -v" for details)
26 (use "hg help" for the full list of commands or "hg -v" for details)
27
27
28 $ hg -q
28 $ hg -q
29 add add the specified files on the next commit
29 add add the specified files on the next commit
30 annotate show changeset information by line for each file
30 annotate show changeset information by line for each file
31 clone make a copy of an existing repository
31 clone make a copy of an existing repository
32 commit commit the specified files or all outstanding changes
32 commit commit the specified files or all outstanding changes
33 diff diff repository (or selected files)
33 diff diff repository (or selected files)
34 export dump the header and diffs for one or more changesets
34 export dump the header and diffs for one or more changesets
35 forget forget the specified files on the next commit
35 forget forget the specified files on the next commit
36 init create a new repository in the given directory
36 init create a new repository in the given directory
37 log show revision history of entire repository or files
37 log show revision history of entire repository or files
38 merge merge another revision into working directory
38 merge merge another revision into working directory
39 pull pull changes from the specified source
39 pull pull changes from the specified source
40 push push changes to the specified destination
40 push push changes to the specified destination
41 remove remove the specified files on the next commit
41 remove remove the specified files on the next commit
42 serve start stand-alone webserver
42 serve start stand-alone webserver
43 status show changed files in the working directory
43 status show changed files in the working directory
44 summary summarize working directory state
44 summary summarize working directory state
45 update update working directory (or switch revisions)
45 update update working directory (or switch revisions)
46
46
47 $ hg help
47 $ hg help
48 Mercurial Distributed SCM
48 Mercurial Distributed SCM
49
49
50 list of commands:
50 list of commands:
51
51
52 add add the specified files on the next commit
52 add add the specified files on the next commit
53 addremove add all new files, delete all missing files
53 addremove add all new files, delete all missing files
54 annotate show changeset information by line for each file
54 annotate show changeset information by line for each file
55 archive create an unversioned archive of a repository revision
55 archive create an unversioned archive of a repository revision
56 backout reverse effect of earlier changeset
56 backout reverse effect of earlier changeset
57 bisect subdivision search of changesets
57 bisect subdivision search of changesets
58 bookmarks create a new bookmark or list existing bookmarks
58 bookmarks create a new bookmark or list existing bookmarks
59 branch set or show the current branch name
59 branch set or show the current branch name
60 branches list repository named branches
60 branches list repository named branches
61 bundle create a changegroup file
61 bundle create a changegroup file
62 cat output the current or given revision of files
62 cat output the current or given revision of files
63 clone make a copy of an existing repository
63 clone make a copy of an existing repository
64 commit commit the specified files or all outstanding changes
64 commit commit the specified files or all outstanding changes
65 config show combined config settings from all hgrc files
65 config show combined config settings from all hgrc files
66 copy mark files as copied for the next commit
66 copy mark files as copied for the next commit
67 diff diff repository (or selected files)
67 diff diff repository (or selected files)
68 export dump the header and diffs for one or more changesets
68 export dump the header and diffs for one or more changesets
69 files list tracked files
69 files list tracked files
70 forget forget the specified files on the next commit
70 forget forget the specified files on the next commit
71 graft copy changes from other branches onto the current branch
71 graft copy changes from other branches onto the current branch
72 grep search for a pattern in specified files and revisions
72 grep search for a pattern in specified files and revisions
73 heads show branch heads
73 heads show branch heads
74 help show help for a given topic or a help overview
74 help show help for a given topic or a help overview
75 identify identify the working directory or specified revision
75 identify identify the working directory or specified revision
76 import import an ordered set of patches
76 import import an ordered set of patches
77 incoming show new changesets found in source
77 incoming show new changesets found in source
78 init create a new repository in the given directory
78 init create a new repository in the given directory
79 log show revision history of entire repository or files
79 log show revision history of entire repository or files
80 manifest output the current or given revision of the project manifest
80 manifest output the current or given revision of the project manifest
81 merge merge another revision into working directory
81 merge merge another revision into working directory
82 outgoing show changesets not found in the destination
82 outgoing show changesets not found in the destination
83 paths show aliases for remote repositories
83 paths show aliases for remote repositories
84 phase set or show the current phase name
84 phase set or show the current phase name
85 pull pull changes from the specified source
85 pull pull changes from the specified source
86 push push changes to the specified destination
86 push push changes to the specified destination
87 recover roll back an interrupted transaction
87 recover roll back an interrupted transaction
88 remove remove the specified files on the next commit
88 remove remove the specified files on the next commit
89 rename rename files; equivalent of copy + remove
89 rename rename files; equivalent of copy + remove
90 resolve redo merges or set/view the merge status of files
90 resolve redo merges or set/view the merge status of files
91 revert restore files to their checkout state
91 revert restore files to their checkout state
92 root print the root (top) of the current working directory
92 root print the root (top) of the current working directory
93 serve start stand-alone webserver
93 serve start stand-alone webserver
94 status show changed files in the working directory
94 status show changed files in the working directory
95 summary summarize working directory state
95 summary summarize working directory state
96 tag add one or more tags for the current or given revision
96 tag add one or more tags for the current or given revision
97 tags list repository tags
97 tags list repository tags
98 unbundle apply one or more changegroup files
98 unbundle apply one or more changegroup files
99 update update working directory (or switch revisions)
99 update update working directory (or switch revisions)
100 verify verify the integrity of the repository
100 verify verify the integrity of the repository
101 version output version and copyright information
101 version output version and copyright information
102
102
103 additional help topics:
103 additional help topics:
104
104
105 config Configuration Files
105 config Configuration Files
106 dates Date Formats
106 dates Date Formats
107 diffs Diff Formats
107 diffs Diff Formats
108 environment Environment Variables
108 environment Environment Variables
109 extensions Using Additional Features
109 extensions Using Additional Features
110 filesets Specifying File Sets
110 filesets Specifying File Sets
111 glossary Glossary
111 glossary Glossary
112 hgignore Syntax for Mercurial Ignore Files
112 hgignore Syntax for Mercurial Ignore Files
113 hgweb Configuring hgweb
113 hgweb Configuring hgweb
114 internals Technical implementation topics
114 internals Technical implementation topics
115 merge-tools Merge Tools
115 merge-tools Merge Tools
116 multirevs Specifying Multiple Revisions
116 multirevs Specifying Multiple Revisions
117 patterns File Name Patterns
117 patterns File Name Patterns
118 phases Working with Phases
118 phases Working with Phases
119 revisions Specifying Single Revisions
119 revisions Specifying Single Revisions
120 revsets Specifying Revision Sets
120 revsets Specifying Revision Sets
121 scripting Using Mercurial from scripts and automation
121 scripting Using Mercurial from scripts and automation
122 subrepos Subrepositories
122 subrepos Subrepositories
123 templating Template Usage
123 templating Template Usage
124 urls URL Paths
124 urls URL Paths
125
125
126 (use "hg help -v" to show built-in aliases and global options)
126 (use "hg help -v" to show built-in aliases and global options)
127
127
128 $ hg -q help
128 $ hg -q help
129 add add the specified files on the next commit
129 add add the specified files on the next commit
130 addremove add all new files, delete all missing files
130 addremove add all new files, delete all missing files
131 annotate show changeset information by line for each file
131 annotate show changeset information by line for each file
132 archive create an unversioned archive of a repository revision
132 archive create an unversioned archive of a repository revision
133 backout reverse effect of earlier changeset
133 backout reverse effect of earlier changeset
134 bisect subdivision search of changesets
134 bisect subdivision search of changesets
135 bookmarks create a new bookmark or list existing bookmarks
135 bookmarks create a new bookmark or list existing bookmarks
136 branch set or show the current branch name
136 branch set or show the current branch name
137 branches list repository named branches
137 branches list repository named branches
138 bundle create a changegroup file
138 bundle create a changegroup file
139 cat output the current or given revision of files
139 cat output the current or given revision of files
140 clone make a copy of an existing repository
140 clone make a copy of an existing repository
141 commit commit the specified files or all outstanding changes
141 commit commit the specified files or all outstanding changes
142 config show combined config settings from all hgrc files
142 config show combined config settings from all hgrc files
143 copy mark files as copied for the next commit
143 copy mark files as copied for the next commit
144 diff diff repository (or selected files)
144 diff diff repository (or selected files)
145 export dump the header and diffs for one or more changesets
145 export dump the header and diffs for one or more changesets
146 files list tracked files
146 files list tracked files
147 forget forget the specified files on the next commit
147 forget forget the specified files on the next commit
148 graft copy changes from other branches onto the current branch
148 graft copy changes from other branches onto the current branch
149 grep search for a pattern in specified files and revisions
149 grep search for a pattern in specified files and revisions
150 heads show branch heads
150 heads show branch heads
151 help show help for a given topic or a help overview
151 help show help for a given topic or a help overview
152 identify identify the working directory or specified revision
152 identify identify the working directory or specified revision
153 import import an ordered set of patches
153 import import an ordered set of patches
154 incoming show new changesets found in source
154 incoming show new changesets found in source
155 init create a new repository in the given directory
155 init create a new repository in the given directory
156 log show revision history of entire repository or files
156 log show revision history of entire repository or files
157 manifest output the current or given revision of the project manifest
157 manifest output the current or given revision of the project manifest
158 merge merge another revision into working directory
158 merge merge another revision into working directory
159 outgoing show changesets not found in the destination
159 outgoing show changesets not found in the destination
160 paths show aliases for remote repositories
160 paths show aliases for remote repositories
161 phase set or show the current phase name
161 phase set or show the current phase name
162 pull pull changes from the specified source
162 pull pull changes from the specified source
163 push push changes to the specified destination
163 push push changes to the specified destination
164 recover roll back an interrupted transaction
164 recover roll back an interrupted transaction
165 remove remove the specified files on the next commit
165 remove remove the specified files on the next commit
166 rename rename files; equivalent of copy + remove
166 rename rename files; equivalent of copy + remove
167 resolve redo merges or set/view the merge status of files
167 resolve redo merges or set/view the merge status of files
168 revert restore files to their checkout state
168 revert restore files to their checkout state
169 root print the root (top) of the current working directory
169 root print the root (top) of the current working directory
170 serve start stand-alone webserver
170 serve start stand-alone webserver
171 status show changed files in the working directory
171 status show changed files in the working directory
172 summary summarize working directory state
172 summary summarize working directory state
173 tag add one or more tags for the current or given revision
173 tag add one or more tags for the current or given revision
174 tags list repository tags
174 tags list repository tags
175 unbundle apply one or more changegroup files
175 unbundle apply one or more changegroup files
176 update update working directory (or switch revisions)
176 update update working directory (or switch revisions)
177 verify verify the integrity of the repository
177 verify verify the integrity of the repository
178 version output version and copyright information
178 version output version and copyright information
179
179
180 additional help topics:
180 additional help topics:
181
181
182 config Configuration Files
182 config Configuration Files
183 dates Date Formats
183 dates Date Formats
184 diffs Diff Formats
184 diffs Diff Formats
185 environment Environment Variables
185 environment Environment Variables
186 extensions Using Additional Features
186 extensions Using Additional Features
187 filesets Specifying File Sets
187 filesets Specifying File Sets
188 glossary Glossary
188 glossary Glossary
189 hgignore Syntax for Mercurial Ignore Files
189 hgignore Syntax for Mercurial Ignore Files
190 hgweb Configuring hgweb
190 hgweb Configuring hgweb
191 internals Technical implementation topics
191 internals Technical implementation topics
192 merge-tools Merge Tools
192 merge-tools Merge Tools
193 multirevs Specifying Multiple Revisions
193 multirevs Specifying Multiple Revisions
194 patterns File Name Patterns
194 patterns File Name Patterns
195 phases Working with Phases
195 phases Working with Phases
196 revisions Specifying Single Revisions
196 revisions Specifying Single Revisions
197 revsets Specifying Revision Sets
197 revsets Specifying Revision Sets
198 scripting Using Mercurial from scripts and automation
198 scripting Using Mercurial from scripts and automation
199 subrepos Subrepositories
199 subrepos Subrepositories
200 templating Template Usage
200 templating Template Usage
201 urls URL Paths
201 urls URL Paths
202
202
203 Test extension help:
203 Test extension help:
204 $ hg help extensions --config extensions.rebase= --config extensions.children=
204 $ hg help extensions --config extensions.rebase= --config extensions.children=
205 Using Additional Features
205 Using Additional Features
206 """""""""""""""""""""""""
206 """""""""""""""""""""""""
207
207
208 Mercurial has the ability to add new features through the use of
208 Mercurial has the ability to add new features through the use of
209 extensions. Extensions may add new commands, add options to existing
209 extensions. Extensions may add new commands, add options to existing
210 commands, change the default behavior of commands, or implement hooks.
210 commands, change the default behavior of commands, or implement hooks.
211
211
212 To enable the "foo" extension, either shipped with Mercurial or in the
212 To enable the "foo" extension, either shipped with Mercurial or in the
213 Python search path, create an entry for it in your configuration file,
213 Python search path, create an entry for it in your configuration file,
214 like this:
214 like this:
215
215
216 [extensions]
216 [extensions]
217 foo =
217 foo =
218
218
219 You may also specify the full path to an extension:
219 You may also specify the full path to an extension:
220
220
221 [extensions]
221 [extensions]
222 myfeature = ~/.hgext/myfeature.py
222 myfeature = ~/.hgext/myfeature.py
223
223
224 See "hg help config" for more information on configuration files.
224 See "hg help config" for more information on configuration files.
225
225
226 Extensions are not loaded by default for a variety of reasons: they can
226 Extensions are not loaded by default for a variety of reasons: they can
227 increase startup overhead; they may be meant for advanced usage only; they
227 increase startup overhead; they may be meant for advanced usage only; they
228 may provide potentially dangerous abilities (such as letting you destroy
228 may provide potentially dangerous abilities (such as letting you destroy
229 or modify history); they might not be ready for prime time; or they may
229 or modify history); they might not be ready for prime time; or they may
230 alter some usual behaviors of stock Mercurial. It is thus up to the user
230 alter some usual behaviors of stock Mercurial. It is thus up to the user
231 to activate extensions as needed.
231 to activate extensions as needed.
232
232
233 To explicitly disable an extension enabled in a configuration file of
233 To explicitly disable an extension enabled in a configuration file of
234 broader scope, prepend its path with !:
234 broader scope, prepend its path with !:
235
235
236 [extensions]
236 [extensions]
237 # disabling extension bar residing in /path/to/extension/bar.py
237 # disabling extension bar residing in /path/to/extension/bar.py
238 bar = !/path/to/extension/bar.py
238 bar = !/path/to/extension/bar.py
239 # ditto, but no path was supplied for extension baz
239 # ditto, but no path was supplied for extension baz
240 baz = !
240 baz = !
241
241
242 enabled extensions:
242 enabled extensions:
243
243
244 children command to display child changesets (DEPRECATED)
244 children command to display child changesets (DEPRECATED)
245 rebase command to move sets of revisions to a different ancestor
245 rebase command to move sets of revisions to a different ancestor
246
246
247 disabled extensions:
247 disabled extensions:
248
248
249 acl hooks for controlling repository access
249 acl hooks for controlling repository access
250 blackbox log repository events to a blackbox for debugging
250 blackbox log repository events to a blackbox for debugging
251 bugzilla hooks for integrating with the Bugzilla bug tracker
251 bugzilla hooks for integrating with the Bugzilla bug tracker
252 censor erase file content at a given revision
252 censor erase file content at a given revision
253 churn command to display statistics about repository history
253 churn command to display statistics about repository history
254 clonebundles advertise pre-generated bundles to seed clones
254 clonebundles advertise pre-generated bundles to seed clones
255 (experimental)
255 (experimental)
256 color colorize output from some commands
256 color colorize output from some commands
257 convert import revisions from foreign VCS repositories into
257 convert import revisions from foreign VCS repositories into
258 Mercurial
258 Mercurial
259 eol automatically manage newlines in repository files
259 eol automatically manage newlines in repository files
260 extdiff command to allow external programs to compare revisions
260 extdiff command to allow external programs to compare revisions
261 factotum http authentication with factotum
261 factotum http authentication with factotum
262 gpg commands to sign and verify changesets
262 gpg commands to sign and verify changesets
263 hgcia hooks for integrating with the CIA.vc notification service
263 hgcia hooks for integrating with the CIA.vc notification service
264 hgk browse the repository in a graphical way
264 hgk browse the repository in a graphical way
265 highlight syntax highlighting for hgweb (requires Pygments)
265 highlight syntax highlighting for hgweb (requires Pygments)
266 histedit interactive history editing
266 histedit interactive history editing
267 keyword expand keywords in tracked files
267 keyword expand keywords in tracked files
268 largefiles track large binary files
268 largefiles track large binary files
269 mq manage a stack of patches
269 mq manage a stack of patches
270 notify hooks for sending email push notifications
270 notify hooks for sending email push notifications
271 pager browse command output with an external pager
271 pager browse command output with an external pager
272 patchbomb command to send changesets as (a series of) patch emails
272 patchbomb command to send changesets as (a series of) patch emails
273 purge command to delete untracked files from the working
273 purge command to delete untracked files from the working
274 directory
274 directory
275 record commands to interactively select changes for
275 record commands to interactively select changes for
276 commit/qrefresh
276 commit/qrefresh
277 relink recreates hardlinks between repository clones
277 relink recreates hardlinks between repository clones
278 schemes extend schemes with shortcuts to repository swarms
278 schemes extend schemes with shortcuts to repository swarms
279 share share a common history between several working directories
279 share share a common history between several working directories
280 shelve save and restore changes to the working directory
280 shelve save and restore changes to the working directory
281 strip strip changesets and their descendants from history
281 strip strip changesets and their descendants from history
282 transplant command to transplant changesets from another branch
282 transplant command to transplant changesets from another branch
283 win32mbcs allow the use of MBCS paths with problematic encodings
283 win32mbcs allow the use of MBCS paths with problematic encodings
284 zeroconf discover and advertise repositories on the local network
284 zeroconf discover and advertise repositories on the local network
285
285
286 Verify that extension keywords appear in help templates
286 Verify that extension keywords appear in help templates
287
287
288 $ hg help --config extensions.transplant= templating|grep transplant > /dev/null
288 $ hg help --config extensions.transplant= templating|grep transplant > /dev/null
289
289
290 Test short command list with verbose option
290 Test short command list with verbose option
291
291
292 $ hg -v help shortlist
292 $ hg -v help shortlist
293 Mercurial Distributed SCM
293 Mercurial Distributed SCM
294
294
295 basic commands:
295 basic commands:
296
296
297 add add the specified files on the next commit
297 add add the specified files on the next commit
298 annotate, blame
298 annotate, blame
299 show changeset information by line for each file
299 show changeset information by line for each file
300 clone make a copy of an existing repository
300 clone make a copy of an existing repository
301 commit, ci commit the specified files or all outstanding changes
301 commit, ci commit the specified files or all outstanding changes
302 diff diff repository (or selected files)
302 diff diff repository (or selected files)
303 export dump the header and diffs for one or more changesets
303 export dump the header and diffs for one or more changesets
304 forget forget the specified files on the next commit
304 forget forget the specified files on the next commit
305 init create a new repository in the given directory
305 init create a new repository in the given directory
306 log, history show revision history of entire repository or files
306 log, history show revision history of entire repository or files
307 merge merge another revision into working directory
307 merge merge another revision into working directory
308 pull pull changes from the specified source
308 pull pull changes from the specified source
309 push push changes to the specified destination
309 push push changes to the specified destination
310 remove, rm remove the specified files on the next commit
310 remove, rm remove the specified files on the next commit
311 serve start stand-alone webserver
311 serve start stand-alone webserver
312 status, st show changed files in the working directory
312 status, st show changed files in the working directory
313 summary, sum summarize working directory state
313 summary, sum summarize working directory state
314 update, up, checkout, co
314 update, up, checkout, co
315 update working directory (or switch revisions)
315 update working directory (or switch revisions)
316
316
317 global options ([+] can be repeated):
317 global options ([+] can be repeated):
318
318
319 -R --repository REPO repository root directory or name of overlay bundle
319 -R --repository REPO repository root directory or name of overlay bundle
320 file
320 file
321 --cwd DIR change working directory
321 --cwd DIR change working directory
322 -y --noninteractive do not prompt, automatically pick the first choice for
322 -y --noninteractive do not prompt, automatically pick the first choice for
323 all prompts
323 all prompts
324 -q --quiet suppress output
324 -q --quiet suppress output
325 -v --verbose enable additional output
325 -v --verbose enable additional output
326 --config CONFIG [+] set/override config option (use 'section.name=value')
326 --config CONFIG [+] set/override config option (use 'section.name=value')
327 --debug enable debugging output
327 --debug enable debugging output
328 --debugger start debugger
328 --debugger start debugger
329 --encoding ENCODE set the charset encoding (default: ascii)
329 --encoding ENCODE set the charset encoding (default: ascii)
330 --encodingmode MODE set the charset encoding mode (default: strict)
330 --encodingmode MODE set the charset encoding mode (default: strict)
331 --traceback always print a traceback on exception
331 --traceback always print a traceback on exception
332 --time time how long the command takes
332 --time time how long the command takes
333 --profile print command execution profile
333 --profile print command execution profile
334 --version output version information and exit
334 --version output version information and exit
335 -h --help display help and exit
335 -h --help display help and exit
336 --hidden consider hidden changesets
336 --hidden consider hidden changesets
337
337
338 (use "hg help" for the full list of commands)
338 (use "hg help" for the full list of commands)
339
339
340 $ hg add -h
340 $ hg add -h
341 hg add [OPTION]... [FILE]...
341 hg add [OPTION]... [FILE]...
342
342
343 add the specified files on the next commit
343 add the specified files on the next commit
344
344
345 Schedule files to be version controlled and added to the repository.
345 Schedule files to be version controlled and added to the repository.
346
346
347 The files will be added to the repository at the next commit. To undo an
347 The files will be added to the repository at the next commit. To undo an
348 add before that, see "hg forget".
348 add before that, see "hg forget".
349
349
350 If no names are given, add all files to the repository (except files
350 If no names are given, add all files to the repository (except files
351 matching ".hgignore").
351 matching ".hgignore").
352
352
353 Returns 0 if all files are successfully added.
353 Returns 0 if all files are successfully added.
354
354
355 options ([+] can be repeated):
355 options ([+] can be repeated):
356
356
357 -I --include PATTERN [+] include names matching the given patterns
357 -I --include PATTERN [+] include names matching the given patterns
358 -X --exclude PATTERN [+] exclude names matching the given patterns
358 -X --exclude PATTERN [+] exclude names matching the given patterns
359 -S --subrepos recurse into subrepositories
359 -S --subrepos recurse into subrepositories
360 -n --dry-run do not perform actions, just print output
360 -n --dry-run do not perform actions, just print output
361
361
362 (some details hidden, use --verbose to show complete help)
362 (some details hidden, use --verbose to show complete help)
363
363
364 Verbose help for add
364 Verbose help for add
365
365
366 $ hg add -hv
366 $ hg add -hv
367 hg add [OPTION]... [FILE]...
367 hg add [OPTION]... [FILE]...
368
368
369 add the specified files on the next commit
369 add the specified files on the next commit
370
370
371 Schedule files to be version controlled and added to the repository.
371 Schedule files to be version controlled and added to the repository.
372
372
373 The files will be added to the repository at the next commit. To undo an
373 The files will be added to the repository at the next commit. To undo an
374 add before that, see "hg forget".
374 add before that, see "hg forget".
375
375
376 If no names are given, add all files to the repository (except files
376 If no names are given, add all files to the repository (except files
377 matching ".hgignore").
377 matching ".hgignore").
378
378
379 Examples:
379 Examples:
380
380
381 - New (unknown) files are added automatically by "hg add":
381 - New (unknown) files are added automatically by "hg add":
382
382
383 $ ls
383 $ ls
384 foo.c
384 foo.c
385 $ hg status
385 $ hg status
386 ? foo.c
386 ? foo.c
387 $ hg add
387 $ hg add
388 adding foo.c
388 adding foo.c
389 $ hg status
389 $ hg status
390 A foo.c
390 A foo.c
391
391
392 - Specific files to be added can be specified:
392 - Specific files to be added can be specified:
393
393
394 $ ls
394 $ ls
395 bar.c foo.c
395 bar.c foo.c
396 $ hg status
396 $ hg status
397 ? bar.c
397 ? bar.c
398 ? foo.c
398 ? foo.c
399 $ hg add bar.c
399 $ hg add bar.c
400 $ hg status
400 $ hg status
401 A bar.c
401 A bar.c
402 ? foo.c
402 ? foo.c
403
403
404 Returns 0 if all files are successfully added.
404 Returns 0 if all files are successfully added.
405
405
406 options ([+] can be repeated):
406 options ([+] can be repeated):
407
407
408 -I --include PATTERN [+] include names matching the given patterns
408 -I --include PATTERN [+] include names matching the given patterns
409 -X --exclude PATTERN [+] exclude names matching the given patterns
409 -X --exclude PATTERN [+] exclude names matching the given patterns
410 -S --subrepos recurse into subrepositories
410 -S --subrepos recurse into subrepositories
411 -n --dry-run do not perform actions, just print output
411 -n --dry-run do not perform actions, just print output
412
412
413 global options ([+] can be repeated):
413 global options ([+] can be repeated):
414
414
415 -R --repository REPO repository root directory or name of overlay bundle
415 -R --repository REPO repository root directory or name of overlay bundle
416 file
416 file
417 --cwd DIR change working directory
417 --cwd DIR change working directory
418 -y --noninteractive do not prompt, automatically pick the first choice for
418 -y --noninteractive do not prompt, automatically pick the first choice for
419 all prompts
419 all prompts
420 -q --quiet suppress output
420 -q --quiet suppress output
421 -v --verbose enable additional output
421 -v --verbose enable additional output
422 --config CONFIG [+] set/override config option (use 'section.name=value')
422 --config CONFIG [+] set/override config option (use 'section.name=value')
423 --debug enable debugging output
423 --debug enable debugging output
424 --debugger start debugger
424 --debugger start debugger
425 --encoding ENCODE set the charset encoding (default: ascii)
425 --encoding ENCODE set the charset encoding (default: ascii)
426 --encodingmode MODE set the charset encoding mode (default: strict)
426 --encodingmode MODE set the charset encoding mode (default: strict)
427 --traceback always print a traceback on exception
427 --traceback always print a traceback on exception
428 --time time how long the command takes
428 --time time how long the command takes
429 --profile print command execution profile
429 --profile print command execution profile
430 --version output version information and exit
430 --version output version information and exit
431 -h --help display help and exit
431 -h --help display help and exit
432 --hidden consider hidden changesets
432 --hidden consider hidden changesets
433
433
434 Test help option with version option
434 Test help option with version option
435
435
436 $ hg add -h --version
436 $ hg add -h --version
437 Mercurial Distributed SCM (version *) (glob)
437 Mercurial Distributed SCM (version *) (glob)
438 (see https://mercurial-scm.org for more information)
438 (see https://mercurial-scm.org for more information)
439
439
440 Copyright (C) 2005-2015 Matt Mackall and others
440 Copyright (C) 2005-2015 Matt Mackall and others
441 This is free software; see the source for copying conditions. There is NO
441 This is free software; see the source for copying conditions. There is NO
442 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
442 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
443
443
444 $ hg add --skjdfks
444 $ hg add --skjdfks
445 hg add: option --skjdfks not recognized
445 hg add: option --skjdfks not recognized
446 hg add [OPTION]... [FILE]...
446 hg add [OPTION]... [FILE]...
447
447
448 add the specified files on the next commit
448 add the specified files on the next commit
449
449
450 options ([+] can be repeated):
450 options ([+] can be repeated):
451
451
452 -I --include PATTERN [+] include names matching the given patterns
452 -I --include PATTERN [+] include names matching the given patterns
453 -X --exclude PATTERN [+] exclude names matching the given patterns
453 -X --exclude PATTERN [+] exclude names matching the given patterns
454 -S --subrepos recurse into subrepositories
454 -S --subrepos recurse into subrepositories
455 -n --dry-run do not perform actions, just print output
455 -n --dry-run do not perform actions, just print output
456
456
457 (use "hg add -h" to show more help)
457 (use "hg add -h" to show more help)
458 [255]
458 [255]
459
459
460 Test ambiguous command help
460 Test ambiguous command help
461
461
462 $ hg help ad
462 $ hg help ad
463 list of commands:
463 list of commands:
464
464
465 add add the specified files on the next commit
465 add add the specified files on the next commit
466 addremove add all new files, delete all missing files
466 addremove add all new files, delete all missing files
467
467
468 (use "hg help -v ad" to show built-in aliases and global options)
468 (use "hg help -v ad" to show built-in aliases and global options)
469
469
470 Test command without options
470 Test command without options
471
471
472 $ hg help verify
472 $ hg help verify
473 hg verify
473 hg verify
474
474
475 verify the integrity of the repository
475 verify the integrity of the repository
476
476
477 Verify the integrity of the current repository.
477 Verify the integrity of the current repository.
478
478
479 This will perform an extensive check of the repository's integrity,
479 This will perform an extensive check of the repository's integrity,
480 validating the hashes and checksums of each entry in the changelog,
480 validating the hashes and checksums of each entry in the changelog,
481 manifest, and tracked files, as well as the integrity of their crosslinks
481 manifest, and tracked files, as well as the integrity of their crosslinks
482 and indices.
482 and indices.
483
483
484 Please see https://mercurial-scm.org/wiki/RepositoryCorruption for more
484 Please see https://mercurial-scm.org/wiki/RepositoryCorruption for more
485 information about recovery from corruption of the repository.
485 information about recovery from corruption of the repository.
486
486
487 Returns 0 on success, 1 if errors are encountered.
487 Returns 0 on success, 1 if errors are encountered.
488
488
489 (some details hidden, use --verbose to show complete help)
489 (some details hidden, use --verbose to show complete help)
490
490
491 $ hg help diff
491 $ hg help diff
492 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
492 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
493
493
494 diff repository (or selected files)
494 diff repository (or selected files)
495
495
496 Show differences between revisions for the specified files.
496 Show differences between revisions for the specified files.
497
497
498 Differences between files are shown using the unified diff format.
498 Differences between files are shown using the unified diff format.
499
499
500 Note:
500 Note:
501 diff may generate unexpected results for merges, as it will default to
501 diff may generate unexpected results for merges, as it will default to
502 comparing against the working directory's first parent changeset if no
502 comparing against the working directory's first parent changeset if no
503 revisions are specified.
503 revisions are specified.
504
504
505 When two revision arguments are given, then changes are shown between
505 When two revision arguments are given, then changes are shown between
506 those revisions. If only one revision is specified then that revision is
506 those revisions. If only one revision is specified then that revision is
507 compared to the working directory, and, when no revisions are specified,
507 compared to the working directory, and, when no revisions are specified,
508 the working directory files are compared to its parent.
508 the working directory files are compared to its parent.
509
509
510 Alternatively you can specify -c/--change with a revision to see the
510 Alternatively you can specify -c/--change with a revision to see the
511 changes in that changeset relative to its first parent.
511 changes in that changeset relative to its first parent.
512
512
513 Without the -a/--text option, diff will avoid generating diffs of files it
513 Without the -a/--text option, diff will avoid generating diffs of files it
514 detects as binary. With -a, diff will generate a diff anyway, probably
514 detects as binary. With -a, diff will generate a diff anyway, probably
515 with undesirable results.
515 with undesirable results.
516
516
517 Use the -g/--git option to generate diffs in the git extended diff format.
517 Use the -g/--git option to generate diffs in the git extended diff format.
518 For more information, read "hg help diffs".
518 For more information, read "hg help diffs".
519
519
520 Returns 0 on success.
520 Returns 0 on success.
521
521
522 options ([+] can be repeated):
522 options ([+] can be repeated):
523
523
524 -r --rev REV [+] revision
524 -r --rev REV [+] revision
525 -c --change REV change made by revision
525 -c --change REV change made by revision
526 -a --text treat all files as text
526 -a --text treat all files as text
527 -g --git use git extended diff format
527 -g --git use git extended diff format
528 --nodates omit dates from diff headers
528 --nodates omit dates from diff headers
529 --noprefix omit a/ and b/ prefixes from filenames
529 --noprefix omit a/ and b/ prefixes from filenames
530 -p --show-function show which function each change is in
530 -p --show-function show which function each change is in
531 --reverse produce a diff that undoes the changes
531 --reverse produce a diff that undoes the changes
532 -w --ignore-all-space ignore white space when comparing lines
532 -w --ignore-all-space ignore white space when comparing lines
533 -b --ignore-space-change ignore changes in the amount of white space
533 -b --ignore-space-change ignore changes in the amount of white space
534 -B --ignore-blank-lines ignore changes whose lines are all blank
534 -B --ignore-blank-lines ignore changes whose lines are all blank
535 -U --unified NUM number of lines of context to show
535 -U --unified NUM number of lines of context to show
536 --stat output diffstat-style summary of changes
536 --stat output diffstat-style summary of changes
537 --root DIR produce diffs relative to subdirectory
537 --root DIR produce diffs relative to subdirectory
538 -I --include PATTERN [+] include names matching the given patterns
538 -I --include PATTERN [+] include names matching the given patterns
539 -X --exclude PATTERN [+] exclude names matching the given patterns
539 -X --exclude PATTERN [+] exclude names matching the given patterns
540 -S --subrepos recurse into subrepositories
540 -S --subrepos recurse into subrepositories
541
541
542 (some details hidden, use --verbose to show complete help)
542 (some details hidden, use --verbose to show complete help)
543
543
544 $ hg help status
544 $ hg help status
545 hg status [OPTION]... [FILE]...
545 hg status [OPTION]... [FILE]...
546
546
547 aliases: st
547 aliases: st
548
548
549 show changed files in the working directory
549 show changed files in the working directory
550
550
551 Show status of files in the repository. If names are given, only files
551 Show status of files in the repository. If names are given, only files
552 that match are shown. Files that are clean or ignored or the source of a
552 that match are shown. Files that are clean or ignored or the source of a
553 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
553 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
554 -C/--copies or -A/--all are given. Unless options described with "show
554 -C/--copies or -A/--all are given. Unless options described with "show
555 only ..." are given, the options -mardu are used.
555 only ..." are given, the options -mardu are used.
556
556
557 Option -q/--quiet hides untracked (unknown and ignored) files unless
557 Option -q/--quiet hides untracked (unknown and ignored) files unless
558 explicitly requested with -u/--unknown or -i/--ignored.
558 explicitly requested with -u/--unknown or -i/--ignored.
559
559
560 Note:
560 Note:
561 status may appear to disagree with diff if permissions have changed or
561 status may appear to disagree with diff if permissions have changed or
562 a merge has occurred. The standard diff format does not report
562 a merge has occurred. The standard diff format does not report
563 permission changes and diff only reports changes relative to one merge
563 permission changes and diff only reports changes relative to one merge
564 parent.
564 parent.
565
565
566 If one revision is given, it is used as the base revision. If two
566 If one revision is given, it is used as the base revision. If two
567 revisions are given, the differences between them are shown. The --change
567 revisions are given, the differences between them are shown. The --change
568 option can also be used as a shortcut to list the changed files of a
568 option can also be used as a shortcut to list the changed files of a
569 revision from its first parent.
569 revision from its first parent.
570
570
571 The codes used to show the status of files are:
571 The codes used to show the status of files are:
572
572
573 M = modified
573 M = modified
574 A = added
574 A = added
575 R = removed
575 R = removed
576 C = clean
576 C = clean
577 ! = missing (deleted by non-hg command, but still tracked)
577 ! = missing (deleted by non-hg command, but still tracked)
578 ? = not tracked
578 ? = not tracked
579 I = ignored
579 I = ignored
580 = origin of the previous file (with --copies)
580 = origin of the previous file (with --copies)
581
581
582 Returns 0 on success.
582 Returns 0 on success.
583
583
584 options ([+] can be repeated):
584 options ([+] can be repeated):
585
585
586 -A --all show status of all files
586 -A --all show status of all files
587 -m --modified show only modified files
587 -m --modified show only modified files
588 -a --added show only added files
588 -a --added show only added files
589 -r --removed show only removed files
589 -r --removed show only removed files
590 -d --deleted show only deleted (but tracked) files
590 -d --deleted show only deleted (but tracked) files
591 -c --clean show only files without changes
591 -c --clean show only files without changes
592 -u --unknown show only unknown (not tracked) files
592 -u --unknown show only unknown (not tracked) files
593 -i --ignored show only ignored files
593 -i --ignored show only ignored files
594 -n --no-status hide status prefix
594 -n --no-status hide status prefix
595 -C --copies show source of copied files
595 -C --copies show source of copied files
596 -0 --print0 end filenames with NUL, for use with xargs
596 -0 --print0 end filenames with NUL, for use with xargs
597 --rev REV [+] show difference from revision
597 --rev REV [+] show difference from revision
598 --change REV list the changed files of a revision
598 --change REV list the changed files of a revision
599 -I --include PATTERN [+] include names matching the given patterns
599 -I --include PATTERN [+] include names matching the given patterns
600 -X --exclude PATTERN [+] exclude names matching the given patterns
600 -X --exclude PATTERN [+] exclude names matching the given patterns
601 -S --subrepos recurse into subrepositories
601 -S --subrepos recurse into subrepositories
602
602
603 (some details hidden, use --verbose to show complete help)
603 (some details hidden, use --verbose to show complete help)
604
604
605 $ hg -q help status
605 $ hg -q help status
606 hg status [OPTION]... [FILE]...
606 hg status [OPTION]... [FILE]...
607
607
608 show changed files in the working directory
608 show changed files in the working directory
609
609
610 $ hg help foo
610 $ hg help foo
611 abort: no such help topic: foo
611 abort: no such help topic: foo
612 (try "hg help --keyword foo")
612 (try "hg help --keyword foo")
613 [255]
613 [255]
614
614
615 $ hg skjdfks
615 $ hg skjdfks
616 hg: unknown command 'skjdfks'
616 hg: unknown command 'skjdfks'
617 Mercurial Distributed SCM
617 Mercurial Distributed SCM
618
618
619 basic commands:
619 basic commands:
620
620
621 add add the specified files on the next commit
621 add add the specified files on the next commit
622 annotate show changeset information by line for each file
622 annotate show changeset information by line for each file
623 clone make a copy of an existing repository
623 clone make a copy of an existing repository
624 commit commit the specified files or all outstanding changes
624 commit commit the specified files or all outstanding changes
625 diff diff repository (or selected files)
625 diff diff repository (or selected files)
626 export dump the header and diffs for one or more changesets
626 export dump the header and diffs for one or more changesets
627 forget forget the specified files on the next commit
627 forget forget the specified files on the next commit
628 init create a new repository in the given directory
628 init create a new repository in the given directory
629 log show revision history of entire repository or files
629 log show revision history of entire repository or files
630 merge merge another revision into working directory
630 merge merge another revision into working directory
631 pull pull changes from the specified source
631 pull pull changes from the specified source
632 push push changes to the specified destination
632 push push changes to the specified destination
633 remove remove the specified files on the next commit
633 remove remove the specified files on the next commit
634 serve start stand-alone webserver
634 serve start stand-alone webserver
635 status show changed files in the working directory
635 status show changed files in the working directory
636 summary summarize working directory state
636 summary summarize working directory state
637 update update working directory (or switch revisions)
637 update update working directory (or switch revisions)
638
638
639 (use "hg help" for the full list of commands or "hg -v" for details)
639 (use "hg help" for the full list of commands or "hg -v" for details)
640 [255]
640 [255]
641
641
642
642
643 Make sure that we don't run afoul of the help system thinking that
643 Make sure that we don't run afoul of the help system thinking that
644 this is a section and erroring out weirdly.
644 this is a section and erroring out weirdly.
645
645
646 $ hg .log
646 $ hg .log
647 hg: unknown command '.log'
647 hg: unknown command '.log'
648 (did you mean one of log?)
648 (did you mean one of log?)
649 [255]
649 [255]
650
650
651 $ hg log.
651 $ hg log.
652 hg: unknown command 'log.'
652 hg: unknown command 'log.'
653 (did you mean one of log?)
653 (did you mean one of log?)
654 [255]
654 [255]
655 $ hg pu.lh
655 $ hg pu.lh
656 hg: unknown command 'pu.lh'
656 hg: unknown command 'pu.lh'
657 (did you mean one of pull, push?)
657 (did you mean one of pull, push?)
658 [255]
658 [255]
659
659
660 $ cat > helpext.py <<EOF
660 $ cat > helpext.py <<EOF
661 > import os
661 > import os
662 > from mercurial import cmdutil, commands
662 > from mercurial import cmdutil, commands
663 >
663 >
664 > cmdtable = {}
664 > cmdtable = {}
665 > command = cmdutil.command(cmdtable)
665 > command = cmdutil.command(cmdtable)
666 >
666 >
667 > @command('nohelp',
667 > @command('nohelp',
668 > [('', 'longdesc', 3, 'x'*90),
668 > [('', 'longdesc', 3, 'x'*90),
669 > ('n', '', None, 'normal desc'),
669 > ('n', '', None, 'normal desc'),
670 > ('', 'newline', '', 'line1\nline2')],
670 > ('', 'newline', '', 'line1\nline2')],
671 > 'hg nohelp',
671 > 'hg nohelp',
672 > norepo=True)
672 > norepo=True)
673 > @command('debugoptDEP', [('', 'dopt', None, 'option is (DEPRECATED)')])
673 > @command('debugoptDEP', [('', 'dopt', None, 'option is (DEPRECATED)')])
674 > @command('debugoptEXP', [('', 'eopt', None, 'option is (EXPERIMENTAL)')])
674 > @command('debugoptEXP', [('', 'eopt', None, 'option is (EXPERIMENTAL)')])
675 > def nohelp(ui, *args, **kwargs):
675 > def nohelp(ui, *args, **kwargs):
676 > pass
676 > pass
677 >
677 >
678 > EOF
678 > EOF
679 $ echo '[extensions]' >> $HGRCPATH
679 $ echo '[extensions]' >> $HGRCPATH
680 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH
680 $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH
681
681
682 Test command with no help text
682 Test command with no help text
683
683
684 $ hg help nohelp
684 $ hg help nohelp
685 hg nohelp
685 hg nohelp
686
686
687 (no help text available)
687 (no help text available)
688
688
689 options:
689 options:
690
690
691 --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
691 --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
692 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
692 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
693 -n -- normal desc
693 -n -- normal desc
694 --newline VALUE line1 line2
694 --newline VALUE line1 line2
695
695
696 (some details hidden, use --verbose to show complete help)
696 (some details hidden, use --verbose to show complete help)
697
697
698 $ hg help -k nohelp
698 $ hg help -k nohelp
699 Commands:
699 Commands:
700
700
701 nohelp hg nohelp
701 nohelp hg nohelp
702
702
703 Extension Commands:
703 Extension Commands:
704
704
705 nohelp (no help text available)
705 nohelp (no help text available)
706
706
707 Test that default list of commands omits extension commands
707 Test that default list of commands omits extension commands
708
708
709 $ hg help
709 $ hg help
710 Mercurial Distributed SCM
710 Mercurial Distributed SCM
711
711
712 list of commands:
712 list of commands:
713
713
714 add add the specified files on the next commit
714 add add the specified files on the next commit
715 addremove add all new files, delete all missing files
715 addremove add all new files, delete all missing files
716 annotate show changeset information by line for each file
716 annotate show changeset information by line for each file
717 archive create an unversioned archive of a repository revision
717 archive create an unversioned archive of a repository revision
718 backout reverse effect of earlier changeset
718 backout reverse effect of earlier changeset
719 bisect subdivision search of changesets
719 bisect subdivision search of changesets
720 bookmarks create a new bookmark or list existing bookmarks
720 bookmarks create a new bookmark or list existing bookmarks
721 branch set or show the current branch name
721 branch set or show the current branch name
722 branches list repository named branches
722 branches list repository named branches
723 bundle create a changegroup file
723 bundle create a changegroup file
724 cat output the current or given revision of files
724 cat output the current or given revision of files
725 clone make a copy of an existing repository
725 clone make a copy of an existing repository
726 commit commit the specified files or all outstanding changes
726 commit commit the specified files or all outstanding changes
727 config show combined config settings from all hgrc files
727 config show combined config settings from all hgrc files
728 copy mark files as copied for the next commit
728 copy mark files as copied for the next commit
729 diff diff repository (or selected files)
729 diff diff repository (or selected files)
730 export dump the header and diffs for one or more changesets
730 export dump the header and diffs for one or more changesets
731 files list tracked files
731 files list tracked files
732 forget forget the specified files on the next commit
732 forget forget the specified files on the next commit
733 graft copy changes from other branches onto the current branch
733 graft copy changes from other branches onto the current branch
734 grep search for a pattern in specified files and revisions
734 grep search for a pattern in specified files and revisions
735 heads show branch heads
735 heads show branch heads
736 help show help for a given topic or a help overview
736 help show help for a given topic or a help overview
737 identify identify the working directory or specified revision
737 identify identify the working directory or specified revision
738 import import an ordered set of patches
738 import import an ordered set of patches
739 incoming show new changesets found in source
739 incoming show new changesets found in source
740 init create a new repository in the given directory
740 init create a new repository in the given directory
741 log show revision history of entire repository or files
741 log show revision history of entire repository or files
742 manifest output the current or given revision of the project manifest
742 manifest output the current or given revision of the project manifest
743 merge merge another revision into working directory
743 merge merge another revision into working directory
744 outgoing show changesets not found in the destination
744 outgoing show changesets not found in the destination
745 paths show aliases for remote repositories
745 paths show aliases for remote repositories
746 phase set or show the current phase name
746 phase set or show the current phase name
747 pull pull changes from the specified source
747 pull pull changes from the specified source
748 push push changes to the specified destination
748 push push changes to the specified destination
749 recover roll back an interrupted transaction
749 recover roll back an interrupted transaction
750 remove remove the specified files on the next commit
750 remove remove the specified files on the next commit
751 rename rename files; equivalent of copy + remove
751 rename rename files; equivalent of copy + remove
752 resolve redo merges or set/view the merge status of files
752 resolve redo merges or set/view the merge status of files
753 revert restore files to their checkout state
753 revert restore files to their checkout state
754 root print the root (top) of the current working directory
754 root print the root (top) of the current working directory
755 serve start stand-alone webserver
755 serve start stand-alone webserver
756 status show changed files in the working directory
756 status show changed files in the working directory
757 summary summarize working directory state
757 summary summarize working directory state
758 tag add one or more tags for the current or given revision
758 tag add one or more tags for the current or given revision
759 tags list repository tags
759 tags list repository tags
760 unbundle apply one or more changegroup files
760 unbundle apply one or more changegroup files
761 update update working directory (or switch revisions)
761 update update working directory (or switch revisions)
762 verify verify the integrity of the repository
762 verify verify the integrity of the repository
763 version output version and copyright information
763 version output version and copyright information
764
764
765 enabled extensions:
765 enabled extensions:
766
766
767 helpext (no help text available)
767 helpext (no help text available)
768
768
769 additional help topics:
769 additional help topics:
770
770
771 config Configuration Files
771 config Configuration Files
772 dates Date Formats
772 dates Date Formats
773 diffs Diff Formats
773 diffs Diff Formats
774 environment Environment Variables
774 environment Environment Variables
775 extensions Using Additional Features
775 extensions Using Additional Features
776 filesets Specifying File Sets
776 filesets Specifying File Sets
777 glossary Glossary
777 glossary Glossary
778 hgignore Syntax for Mercurial Ignore Files
778 hgignore Syntax for Mercurial Ignore Files
779 hgweb Configuring hgweb
779 hgweb Configuring hgweb
780 internals Technical implementation topics
780 internals Technical implementation topics
781 merge-tools Merge Tools
781 merge-tools Merge Tools
782 multirevs Specifying Multiple Revisions
782 multirevs Specifying Multiple Revisions
783 patterns File Name Patterns
783 patterns File Name Patterns
784 phases Working with Phases
784 phases Working with Phases
785 revisions Specifying Single Revisions
785 revisions Specifying Single Revisions
786 revsets Specifying Revision Sets
786 revsets Specifying Revision Sets
787 scripting Using Mercurial from scripts and automation
787 scripting Using Mercurial from scripts and automation
788 subrepos Subrepositories
788 subrepos Subrepositories
789 templating Template Usage
789 templating Template Usage
790 urls URL Paths
790 urls URL Paths
791
791
792 (use "hg help -v" to show built-in aliases and global options)
792 (use "hg help -v" to show built-in aliases and global options)
793
793
794
794
795 Test list of internal help commands
795 Test list of internal help commands
796
796
797 $ hg help debug
797 $ hg help debug
798 debug commands (internal and unsupported):
798 debug commands (internal and unsupported):
799
799
800 debugancestor
800 debugancestor
801 find the ancestor revision of two revisions in a given index
801 find the ancestor revision of two revisions in a given index
802 debugapplystreamclonebundle
802 debugapplystreamclonebundle
803 apply a stream clone bundle file
803 apply a stream clone bundle file
804 debugbuilddag
804 debugbuilddag
805 builds a repo with a given DAG from scratch in the current
805 builds a repo with a given DAG from scratch in the current
806 empty repo
806 empty repo
807 debugbundle lists the contents of a bundle
807 debugbundle lists the contents of a bundle
808 debugcheckstate
808 debugcheckstate
809 validate the correctness of the current dirstate
809 validate the correctness of the current dirstate
810 debugcommands
810 debugcommands
811 list all available commands and options
811 list all available commands and options
812 debugcomplete
812 debugcomplete
813 returns the completion list associated with the given command
813 returns the completion list associated with the given command
814 debugcreatestreamclonebundle
814 debugcreatestreamclonebundle
815 create a stream clone bundle file
815 create a stream clone bundle file
816 debugdag format the changelog or an index DAG as a concise textual
816 debugdag format the changelog or an index DAG as a concise textual
817 description
817 description
818 debugdata dump the contents of a data file revision
818 debugdata dump the contents of a data file revision
819 debugdate parse and display a date
819 debugdate parse and display a date
820 debugdeltachain
820 debugdeltachain
821 dump information about delta chains in a revlog
821 dump information about delta chains in a revlog
822 debugdirstate
822 debugdirstate
823 show the contents of the current dirstate
823 show the contents of the current dirstate
824 debugdiscovery
824 debugdiscovery
825 runs the changeset discovery protocol in isolation
825 runs the changeset discovery protocol in isolation
826 debugextensions
826 debugextensions
827 show information about active extensions
827 show information about active extensions
828 debugfileset parse and apply a fileset specification
828 debugfileset parse and apply a fileset specification
829 debugfsinfo show information detected about current filesystem
829 debugfsinfo show information detected about current filesystem
830 debuggetbundle
830 debuggetbundle
831 retrieves a bundle from a repo
831 retrieves a bundle from a repo
832 debugignore display the combined ignore pattern
832 debugignore display the combined ignore pattern
833 debugindex dump the contents of an index file
833 debugindex dump the contents of an index file
834 debugindexdot
834 debugindexdot
835 dump an index DAG as a graphviz dot file
835 dump an index DAG as a graphviz dot file
836 debuginstall test Mercurial installation
836 debuginstall test Mercurial installation
837 debugknown test whether node ids are known to a repo
837 debugknown test whether node ids are known to a repo
838 debuglocks show or modify state of locks
838 debuglocks show or modify state of locks
839 debugmergestate
839 debugmergestate
840 print merge state
840 print merge state
841 debugnamecomplete
841 debugnamecomplete
842 complete "names" - tags, open branch names, bookmark names
842 complete "names" - tags, open branch names, bookmark names
843 debugobsolete
843 debugobsolete
844 create arbitrary obsolete marker
844 create arbitrary obsolete marker
845 debugoptDEP (no help text available)
845 debugoptDEP (no help text available)
846 debugoptEXP (no help text available)
846 debugoptEXP (no help text available)
847 debugpathcomplete
847 debugpathcomplete
848 complete part or all of a tracked path
848 complete part or all of a tracked path
849 debugpushkey access the pushkey key/value protocol
849 debugpushkey access the pushkey key/value protocol
850 debugpvec (no help text available)
850 debugpvec (no help text available)
851 debugrebuilddirstate
851 debugrebuilddirstate
852 rebuild the dirstate as it would look like for the given
852 rebuild the dirstate as it would look like for the given
853 revision
853 revision
854 debugrebuildfncache
854 debugrebuildfncache
855 rebuild the fncache file
855 rebuild the fncache file
856 debugrename dump rename information
856 debugrename dump rename information
857 debugrevlog show data and statistics about a revlog
857 debugrevlog show data and statistics about a revlog
858 debugrevspec parse and apply a revision specification
858 debugrevspec parse and apply a revision specification
859 debugsetparents
859 debugsetparents
860 manually set the parents of the current working directory
860 manually set the parents of the current working directory
861 debugsub (no help text available)
861 debugsub (no help text available)
862 debugsuccessorssets
862 debugsuccessorssets
863 show set of successors for revision
863 show set of successors for revision
864 debugwalk show how files match on given patterns
864 debugwalk show how files match on given patterns
865 debugwireargs
865 debugwireargs
866 (no help text available)
866 (no help text available)
867
867
868 (use "hg help -v debug" to show built-in aliases and global options)
868 (use "hg help -v debug" to show built-in aliases and global options)
869
869
870 internals topic renders index of available sub-topics
870 internals topic renders index of available sub-topics
871
871
872 $ hg help internals
872 $ hg help internals
873 Technical implementation topics
873 Technical implementation topics
874 """""""""""""""""""""""""""""""
874 """""""""""""""""""""""""""""""
875
875
876 bundles container for exchange of repository data
876 bundles container for exchange of repository data
877 changegroups representation of revlog data
877 changegroups representation of revlog data
878
878
879 sub-topics can be accessed
879 sub-topics can be accessed
880
880
881 $ hg help internals.changegroups
881 $ hg help internals.changegroups
882 Changegroups
882 Changegroups
883 ============
883 ============
884
884
885 Changegroups are representations of repository revlog data, specifically
885 Changegroups are representations of repository revlog data, specifically
886 the changelog, manifest, and filelogs.
886 the changelog, manifest, and filelogs.
887
887
888 There are 2 versions of changegroups: "1" and "2". From a high-level, they
888 There are 3 versions of changegroups: "1", "2", and "3". From a high-
889 are almost exactly the same, with the only difference being a header on
889 level, versions "1" and "2" are almost exactly the same, with the only
890 entries in the changeset segment.
890 difference being a header on entries in the changeset segment. Version "3"
891 adds support for exchanging treemanifests and includes revlog flags in the
892 delta header.
891
893
892 Changegroups consists of 3 logical segments:
894 Changegroups consists of 3 logical segments:
893
895
894 +---------------------------------+
896 +---------------------------------+
895 | | | |
897 | | | |
896 | changeset | manifest | filelogs |
898 | changeset | manifest | filelogs |
897 | | | |
899 | | | |
898 +---------------------------------+
900 +---------------------------------+
899
901
900 The principle building block of each segment is a *chunk*. A *chunk* is a
902 The principle building block of each segment is a *chunk*. A *chunk* is a
901 framed piece of data:
903 framed piece of data:
902
904
903 +---------------------------------------+
905 +---------------------------------------+
904 | | |
906 | | |
905 | length | data |
907 | length | data |
906 | (32 bits) | <length> bytes |
908 | (32 bits) | <length> bytes |
907 | | |
909 | | |
908 +---------------------------------------+
910 +---------------------------------------+
909
911
910 Each chunk starts with a 32-bit big-endian signed integer indicating the
912 Each chunk starts with a 32-bit big-endian signed integer indicating the
911 length of the raw data that follows.
913 length of the raw data that follows.
912
914
913 There is a special case chunk that has 0 length ("0x00000000"). We call
915 There is a special case chunk that has 0 length ("0x00000000"). We call
914 this an *empty chunk*.
916 this an *empty chunk*.
915
917
916 Delta Groups
918 Delta Groups
917 ------------
919 ------------
918
920
919 A *delta group* expresses the content of a revlog as a series of deltas,
921 A *delta group* expresses the content of a revlog as a series of deltas,
920 or patches against previous revisions.
922 or patches against previous revisions.
921
923
922 Delta groups consist of 0 or more *chunks* followed by the *empty chunk*
924 Delta groups consist of 0 or more *chunks* followed by the *empty chunk*
923 to signal the end of the delta group:
925 to signal the end of the delta group:
924
926
925 +------------------------------------------------------------------------+
927 +------------------------------------------------------------------------+
926 | | | | | |
928 | | | | | |
927 | chunk0 length | chunk0 data | chunk1 length | chunk1 data | 0x0 |
929 | chunk0 length | chunk0 data | chunk1 length | chunk1 data | 0x0 |
928 | (32 bits) | (various) | (32 bits) | (various) | (32 bits) |
930 | (32 bits) | (various) | (32 bits) | (various) | (32 bits) |
929 | | | | | |
931 | | | | | |
930 +------------------------------------------------------------+-----------+
932 +------------------------------------------------------------+-----------+
931
933
932 Each *chunk*'s data consists of the following:
934 Each *chunk*'s data consists of the following:
933
935
934 +-----------------------------------------+
936 +-----------------------------------------+
935 | | | |
937 | | | |
936 | delta header | mdiff header | delta |
938 | delta header | mdiff header | delta |
937 | (various) | (12 bytes) | (various) |
939 | (various) | (12 bytes) | (various) |
938 | | | |
940 | | | |
939 +-----------------------------------------+
941 +-----------------------------------------+
940
942
941 The *length* field is the byte length of the remaining 3 logical pieces of
943 The *length* field is the byte length of the remaining 3 logical pieces of
942 data. The *delta* is a diff from an existing entry in the changelog.
944 data. The *delta* is a diff from an existing entry in the changelog.
943
945
944 The *delta header* is different between versions "1" and "2" of the
946 The *delta header* is different between versions "1", "2", and "3" of the
945 changegroup format.
947 changegroup format.
946
948
947 Version 1:
949 Version 1:
948
950
949 +------------------------------------------------------+
951 +------------------------------------------------------+
950 | | | | |
952 | | | | |
951 | node | p1 node | p2 node | link node |
953 | node | p1 node | p2 node | link node |
952 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
954 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
953 | | | | |
955 | | | | |
954 +------------------------------------------------------+
956 +------------------------------------------------------+
955
957
956 Version 2:
958 Version 2:
957
959
958 +------------------------------------------------------------------+
960 +------------------------------------------------------------------+
959 | | | | | |
961 | | | | | |
960 | node | p1 node | p2 node | base node | link node |
962 | node | p1 node | p2 node | base node | link node |
961 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
963 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) |
962 | | | | | |
964 | | | | | |
963 +------------------------------------------------------------------+
965 +------------------------------------------------------------------+
964
966
967 Version 3:
968
969 +------------------------------------------------------------------------------+
970 | | | | | | |
971 | node | p1 node | p2 node | base node | link node | flags |
972 | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (20 bytes) | (2 bytes) |
973 | | | | | | |
974 +------------------------------------------------------------------------------+
975
965 The *mdiff header* consists of 3 32-bit big-endian signed integers
976 The *mdiff header* consists of 3 32-bit big-endian signed integers
966 describing offsets at which to apply the following delta content:
977 describing offsets at which to apply the following delta content:
967
978
968 +-------------------------------------+
979 +-------------------------------------+
969 | | | |
980 | | | |
970 | offset | old length | new length |
981 | offset | old length | new length |
971 | (32 bits) | (32 bits) | (32 bits) |
982 | (32 bits) | (32 bits) | (32 bits) |
972 | | | |
983 | | | |
973 +-------------------------------------+
984 +-------------------------------------+
974
985
975 In version 1, the delta is always applied against the previous node from
986 In version 1, the delta is always applied against the previous node from
976 the changegroup or the first parent if this is the first entry in the
987 the changegroup or the first parent if this is the first entry in the
977 changegroup.
988 changegroup.
978
989
979 In version 2, the delta base node is encoded in the entry in the
990 In version 2, the delta base node is encoded in the entry in the
980 changegroup. This allows the delta to be expressed against any parent,
991 changegroup. This allows the delta to be expressed against any parent,
981 which can result in smaller deltas and more efficient encoding of data.
992 which can result in smaller deltas and more efficient encoding of data.
982
993
983 Changeset Segment
994 Changeset Segment
984 -----------------
995 -----------------
985
996
986 The *changeset segment* consists of a single *delta group* holding
997 The *changeset segment* consists of a single *delta group* holding
987 changelog data. It is followed by an *empty chunk* to denote the boundary
998 changelog data. It is followed by an *empty chunk* to denote the boundary
988 to the *manifests segment*.
999 to the *manifests segment*.
989
1000
990 Manifest Segment
1001 Manifest Segment
991 ----------------
1002 ----------------
992
1003
993 The *manifest segment* consists of a single *delta group* holding manifest
1004 The *manifest segment* consists of a single *delta group* holding manifest
994 data. It is followed by an *empty chunk* to denote the boundary to the
1005 data. It is followed by an *empty chunk* to denote the boundary to the
995 *filelogs segment*.
1006 *filelogs segment*.
996
1007
997 Filelogs Segment
1008 Filelogs Segment
998 ----------------
1009 ----------------
999
1010
1000 The *filelogs* segment consists of multiple sub-segments, each
1011 The *filelogs* segment consists of multiple sub-segments, each
1001 corresponding to an individual file whose data is being described:
1012 corresponding to an individual file whose data is being described:
1002
1013
1003 +--------------------------------------+
1014 +--------------------------------------+
1004 | | | | |
1015 | | | | |
1005 | filelog0 | filelog1 | filelog2 | ... |
1016 | filelog0 | filelog1 | filelog2 | ... |
1006 | | | | |
1017 | | | | |
1007 +--------------------------------------+
1018 +--------------------------------------+
1008
1019
1020 In version "3" of the changegroup format, filelogs may include directory
1021 logs when treemanifests are in use. directory logs are identified by
1022 having a trailing '/' on their filename (see below).
1023
1009 The final filelog sub-segment is followed by an *empty chunk* to denote
1024 The final filelog sub-segment is followed by an *empty chunk* to denote
1010 the end of the segment and the overall changegroup.
1025 the end of the segment and the overall changegroup.
1011
1026
1012 Each filelog sub-segment consists of the following:
1027 Each filelog sub-segment consists of the following:
1013
1028
1014 +------------------------------------------+
1029 +------------------------------------------+
1015 | | | |
1030 | | | |
1016 | filename size | filename | delta group |
1031 | filename size | filename | delta group |
1017 | (32 bits) | (various) | (various) |
1032 | (32 bits) | (various) | (various) |
1018 | | | |
1033 | | | |
1019 +------------------------------------------+
1034 +------------------------------------------+
1020
1035
1021 That is, a *chunk* consisting of the filename (not terminated or padded)
1036 That is, a *chunk* consisting of the filename (not terminated or padded)
1022 followed by N chunks constituting the *delta group* for this file.
1037 followed by N chunks constituting the *delta group* for this file.
1023
1038
1024 Test list of commands with command with no help text
1039 Test list of commands with command with no help text
1025
1040
1026 $ hg help helpext
1041 $ hg help helpext
1027 helpext extension - no help text available
1042 helpext extension - no help text available
1028
1043
1029 list of commands:
1044 list of commands:
1030
1045
1031 nohelp (no help text available)
1046 nohelp (no help text available)
1032
1047
1033 (use "hg help -v helpext" to show built-in aliases and global options)
1048 (use "hg help -v helpext" to show built-in aliases and global options)
1034
1049
1035
1050
1036 test deprecated and experimental options are hidden in command help
1051 test deprecated and experimental options are hidden in command help
1037 $ hg help debugoptDEP
1052 $ hg help debugoptDEP
1038 hg debugoptDEP
1053 hg debugoptDEP
1039
1054
1040 (no help text available)
1055 (no help text available)
1041
1056
1042 options:
1057 options:
1043
1058
1044 (some details hidden, use --verbose to show complete help)
1059 (some details hidden, use --verbose to show complete help)
1045
1060
1046 $ hg help debugoptEXP
1061 $ hg help debugoptEXP
1047 hg debugoptEXP
1062 hg debugoptEXP
1048
1063
1049 (no help text available)
1064 (no help text available)
1050
1065
1051 options:
1066 options:
1052
1067
1053 (some details hidden, use --verbose to show complete help)
1068 (some details hidden, use --verbose to show complete help)
1054
1069
1055 test deprecated and experimental options is shown with -v
1070 test deprecated and experimental options is shown with -v
1056 $ hg help -v debugoptDEP | grep dopt
1071 $ hg help -v debugoptDEP | grep dopt
1057 --dopt option is (DEPRECATED)
1072 --dopt option is (DEPRECATED)
1058 $ hg help -v debugoptEXP | grep eopt
1073 $ hg help -v debugoptEXP | grep eopt
1059 --eopt option is (EXPERIMENTAL)
1074 --eopt option is (EXPERIMENTAL)
1060
1075
1061 #if gettext
1076 #if gettext
1062 test deprecated option is hidden with translation with untranslated description
1077 test deprecated option is hidden with translation with untranslated description
1063 (use many globy for not failing on changed transaction)
1078 (use many globy for not failing on changed transaction)
1064 $ LANGUAGE=sv hg help debugoptDEP
1079 $ LANGUAGE=sv hg help debugoptDEP
1065 hg debugoptDEP
1080 hg debugoptDEP
1066
1081
1067 (*) (glob)
1082 (*) (glob)
1068
1083
1069 options:
1084 options:
1070
1085
1071 (some details hidden, use --verbose to show complete help)
1086 (some details hidden, use --verbose to show complete help)
1072 #endif
1087 #endif
1073
1088
1074 Test commands that collide with topics (issue4240)
1089 Test commands that collide with topics (issue4240)
1075
1090
1076 $ hg config -hq
1091 $ hg config -hq
1077 hg config [-u] [NAME]...
1092 hg config [-u] [NAME]...
1078
1093
1079 show combined config settings from all hgrc files
1094 show combined config settings from all hgrc files
1080 $ hg showconfig -hq
1095 $ hg showconfig -hq
1081 hg config [-u] [NAME]...
1096 hg config [-u] [NAME]...
1082
1097
1083 show combined config settings from all hgrc files
1098 show combined config settings from all hgrc files
1084
1099
1085 Test a help topic
1100 Test a help topic
1086
1101
1087 $ hg help revs
1102 $ hg help revs
1088 Specifying Single Revisions
1103 Specifying Single Revisions
1089 """""""""""""""""""""""""""
1104 """""""""""""""""""""""""""
1090
1105
1091 Mercurial supports several ways to specify individual revisions.
1106 Mercurial supports several ways to specify individual revisions.
1092
1107
1093 A plain integer is treated as a revision number. Negative integers are
1108 A plain integer is treated as a revision number. Negative integers are
1094 treated as sequential offsets from the tip, with -1 denoting the tip, -2
1109 treated as sequential offsets from the tip, with -1 denoting the tip, -2
1095 denoting the revision prior to the tip, and so forth.
1110 denoting the revision prior to the tip, and so forth.
1096
1111
1097 A 40-digit hexadecimal string is treated as a unique revision identifier.
1112 A 40-digit hexadecimal string is treated as a unique revision identifier.
1098
1113
1099 A hexadecimal string less than 40 characters long is treated as a unique
1114 A hexadecimal string less than 40 characters long is treated as a unique
1100 revision identifier and is referred to as a short-form identifier. A
1115 revision identifier and is referred to as a short-form identifier. A
1101 short-form identifier is only valid if it is the prefix of exactly one
1116 short-form identifier is only valid if it is the prefix of exactly one
1102 full-length identifier.
1117 full-length identifier.
1103
1118
1104 Any other string is treated as a bookmark, tag, or branch name. A bookmark
1119 Any other string is treated as a bookmark, tag, or branch name. A bookmark
1105 is a movable pointer to a revision. A tag is a permanent name associated
1120 is a movable pointer to a revision. A tag is a permanent name associated
1106 with a revision. A branch name denotes the tipmost open branch head of
1121 with a revision. A branch name denotes the tipmost open branch head of
1107 that branch - or if they are all closed, the tipmost closed head of the
1122 that branch - or if they are all closed, the tipmost closed head of the
1108 branch. Bookmark, tag, and branch names must not contain the ":"
1123 branch. Bookmark, tag, and branch names must not contain the ":"
1109 character.
1124 character.
1110
1125
1111 The reserved name "tip" always identifies the most recent revision.
1126 The reserved name "tip" always identifies the most recent revision.
1112
1127
1113 The reserved name "null" indicates the null revision. This is the revision
1128 The reserved name "null" indicates the null revision. This is the revision
1114 of an empty repository, and the parent of revision 0.
1129 of an empty repository, and the parent of revision 0.
1115
1130
1116 The reserved name "." indicates the working directory parent. If no
1131 The reserved name "." indicates the working directory parent. If no
1117 working directory is checked out, it is equivalent to null. If an
1132 working directory is checked out, it is equivalent to null. If an
1118 uncommitted merge is in progress, "." is the revision of the first parent.
1133 uncommitted merge is in progress, "." is the revision of the first parent.
1119
1134
1120 Test repeated config section name
1135 Test repeated config section name
1121
1136
1122 $ hg help config.host
1137 $ hg help config.host
1123 "http_proxy.host"
1138 "http_proxy.host"
1124 Host name and (optional) port of the proxy server, for example
1139 Host name and (optional) port of the proxy server, for example
1125 "myproxy:8000".
1140 "myproxy:8000".
1126
1141
1127 "smtp.host"
1142 "smtp.host"
1128 Host name of mail server, e.g. "mail.example.com".
1143 Host name of mail server, e.g. "mail.example.com".
1129
1144
1130 Unrelated trailing paragraphs shouldn't be included
1145 Unrelated trailing paragraphs shouldn't be included
1131
1146
1132 $ hg help config.extramsg | grep '^$'
1147 $ hg help config.extramsg | grep '^$'
1133
1148
1134
1149
1135 Test capitalized section name
1150 Test capitalized section name
1136
1151
1137 $ hg help scripting.HGPLAIN > /dev/null
1152 $ hg help scripting.HGPLAIN > /dev/null
1138
1153
1139 Help subsection:
1154 Help subsection:
1140
1155
1141 $ hg help config.charsets |grep "Email example:" > /dev/null
1156 $ hg help config.charsets |grep "Email example:" > /dev/null
1142 [1]
1157 [1]
1143
1158
1144 Show nested definitions
1159 Show nested definitions
1145 ("profiling.type"[break]"ls"[break]"stat"[break])
1160 ("profiling.type"[break]"ls"[break]"stat"[break])
1146
1161
1147 $ hg help config.type | egrep '^$'|wc -l
1162 $ hg help config.type | egrep '^$'|wc -l
1148 \s*3 (re)
1163 \s*3 (re)
1149
1164
1150 Last item in help config.*:
1165 Last item in help config.*:
1151
1166
1152 $ hg help config.`hg help config|grep '^ "'| \
1167 $ hg help config.`hg help config|grep '^ "'| \
1153 > tail -1|sed 's![ "]*!!g'`| \
1168 > tail -1|sed 's![ "]*!!g'`| \
1154 > grep "hg help -c config" > /dev/null
1169 > grep "hg help -c config" > /dev/null
1155 [1]
1170 [1]
1156
1171
1157 note to use help -c for general hg help config:
1172 note to use help -c for general hg help config:
1158
1173
1159 $ hg help config |grep "hg help -c config" > /dev/null
1174 $ hg help config |grep "hg help -c config" > /dev/null
1160
1175
1161 Test templating help
1176 Test templating help
1162
1177
1163 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) '
1178 $ hg help templating | egrep '(desc|diffstat|firstline|nonempty) '
1164 desc String. The text of the changeset description.
1179 desc String. The text of the changeset description.
1165 diffstat String. Statistics of changes with the following format:
1180 diffstat String. Statistics of changes with the following format:
1166 firstline Any text. Returns the first line of text.
1181 firstline Any text. Returns the first line of text.
1167 nonempty Any text. Returns '(none)' if the string is empty.
1182 nonempty Any text. Returns '(none)' if the string is empty.
1168
1183
1169 Test deprecated items
1184 Test deprecated items
1170
1185
1171 $ hg help -v templating | grep currentbookmark
1186 $ hg help -v templating | grep currentbookmark
1172 currentbookmark
1187 currentbookmark
1173 $ hg help templating | (grep currentbookmark || true)
1188 $ hg help templating | (grep currentbookmark || true)
1174
1189
1175 Test help hooks
1190 Test help hooks
1176
1191
1177 $ cat > helphook1.py <<EOF
1192 $ cat > helphook1.py <<EOF
1178 > from mercurial import help
1193 > from mercurial import help
1179 >
1194 >
1180 > def rewrite(ui, topic, doc):
1195 > def rewrite(ui, topic, doc):
1181 > return doc + '\nhelphook1\n'
1196 > return doc + '\nhelphook1\n'
1182 >
1197 >
1183 > def extsetup(ui):
1198 > def extsetup(ui):
1184 > help.addtopichook('revsets', rewrite)
1199 > help.addtopichook('revsets', rewrite)
1185 > EOF
1200 > EOF
1186 $ cat > helphook2.py <<EOF
1201 $ cat > helphook2.py <<EOF
1187 > from mercurial import help
1202 > from mercurial import help
1188 >
1203 >
1189 > def rewrite(ui, topic, doc):
1204 > def rewrite(ui, topic, doc):
1190 > return doc + '\nhelphook2\n'
1205 > return doc + '\nhelphook2\n'
1191 >
1206 >
1192 > def extsetup(ui):
1207 > def extsetup(ui):
1193 > help.addtopichook('revsets', rewrite)
1208 > help.addtopichook('revsets', rewrite)
1194 > EOF
1209 > EOF
1195 $ echo '[extensions]' >> $HGRCPATH
1210 $ echo '[extensions]' >> $HGRCPATH
1196 $ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH
1211 $ echo "helphook1 = `pwd`/helphook1.py" >> $HGRCPATH
1197 $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
1212 $ echo "helphook2 = `pwd`/helphook2.py" >> $HGRCPATH
1198 $ hg help revsets | grep helphook
1213 $ hg help revsets | grep helphook
1199 helphook1
1214 helphook1
1200 helphook2
1215 helphook2
1201
1216
1202 help -c should only show debug --debug
1217 help -c should only show debug --debug
1203
1218
1204 $ hg help -c --debug|egrep debug|wc -l|egrep '^\s*0\s*$'
1219 $ hg help -c --debug|egrep debug|wc -l|egrep '^\s*0\s*$'
1205 [1]
1220 [1]
1206
1221
1207 help -c should only show deprecated for -v
1222 help -c should only show deprecated for -v
1208
1223
1209 $ hg help -c -v|egrep DEPRECATED|wc -l|egrep '^\s*0\s*$'
1224 $ hg help -c -v|egrep DEPRECATED|wc -l|egrep '^\s*0\s*$'
1210 [1]
1225 [1]
1211
1226
1212 Test -e / -c / -k combinations
1227 Test -e / -c / -k combinations
1213
1228
1214 $ hg help -c|egrep '^[A-Z].*:|^ debug'
1229 $ hg help -c|egrep '^[A-Z].*:|^ debug'
1215 Commands:
1230 Commands:
1216 $ hg help -e|egrep '^[A-Z].*:|^ debug'
1231 $ hg help -e|egrep '^[A-Z].*:|^ debug'
1217 Extensions:
1232 Extensions:
1218 $ hg help -k|egrep '^[A-Z].*:|^ debug'
1233 $ hg help -k|egrep '^[A-Z].*:|^ debug'
1219 Topics:
1234 Topics:
1220 Commands:
1235 Commands:
1221 Extensions:
1236 Extensions:
1222 Extension Commands:
1237 Extension Commands:
1223 $ hg help -c schemes
1238 $ hg help -c schemes
1224 abort: no such help topic: schemes
1239 abort: no such help topic: schemes
1225 (try "hg help --keyword schemes")
1240 (try "hg help --keyword schemes")
1226 [255]
1241 [255]
1227 $ hg help -e schemes |head -1
1242 $ hg help -e schemes |head -1
1228 schemes extension - extend schemes with shortcuts to repository swarms
1243 schemes extension - extend schemes with shortcuts to repository swarms
1229 $ hg help -c -k dates |egrep '^(Topics|Extensions|Commands):'
1244 $ hg help -c -k dates |egrep '^(Topics|Extensions|Commands):'
1230 Commands:
1245 Commands:
1231 $ hg help -e -k a |egrep '^(Topics|Extensions|Commands):'
1246 $ hg help -e -k a |egrep '^(Topics|Extensions|Commands):'
1232 Extensions:
1247 Extensions:
1233 $ hg help -e -c -k date |egrep '^(Topics|Extensions|Commands):'
1248 $ hg help -e -c -k date |egrep '^(Topics|Extensions|Commands):'
1234 Extensions:
1249 Extensions:
1235 Commands:
1250 Commands:
1236 $ hg help -c commit > /dev/null
1251 $ hg help -c commit > /dev/null
1237 $ hg help -e -c commit > /dev/null
1252 $ hg help -e -c commit > /dev/null
1238 $ hg help -e commit > /dev/null
1253 $ hg help -e commit > /dev/null
1239 abort: no such help topic: commit
1254 abort: no such help topic: commit
1240 (try "hg help --keyword commit")
1255 (try "hg help --keyword commit")
1241 [255]
1256 [255]
1242
1257
1243 Test keyword search help
1258 Test keyword search help
1244
1259
1245 $ cat > prefixedname.py <<EOF
1260 $ cat > prefixedname.py <<EOF
1246 > '''matched against word "clone"
1261 > '''matched against word "clone"
1247 > '''
1262 > '''
1248 > EOF
1263 > EOF
1249 $ echo '[extensions]' >> $HGRCPATH
1264 $ echo '[extensions]' >> $HGRCPATH
1250 $ echo "dot.dot.prefixedname = `pwd`/prefixedname.py" >> $HGRCPATH
1265 $ echo "dot.dot.prefixedname = `pwd`/prefixedname.py" >> $HGRCPATH
1251 $ hg help -k clone
1266 $ hg help -k clone
1252 Topics:
1267 Topics:
1253
1268
1254 config Configuration Files
1269 config Configuration Files
1255 extensions Using Additional Features
1270 extensions Using Additional Features
1256 glossary Glossary
1271 glossary Glossary
1257 phases Working with Phases
1272 phases Working with Phases
1258 subrepos Subrepositories
1273 subrepos Subrepositories
1259 urls URL Paths
1274 urls URL Paths
1260
1275
1261 Commands:
1276 Commands:
1262
1277
1263 bookmarks create a new bookmark or list existing bookmarks
1278 bookmarks create a new bookmark or list existing bookmarks
1264 clone make a copy of an existing repository
1279 clone make a copy of an existing repository
1265 paths show aliases for remote repositories
1280 paths show aliases for remote repositories
1266 update update working directory (or switch revisions)
1281 update update working directory (or switch revisions)
1267
1282
1268 Extensions:
1283 Extensions:
1269
1284
1270 clonebundles advertise pre-generated bundles to seed clones (experimental)
1285 clonebundles advertise pre-generated bundles to seed clones (experimental)
1271 prefixedname matched against word "clone"
1286 prefixedname matched against word "clone"
1272 relink recreates hardlinks between repository clones
1287 relink recreates hardlinks between repository clones
1273
1288
1274 Extension Commands:
1289 Extension Commands:
1275
1290
1276 qclone clone main and patch repository at same time
1291 qclone clone main and patch repository at same time
1277
1292
1278 Test unfound topic
1293 Test unfound topic
1279
1294
1280 $ hg help nonexistingtopicthatwillneverexisteverever
1295 $ hg help nonexistingtopicthatwillneverexisteverever
1281 abort: no such help topic: nonexistingtopicthatwillneverexisteverever
1296 abort: no such help topic: nonexistingtopicthatwillneverexisteverever
1282 (try "hg help --keyword nonexistingtopicthatwillneverexisteverever")
1297 (try "hg help --keyword nonexistingtopicthatwillneverexisteverever")
1283 [255]
1298 [255]
1284
1299
1285 Test unfound keyword
1300 Test unfound keyword
1286
1301
1287 $ hg help --keyword nonexistingwordthatwillneverexisteverever
1302 $ hg help --keyword nonexistingwordthatwillneverexisteverever
1288 abort: no matches
1303 abort: no matches
1289 (try "hg help" for a list of topics)
1304 (try "hg help" for a list of topics)
1290 [255]
1305 [255]
1291
1306
1292 Test omit indicating for help
1307 Test omit indicating for help
1293
1308
1294 $ cat > addverboseitems.py <<EOF
1309 $ cat > addverboseitems.py <<EOF
1295 > '''extension to test omit indicating.
1310 > '''extension to test omit indicating.
1296 >
1311 >
1297 > This paragraph is never omitted (for extension)
1312 > This paragraph is never omitted (for extension)
1298 >
1313 >
1299 > .. container:: verbose
1314 > .. container:: verbose
1300 >
1315 >
1301 > This paragraph is omitted,
1316 > This paragraph is omitted,
1302 > if :hg:\`help\` is invoked without \`\`-v\`\` (for extension)
1317 > if :hg:\`help\` is invoked without \`\`-v\`\` (for extension)
1303 >
1318 >
1304 > This paragraph is never omitted, too (for extension)
1319 > This paragraph is never omitted, too (for extension)
1305 > '''
1320 > '''
1306 >
1321 >
1307 > from mercurial import help, commands
1322 > from mercurial import help, commands
1308 > testtopic = """This paragraph is never omitted (for topic).
1323 > testtopic = """This paragraph is never omitted (for topic).
1309 >
1324 >
1310 > .. container:: verbose
1325 > .. container:: verbose
1311 >
1326 >
1312 > This paragraph is omitted,
1327 > This paragraph is omitted,
1313 > if :hg:\`help\` is invoked without \`\`-v\`\` (for topic)
1328 > if :hg:\`help\` is invoked without \`\`-v\`\` (for topic)
1314 >
1329 >
1315 > This paragraph is never omitted, too (for topic)
1330 > This paragraph is never omitted, too (for topic)
1316 > """
1331 > """
1317 > def extsetup(ui):
1332 > def extsetup(ui):
1318 > help.helptable.append((["topic-containing-verbose"],
1333 > help.helptable.append((["topic-containing-verbose"],
1319 > "This is the topic to test omit indicating.",
1334 > "This is the topic to test omit indicating.",
1320 > lambda ui: testtopic))
1335 > lambda ui: testtopic))
1321 > EOF
1336 > EOF
1322 $ echo '[extensions]' >> $HGRCPATH
1337 $ echo '[extensions]' >> $HGRCPATH
1323 $ echo "addverboseitems = `pwd`/addverboseitems.py" >> $HGRCPATH
1338 $ echo "addverboseitems = `pwd`/addverboseitems.py" >> $HGRCPATH
1324 $ hg help addverboseitems
1339 $ hg help addverboseitems
1325 addverboseitems extension - extension to test omit indicating.
1340 addverboseitems extension - extension to test omit indicating.
1326
1341
1327 This paragraph is never omitted (for extension)
1342 This paragraph is never omitted (for extension)
1328
1343
1329 This paragraph is never omitted, too (for extension)
1344 This paragraph is never omitted, too (for extension)
1330
1345
1331 (some details hidden, use --verbose to show complete help)
1346 (some details hidden, use --verbose to show complete help)
1332
1347
1333 no commands defined
1348 no commands defined
1334 $ hg help -v addverboseitems
1349 $ hg help -v addverboseitems
1335 addverboseitems extension - extension to test omit indicating.
1350 addverboseitems extension - extension to test omit indicating.
1336
1351
1337 This paragraph is never omitted (for extension)
1352 This paragraph is never omitted (for extension)
1338
1353
1339 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1354 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1340 extension)
1355 extension)
1341
1356
1342 This paragraph is never omitted, too (for extension)
1357 This paragraph is never omitted, too (for extension)
1343
1358
1344 no commands defined
1359 no commands defined
1345 $ hg help topic-containing-verbose
1360 $ hg help topic-containing-verbose
1346 This is the topic to test omit indicating.
1361 This is the topic to test omit indicating.
1347 """"""""""""""""""""""""""""""""""""""""""
1362 """"""""""""""""""""""""""""""""""""""""""
1348
1363
1349 This paragraph is never omitted (for topic).
1364 This paragraph is never omitted (for topic).
1350
1365
1351 This paragraph is never omitted, too (for topic)
1366 This paragraph is never omitted, too (for topic)
1352
1367
1353 (some details hidden, use --verbose to show complete help)
1368 (some details hidden, use --verbose to show complete help)
1354 $ hg help -v topic-containing-verbose
1369 $ hg help -v topic-containing-verbose
1355 This is the topic to test omit indicating.
1370 This is the topic to test omit indicating.
1356 """"""""""""""""""""""""""""""""""""""""""
1371 """"""""""""""""""""""""""""""""""""""""""
1357
1372
1358 This paragraph is never omitted (for topic).
1373 This paragraph is never omitted (for topic).
1359
1374
1360 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1375 This paragraph is omitted, if "hg help" is invoked without "-v" (for
1361 topic)
1376 topic)
1362
1377
1363 This paragraph is never omitted, too (for topic)
1378 This paragraph is never omitted, too (for topic)
1364
1379
1365 Test section lookup
1380 Test section lookup
1366
1381
1367 $ hg help revset.merge
1382 $ hg help revset.merge
1368 "merge()"
1383 "merge()"
1369 Changeset is a merge changeset.
1384 Changeset is a merge changeset.
1370
1385
1371 $ hg help glossary.dag
1386 $ hg help glossary.dag
1372 DAG
1387 DAG
1373 The repository of changesets of a distributed version control system
1388 The repository of changesets of a distributed version control system
1374 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1389 (DVCS) can be described as a directed acyclic graph (DAG), consisting
1375 of nodes and edges, where nodes correspond to changesets and edges
1390 of nodes and edges, where nodes correspond to changesets and edges
1376 imply a parent -> child relation. This graph can be visualized by
1391 imply a parent -> child relation. This graph can be visualized by
1377 graphical tools such as "hg log --graph". In Mercurial, the DAG is
1392 graphical tools such as "hg log --graph". In Mercurial, the DAG is
1378 limited by the requirement for children to have at most two parents.
1393 limited by the requirement for children to have at most two parents.
1379
1394
1380
1395
1381 $ hg help hgrc.paths
1396 $ hg help hgrc.paths
1382 "paths"
1397 "paths"
1383 -------
1398 -------
1384
1399
1385 Assigns symbolic names and behavior to repositories.
1400 Assigns symbolic names and behavior to repositories.
1386
1401
1387 Options are symbolic names defining the URL or directory that is the
1402 Options are symbolic names defining the URL or directory that is the
1388 location of the repository. Example:
1403 location of the repository. Example:
1389
1404
1390 [paths]
1405 [paths]
1391 my_server = https://example.com/my_repo
1406 my_server = https://example.com/my_repo
1392 local_path = /home/me/repo
1407 local_path = /home/me/repo
1393
1408
1394 These symbolic names can be used from the command line. To pull from
1409 These symbolic names can be used from the command line. To pull from
1395 "my_server": "hg pull my_server". To push to "local_path": "hg push
1410 "my_server": "hg pull my_server". To push to "local_path": "hg push
1396 local_path".
1411 local_path".
1397
1412
1398 Options containing colons (":") denote sub-options that can influence
1413 Options containing colons (":") denote sub-options that can influence
1399 behavior for that specific path. Example:
1414 behavior for that specific path. Example:
1400
1415
1401 [paths]
1416 [paths]
1402 my_server = https://example.com/my_path
1417 my_server = https://example.com/my_path
1403 my_server:pushurl = ssh://example.com/my_path
1418 my_server:pushurl = ssh://example.com/my_path
1404
1419
1405 The following sub-options can be defined:
1420 The following sub-options can be defined:
1406
1421
1407 "pushurl"
1422 "pushurl"
1408 The URL to use for push operations. If not defined, the location
1423 The URL to use for push operations. If not defined, the location
1409 defined by the path's main entry is used.
1424 defined by the path's main entry is used.
1410
1425
1411 The following special named paths exist:
1426 The following special named paths exist:
1412
1427
1413 "default"
1428 "default"
1414 The URL or directory to use when no source or remote is specified.
1429 The URL or directory to use when no source or remote is specified.
1415
1430
1416 "hg clone" will automatically define this path to the location the
1431 "hg clone" will automatically define this path to the location the
1417 repository was cloned from.
1432 repository was cloned from.
1418
1433
1419 "default-push"
1434 "default-push"
1420 (deprecated) The URL or directory for the default "hg push" location.
1435 (deprecated) The URL or directory for the default "hg push" location.
1421 "default:pushurl" should be used instead.
1436 "default:pushurl" should be used instead.
1422
1437
1423 $ hg help glossary.mcguffin
1438 $ hg help glossary.mcguffin
1424 abort: help section not found
1439 abort: help section not found
1425 [255]
1440 [255]
1426
1441
1427 $ hg help glossary.mc.guffin
1442 $ hg help glossary.mc.guffin
1428 abort: help section not found
1443 abort: help section not found
1429 [255]
1444 [255]
1430
1445
1431 $ hg help template.files
1446 $ hg help template.files
1432 files List of strings. All files modified, added, or removed by
1447 files List of strings. All files modified, added, or removed by
1433 this changeset.
1448 this changeset.
1434
1449
1435 Test dynamic list of merge tools only shows up once
1450 Test dynamic list of merge tools only shows up once
1436 $ hg help merge-tools
1451 $ hg help merge-tools
1437 Merge Tools
1452 Merge Tools
1438 """""""""""
1453 """""""""""
1439
1454
1440 To merge files Mercurial uses merge tools.
1455 To merge files Mercurial uses merge tools.
1441
1456
1442 A merge tool combines two different versions of a file into a merged file.
1457 A merge tool combines two different versions of a file into a merged file.
1443 Merge tools are given the two files and the greatest common ancestor of
1458 Merge tools are given the two files and the greatest common ancestor of
1444 the two file versions, so they can determine the changes made on both
1459 the two file versions, so they can determine the changes made on both
1445 branches.
1460 branches.
1446
1461
1447 Merge tools are used both for "hg resolve", "hg merge", "hg update", "hg
1462 Merge tools are used both for "hg resolve", "hg merge", "hg update", "hg
1448 backout" and in several extensions.
1463 backout" and in several extensions.
1449
1464
1450 Usually, the merge tool tries to automatically reconcile the files by
1465 Usually, the merge tool tries to automatically reconcile the files by
1451 combining all non-overlapping changes that occurred separately in the two
1466 combining all non-overlapping changes that occurred separately in the two
1452 different evolutions of the same initial base file. Furthermore, some
1467 different evolutions of the same initial base file. Furthermore, some
1453 interactive merge programs make it easier to manually resolve conflicting
1468 interactive merge programs make it easier to manually resolve conflicting
1454 merges, either in a graphical way, or by inserting some conflict markers.
1469 merges, either in a graphical way, or by inserting some conflict markers.
1455 Mercurial does not include any interactive merge programs but relies on
1470 Mercurial does not include any interactive merge programs but relies on
1456 external tools for that.
1471 external tools for that.
1457
1472
1458 Available merge tools
1473 Available merge tools
1459 =====================
1474 =====================
1460
1475
1461 External merge tools and their properties are configured in the merge-
1476 External merge tools and their properties are configured in the merge-
1462 tools configuration section - see hgrc(5) - but they can often just be
1477 tools configuration section - see hgrc(5) - but they can often just be
1463 named by their executable.
1478 named by their executable.
1464
1479
1465 A merge tool is generally usable if its executable can be found on the
1480 A merge tool is generally usable if its executable can be found on the
1466 system and if it can handle the merge. The executable is found if it is an
1481 system and if it can handle the merge. The executable is found if it is an
1467 absolute or relative executable path or the name of an application in the
1482 absolute or relative executable path or the name of an application in the
1468 executable search path. The tool is assumed to be able to handle the merge
1483 executable search path. The tool is assumed to be able to handle the merge
1469 if it can handle symlinks if the file is a symlink, if it can handle
1484 if it can handle symlinks if the file is a symlink, if it can handle
1470 binary files if the file is binary, and if a GUI is available if the tool
1485 binary files if the file is binary, and if a GUI is available if the tool
1471 requires a GUI.
1486 requires a GUI.
1472
1487
1473 There are some internal merge tools which can be used. The internal merge
1488 There are some internal merge tools which can be used. The internal merge
1474 tools are:
1489 tools are:
1475
1490
1476 ":dump"
1491 ":dump"
1477 Creates three versions of the files to merge, containing the contents of
1492 Creates three versions of the files to merge, containing the contents of
1478 local, other and base. These files can then be used to perform a merge
1493 local, other and base. These files can then be used to perform a merge
1479 manually. If the file to be merged is named "a.txt", these files will
1494 manually. If the file to be merged is named "a.txt", these files will
1480 accordingly be named "a.txt.local", "a.txt.other" and "a.txt.base" and
1495 accordingly be named "a.txt.local", "a.txt.other" and "a.txt.base" and
1481 they will be placed in the same directory as "a.txt".
1496 they will be placed in the same directory as "a.txt".
1482
1497
1483 ":fail"
1498 ":fail"
1484 Rather than attempting to merge files that were modified on both
1499 Rather than attempting to merge files that were modified on both
1485 branches, it marks them as unresolved. The resolve command must be used
1500 branches, it marks them as unresolved. The resolve command must be used
1486 to resolve these conflicts.
1501 to resolve these conflicts.
1487
1502
1488 ":local"
1503 ":local"
1489 Uses the local version of files as the merged version.
1504 Uses the local version of files as the merged version.
1490
1505
1491 ":merge"
1506 ":merge"
1492 Uses the internal non-interactive simple merge algorithm for merging
1507 Uses the internal non-interactive simple merge algorithm for merging
1493 files. It will fail if there are any conflicts and leave markers in the
1508 files. It will fail if there are any conflicts and leave markers in the
1494 partially merged file. Markers will have two sections, one for each side
1509 partially merged file. Markers will have two sections, one for each side
1495 of merge.
1510 of merge.
1496
1511
1497 ":merge-local"
1512 ":merge-local"
1498 Like :merge, but resolve all conflicts non-interactively in favor of the
1513 Like :merge, but resolve all conflicts non-interactively in favor of the
1499 local changes.
1514 local changes.
1500
1515
1501 ":merge-other"
1516 ":merge-other"
1502 Like :merge, but resolve all conflicts non-interactively in favor of the
1517 Like :merge, but resolve all conflicts non-interactively in favor of the
1503 other changes.
1518 other changes.
1504
1519
1505 ":merge3"
1520 ":merge3"
1506 Uses the internal non-interactive simple merge algorithm for merging
1521 Uses the internal non-interactive simple merge algorithm for merging
1507 files. It will fail if there are any conflicts and leave markers in the
1522 files. It will fail if there are any conflicts and leave markers in the
1508 partially merged file. Marker will have three sections, one from each
1523 partially merged file. Marker will have three sections, one from each
1509 side of the merge and one for the base content.
1524 side of the merge and one for the base content.
1510
1525
1511 ":other"
1526 ":other"
1512 Uses the other version of files as the merged version.
1527 Uses the other version of files as the merged version.
1513
1528
1514 ":prompt"
1529 ":prompt"
1515 Asks the user which of the local or the other version to keep as the
1530 Asks the user which of the local or the other version to keep as the
1516 merged version.
1531 merged version.
1517
1532
1518 ":tagmerge"
1533 ":tagmerge"
1519 Uses the internal tag merge algorithm (experimental).
1534 Uses the internal tag merge algorithm (experimental).
1520
1535
1521 ":union"
1536 ":union"
1522 Uses the internal non-interactive simple merge algorithm for merging
1537 Uses the internal non-interactive simple merge algorithm for merging
1523 files. It will use both left and right sides for conflict regions. No
1538 files. It will use both left and right sides for conflict regions. No
1524 markers are inserted.
1539 markers are inserted.
1525
1540
1526 Internal tools are always available and do not require a GUI but will by
1541 Internal tools are always available and do not require a GUI but will by
1527 default not handle symlinks or binary files.
1542 default not handle symlinks or binary files.
1528
1543
1529 Choosing a merge tool
1544 Choosing a merge tool
1530 =====================
1545 =====================
1531
1546
1532 Mercurial uses these rules when deciding which merge tool to use:
1547 Mercurial uses these rules when deciding which merge tool to use:
1533
1548
1534 1. If a tool has been specified with the --tool option to merge or
1549 1. If a tool has been specified with the --tool option to merge or
1535 resolve, it is used. If it is the name of a tool in the merge-tools
1550 resolve, it is used. If it is the name of a tool in the merge-tools
1536 configuration, its configuration is used. Otherwise the specified tool
1551 configuration, its configuration is used. Otherwise the specified tool
1537 must be executable by the shell.
1552 must be executable by the shell.
1538 2. If the "HGMERGE" environment variable is present, its value is used and
1553 2. If the "HGMERGE" environment variable is present, its value is used and
1539 must be executable by the shell.
1554 must be executable by the shell.
1540 3. If the filename of the file to be merged matches any of the patterns in
1555 3. If the filename of the file to be merged matches any of the patterns in
1541 the merge-patterns configuration section, the first usable merge tool
1556 the merge-patterns configuration section, the first usable merge tool
1542 corresponding to a matching pattern is used. Here, binary capabilities
1557 corresponding to a matching pattern is used. Here, binary capabilities
1543 of the merge tool are not considered.
1558 of the merge tool are not considered.
1544 4. If ui.merge is set it will be considered next. If the value is not the
1559 4. If ui.merge is set it will be considered next. If the value is not the
1545 name of a configured tool, the specified value is used and must be
1560 name of a configured tool, the specified value is used and must be
1546 executable by the shell. Otherwise the named tool is used if it is
1561 executable by the shell. Otherwise the named tool is used if it is
1547 usable.
1562 usable.
1548 5. If any usable merge tools are present in the merge-tools configuration
1563 5. If any usable merge tools are present in the merge-tools configuration
1549 section, the one with the highest priority is used.
1564 section, the one with the highest priority is used.
1550 6. If a program named "hgmerge" can be found on the system, it is used -
1565 6. If a program named "hgmerge" can be found on the system, it is used -
1551 but it will by default not be used for symlinks and binary files.
1566 but it will by default not be used for symlinks and binary files.
1552 7. If the file to be merged is not binary and is not a symlink, then
1567 7. If the file to be merged is not binary and is not a symlink, then
1553 internal ":merge" is used.
1568 internal ":merge" is used.
1554 8. The merge of the file fails and must be resolved before commit.
1569 8. The merge of the file fails and must be resolved before commit.
1555
1570
1556 Note:
1571 Note:
1557 After selecting a merge program, Mercurial will by default attempt to
1572 After selecting a merge program, Mercurial will by default attempt to
1558 merge the files using a simple merge algorithm first. Only if it
1573 merge the files using a simple merge algorithm first. Only if it
1559 doesn't succeed because of conflicting changes Mercurial will actually
1574 doesn't succeed because of conflicting changes Mercurial will actually
1560 execute the merge program. Whether to use the simple merge algorithm
1575 execute the merge program. Whether to use the simple merge algorithm
1561 first can be controlled by the premerge setting of the merge tool.
1576 first can be controlled by the premerge setting of the merge tool.
1562 Premerge is enabled by default unless the file is binary or a symlink.
1577 Premerge is enabled by default unless the file is binary or a symlink.
1563
1578
1564 See the merge-tools and ui sections of hgrc(5) for details on the
1579 See the merge-tools and ui sections of hgrc(5) for details on the
1565 configuration of merge tools.
1580 configuration of merge tools.
1566
1581
1567 Test usage of section marks in help documents
1582 Test usage of section marks in help documents
1568
1583
1569 $ cd "$TESTDIR"/../doc
1584 $ cd "$TESTDIR"/../doc
1570 $ python check-seclevel.py
1585 $ python check-seclevel.py
1571 $ cd $TESTTMP
1586 $ cd $TESTTMP
1572
1587
1573 #if serve
1588 #if serve
1574
1589
1575 Test the help pages in hgweb.
1590 Test the help pages in hgweb.
1576
1591
1577 Dish up an empty repo; serve it cold.
1592 Dish up an empty repo; serve it cold.
1578
1593
1579 $ hg init "$TESTTMP/test"
1594 $ hg init "$TESTTMP/test"
1580 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1595 $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid
1581 $ cat hg.pid >> $DAEMON_PIDS
1596 $ cat hg.pid >> $DAEMON_PIDS
1582
1597
1583 $ get-with-headers.py 127.0.0.1:$HGPORT "help"
1598 $ get-with-headers.py 127.0.0.1:$HGPORT "help"
1584 200 Script output follows
1599 200 Script output follows
1585
1600
1586 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1601 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1587 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1602 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
1588 <head>
1603 <head>
1589 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1604 <link rel="icon" href="/static/hgicon.png" type="image/png" />
1590 <meta name="robots" content="index, nofollow" />
1605 <meta name="robots" content="index, nofollow" />
1591 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1606 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
1592 <script type="text/javascript" src="/static/mercurial.js"></script>
1607 <script type="text/javascript" src="/static/mercurial.js"></script>
1593
1608
1594 <title>Help: Index</title>
1609 <title>Help: Index</title>
1595 </head>
1610 </head>
1596 <body>
1611 <body>
1597
1612
1598 <div class="container">
1613 <div class="container">
1599 <div class="menu">
1614 <div class="menu">
1600 <div class="logo">
1615 <div class="logo">
1601 <a href="https://mercurial-scm.org/">
1616 <a href="https://mercurial-scm.org/">
1602 <img src="/static/hglogo.png" alt="mercurial" /></a>
1617 <img src="/static/hglogo.png" alt="mercurial" /></a>
1603 </div>
1618 </div>
1604 <ul>
1619 <ul>
1605 <li><a href="/shortlog">log</a></li>
1620 <li><a href="/shortlog">log</a></li>
1606 <li><a href="/graph">graph</a></li>
1621 <li><a href="/graph">graph</a></li>
1607 <li><a href="/tags">tags</a></li>
1622 <li><a href="/tags">tags</a></li>
1608 <li><a href="/bookmarks">bookmarks</a></li>
1623 <li><a href="/bookmarks">bookmarks</a></li>
1609 <li><a href="/branches">branches</a></li>
1624 <li><a href="/branches">branches</a></li>
1610 </ul>
1625 </ul>
1611 <ul>
1626 <ul>
1612 <li class="active">help</li>
1627 <li class="active">help</li>
1613 </ul>
1628 </ul>
1614 </div>
1629 </div>
1615
1630
1616 <div class="main">
1631 <div class="main">
1617 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1632 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
1618 <form class="search" action="/log">
1633 <form class="search" action="/log">
1619
1634
1620 <p><input name="rev" id="search1" type="text" size="30" /></p>
1635 <p><input name="rev" id="search1" type="text" size="30" /></p>
1621 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1636 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
1622 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1637 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
1623 </form>
1638 </form>
1624 <table class="bigtable">
1639 <table class="bigtable">
1625 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1640 <tr><td colspan="2"><h2><a name="main" href="#topics">Topics</a></h2></td></tr>
1626
1641
1627 <tr><td>
1642 <tr><td>
1628 <a href="/help/config">
1643 <a href="/help/config">
1629 config
1644 config
1630 </a>
1645 </a>
1631 </td><td>
1646 </td><td>
1632 Configuration Files
1647 Configuration Files
1633 </td></tr>
1648 </td></tr>
1634 <tr><td>
1649 <tr><td>
1635 <a href="/help/dates">
1650 <a href="/help/dates">
1636 dates
1651 dates
1637 </a>
1652 </a>
1638 </td><td>
1653 </td><td>
1639 Date Formats
1654 Date Formats
1640 </td></tr>
1655 </td></tr>
1641 <tr><td>
1656 <tr><td>
1642 <a href="/help/diffs">
1657 <a href="/help/diffs">
1643 diffs
1658 diffs
1644 </a>
1659 </a>
1645 </td><td>
1660 </td><td>
1646 Diff Formats
1661 Diff Formats
1647 </td></tr>
1662 </td></tr>
1648 <tr><td>
1663 <tr><td>
1649 <a href="/help/environment">
1664 <a href="/help/environment">
1650 environment
1665 environment
1651 </a>
1666 </a>
1652 </td><td>
1667 </td><td>
1653 Environment Variables
1668 Environment Variables
1654 </td></tr>
1669 </td></tr>
1655 <tr><td>
1670 <tr><td>
1656 <a href="/help/extensions">
1671 <a href="/help/extensions">
1657 extensions
1672 extensions
1658 </a>
1673 </a>
1659 </td><td>
1674 </td><td>
1660 Using Additional Features
1675 Using Additional Features
1661 </td></tr>
1676 </td></tr>
1662 <tr><td>
1677 <tr><td>
1663 <a href="/help/filesets">
1678 <a href="/help/filesets">
1664 filesets
1679 filesets
1665 </a>
1680 </a>
1666 </td><td>
1681 </td><td>
1667 Specifying File Sets
1682 Specifying File Sets
1668 </td></tr>
1683 </td></tr>
1669 <tr><td>
1684 <tr><td>
1670 <a href="/help/glossary">
1685 <a href="/help/glossary">
1671 glossary
1686 glossary
1672 </a>
1687 </a>
1673 </td><td>
1688 </td><td>
1674 Glossary
1689 Glossary
1675 </td></tr>
1690 </td></tr>
1676 <tr><td>
1691 <tr><td>
1677 <a href="/help/hgignore">
1692 <a href="/help/hgignore">
1678 hgignore
1693 hgignore
1679 </a>
1694 </a>
1680 </td><td>
1695 </td><td>
1681 Syntax for Mercurial Ignore Files
1696 Syntax for Mercurial Ignore Files
1682 </td></tr>
1697 </td></tr>
1683 <tr><td>
1698 <tr><td>
1684 <a href="/help/hgweb">
1699 <a href="/help/hgweb">
1685 hgweb
1700 hgweb
1686 </a>
1701 </a>
1687 </td><td>
1702 </td><td>
1688 Configuring hgweb
1703 Configuring hgweb
1689 </td></tr>
1704 </td></tr>
1690 <tr><td>
1705 <tr><td>
1691 <a href="/help/internals">
1706 <a href="/help/internals">
1692 internals
1707 internals
1693 </a>
1708 </a>
1694 </td><td>
1709 </td><td>
1695 Technical implementation topics
1710 Technical implementation topics
1696 </td></tr>
1711 </td></tr>
1697 <tr><td>
1712 <tr><td>
1698 <a href="/help/merge-tools">
1713 <a href="/help/merge-tools">
1699 merge-tools
1714 merge-tools
1700 </a>
1715 </a>
1701 </td><td>
1716 </td><td>
1702 Merge Tools
1717 Merge Tools
1703 </td></tr>
1718 </td></tr>
1704 <tr><td>
1719 <tr><td>
1705 <a href="/help/multirevs">
1720 <a href="/help/multirevs">
1706 multirevs
1721 multirevs
1707 </a>
1722 </a>
1708 </td><td>
1723 </td><td>
1709 Specifying Multiple Revisions
1724 Specifying Multiple Revisions
1710 </td></tr>
1725 </td></tr>
1711 <tr><td>
1726 <tr><td>
1712 <a href="/help/patterns">
1727 <a href="/help/patterns">
1713 patterns
1728 patterns
1714 </a>
1729 </a>
1715 </td><td>
1730 </td><td>
1716 File Name Patterns
1731 File Name Patterns
1717 </td></tr>
1732 </td></tr>
1718 <tr><td>
1733 <tr><td>
1719 <a href="/help/phases">
1734 <a href="/help/phases">
1720 phases
1735 phases
1721 </a>
1736 </a>
1722 </td><td>
1737 </td><td>
1723 Working with Phases
1738 Working with Phases
1724 </td></tr>
1739 </td></tr>
1725 <tr><td>
1740 <tr><td>
1726 <a href="/help/revisions">
1741 <a href="/help/revisions">
1727 revisions
1742 revisions
1728 </a>
1743 </a>
1729 </td><td>
1744 </td><td>
1730 Specifying Single Revisions
1745 Specifying Single Revisions
1731 </td></tr>
1746 </td></tr>
1732 <tr><td>
1747 <tr><td>
1733 <a href="/help/revsets">
1748 <a href="/help/revsets">
1734 revsets
1749 revsets
1735 </a>
1750 </a>
1736 </td><td>
1751 </td><td>
1737 Specifying Revision Sets
1752 Specifying Revision Sets
1738 </td></tr>
1753 </td></tr>
1739 <tr><td>
1754 <tr><td>
1740 <a href="/help/scripting">
1755 <a href="/help/scripting">
1741 scripting
1756 scripting
1742 </a>
1757 </a>
1743 </td><td>
1758 </td><td>
1744 Using Mercurial from scripts and automation
1759 Using Mercurial from scripts and automation
1745 </td></tr>
1760 </td></tr>
1746 <tr><td>
1761 <tr><td>
1747 <a href="/help/subrepos">
1762 <a href="/help/subrepos">
1748 subrepos
1763 subrepos
1749 </a>
1764 </a>
1750 </td><td>
1765 </td><td>
1751 Subrepositories
1766 Subrepositories
1752 </td></tr>
1767 </td></tr>
1753 <tr><td>
1768 <tr><td>
1754 <a href="/help/templating">
1769 <a href="/help/templating">
1755 templating
1770 templating
1756 </a>
1771 </a>
1757 </td><td>
1772 </td><td>
1758 Template Usage
1773 Template Usage
1759 </td></tr>
1774 </td></tr>
1760 <tr><td>
1775 <tr><td>
1761 <a href="/help/urls">
1776 <a href="/help/urls">
1762 urls
1777 urls
1763 </a>
1778 </a>
1764 </td><td>
1779 </td><td>
1765 URL Paths
1780 URL Paths
1766 </td></tr>
1781 </td></tr>
1767 <tr><td>
1782 <tr><td>
1768 <a href="/help/topic-containing-verbose">
1783 <a href="/help/topic-containing-verbose">
1769 topic-containing-verbose
1784 topic-containing-verbose
1770 </a>
1785 </a>
1771 </td><td>
1786 </td><td>
1772 This is the topic to test omit indicating.
1787 This is the topic to test omit indicating.
1773 </td></tr>
1788 </td></tr>
1774
1789
1775 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1790 <tr><td colspan="2"><h2><a name="main" href="#main">Main Commands</a></h2></td></tr>
1776
1791
1777 <tr><td>
1792 <tr><td>
1778 <a href="/help/add">
1793 <a href="/help/add">
1779 add
1794 add
1780 </a>
1795 </a>
1781 </td><td>
1796 </td><td>
1782 add the specified files on the next commit
1797 add the specified files on the next commit
1783 </td></tr>
1798 </td></tr>
1784 <tr><td>
1799 <tr><td>
1785 <a href="/help/annotate">
1800 <a href="/help/annotate">
1786 annotate
1801 annotate
1787 </a>
1802 </a>
1788 </td><td>
1803 </td><td>
1789 show changeset information by line for each file
1804 show changeset information by line for each file
1790 </td></tr>
1805 </td></tr>
1791 <tr><td>
1806 <tr><td>
1792 <a href="/help/clone">
1807 <a href="/help/clone">
1793 clone
1808 clone
1794 </a>
1809 </a>
1795 </td><td>
1810 </td><td>
1796 make a copy of an existing repository
1811 make a copy of an existing repository
1797 </td></tr>
1812 </td></tr>
1798 <tr><td>
1813 <tr><td>
1799 <a href="/help/commit">
1814 <a href="/help/commit">
1800 commit
1815 commit
1801 </a>
1816 </a>
1802 </td><td>
1817 </td><td>
1803 commit the specified files or all outstanding changes
1818 commit the specified files or all outstanding changes
1804 </td></tr>
1819 </td></tr>
1805 <tr><td>
1820 <tr><td>
1806 <a href="/help/diff">
1821 <a href="/help/diff">
1807 diff
1822 diff
1808 </a>
1823 </a>
1809 </td><td>
1824 </td><td>
1810 diff repository (or selected files)
1825 diff repository (or selected files)
1811 </td></tr>
1826 </td></tr>
1812 <tr><td>
1827 <tr><td>
1813 <a href="/help/export">
1828 <a href="/help/export">
1814 export
1829 export
1815 </a>
1830 </a>
1816 </td><td>
1831 </td><td>
1817 dump the header and diffs for one or more changesets
1832 dump the header and diffs for one or more changesets
1818 </td></tr>
1833 </td></tr>
1819 <tr><td>
1834 <tr><td>
1820 <a href="/help/forget">
1835 <a href="/help/forget">
1821 forget
1836 forget
1822 </a>
1837 </a>
1823 </td><td>
1838 </td><td>
1824 forget the specified files on the next commit
1839 forget the specified files on the next commit
1825 </td></tr>
1840 </td></tr>
1826 <tr><td>
1841 <tr><td>
1827 <a href="/help/init">
1842 <a href="/help/init">
1828 init
1843 init
1829 </a>
1844 </a>
1830 </td><td>
1845 </td><td>
1831 create a new repository in the given directory
1846 create a new repository in the given directory
1832 </td></tr>
1847 </td></tr>
1833 <tr><td>
1848 <tr><td>
1834 <a href="/help/log">
1849 <a href="/help/log">
1835 log
1850 log
1836 </a>
1851 </a>
1837 </td><td>
1852 </td><td>
1838 show revision history of entire repository or files
1853 show revision history of entire repository or files
1839 </td></tr>
1854 </td></tr>
1840 <tr><td>
1855 <tr><td>
1841 <a href="/help/merge">
1856 <a href="/help/merge">
1842 merge
1857 merge
1843 </a>
1858 </a>
1844 </td><td>
1859 </td><td>
1845 merge another revision into working directory
1860 merge another revision into working directory
1846 </td></tr>
1861 </td></tr>
1847 <tr><td>
1862 <tr><td>
1848 <a href="/help/pull">
1863 <a href="/help/pull">
1849 pull
1864 pull
1850 </a>
1865 </a>
1851 </td><td>
1866 </td><td>
1852 pull changes from the specified source
1867 pull changes from the specified source
1853 </td></tr>
1868 </td></tr>
1854 <tr><td>
1869 <tr><td>
1855 <a href="/help/push">
1870 <a href="/help/push">
1856 push
1871 push
1857 </a>
1872 </a>
1858 </td><td>
1873 </td><td>
1859 push changes to the specified destination
1874 push changes to the specified destination
1860 </td></tr>
1875 </td></tr>
1861 <tr><td>
1876 <tr><td>
1862 <a href="/help/remove">
1877 <a href="/help/remove">
1863 remove
1878 remove
1864 </a>
1879 </a>
1865 </td><td>
1880 </td><td>
1866 remove the specified files on the next commit
1881 remove the specified files on the next commit
1867 </td></tr>
1882 </td></tr>
1868 <tr><td>
1883 <tr><td>
1869 <a href="/help/serve">
1884 <a href="/help/serve">
1870 serve
1885 serve
1871 </a>
1886 </a>
1872 </td><td>
1887 </td><td>
1873 start stand-alone webserver
1888 start stand-alone webserver
1874 </td></tr>
1889 </td></tr>
1875 <tr><td>
1890 <tr><td>
1876 <a href="/help/status">
1891 <a href="/help/status">
1877 status
1892 status
1878 </a>
1893 </a>
1879 </td><td>
1894 </td><td>
1880 show changed files in the working directory
1895 show changed files in the working directory
1881 </td></tr>
1896 </td></tr>
1882 <tr><td>
1897 <tr><td>
1883 <a href="/help/summary">
1898 <a href="/help/summary">
1884 summary
1899 summary
1885 </a>
1900 </a>
1886 </td><td>
1901 </td><td>
1887 summarize working directory state
1902 summarize working directory state
1888 </td></tr>
1903 </td></tr>
1889 <tr><td>
1904 <tr><td>
1890 <a href="/help/update">
1905 <a href="/help/update">
1891 update
1906 update
1892 </a>
1907 </a>
1893 </td><td>
1908 </td><td>
1894 update working directory (or switch revisions)
1909 update working directory (or switch revisions)
1895 </td></tr>
1910 </td></tr>
1896
1911
1897 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1912 <tr><td colspan="2"><h2><a name="other" href="#other">Other Commands</a></h2></td></tr>
1898
1913
1899 <tr><td>
1914 <tr><td>
1900 <a href="/help/addremove">
1915 <a href="/help/addremove">
1901 addremove
1916 addremove
1902 </a>
1917 </a>
1903 </td><td>
1918 </td><td>
1904 add all new files, delete all missing files
1919 add all new files, delete all missing files
1905 </td></tr>
1920 </td></tr>
1906 <tr><td>
1921 <tr><td>
1907 <a href="/help/archive">
1922 <a href="/help/archive">
1908 archive
1923 archive
1909 </a>
1924 </a>
1910 </td><td>
1925 </td><td>
1911 create an unversioned archive of a repository revision
1926 create an unversioned archive of a repository revision
1912 </td></tr>
1927 </td></tr>
1913 <tr><td>
1928 <tr><td>
1914 <a href="/help/backout">
1929 <a href="/help/backout">
1915 backout
1930 backout
1916 </a>
1931 </a>
1917 </td><td>
1932 </td><td>
1918 reverse effect of earlier changeset
1933 reverse effect of earlier changeset
1919 </td></tr>
1934 </td></tr>
1920 <tr><td>
1935 <tr><td>
1921 <a href="/help/bisect">
1936 <a href="/help/bisect">
1922 bisect
1937 bisect
1923 </a>
1938 </a>
1924 </td><td>
1939 </td><td>
1925 subdivision search of changesets
1940 subdivision search of changesets
1926 </td></tr>
1941 </td></tr>
1927 <tr><td>
1942 <tr><td>
1928 <a href="/help/bookmarks">
1943 <a href="/help/bookmarks">
1929 bookmarks
1944 bookmarks
1930 </a>
1945 </a>
1931 </td><td>
1946 </td><td>
1932 create a new bookmark or list existing bookmarks
1947 create a new bookmark or list existing bookmarks
1933 </td></tr>
1948 </td></tr>
1934 <tr><td>
1949 <tr><td>
1935 <a href="/help/branch">
1950 <a href="/help/branch">
1936 branch
1951 branch
1937 </a>
1952 </a>
1938 </td><td>
1953 </td><td>
1939 set or show the current branch name
1954 set or show the current branch name
1940 </td></tr>
1955 </td></tr>
1941 <tr><td>
1956 <tr><td>
1942 <a href="/help/branches">
1957 <a href="/help/branches">
1943 branches
1958 branches
1944 </a>
1959 </a>
1945 </td><td>
1960 </td><td>
1946 list repository named branches
1961 list repository named branches
1947 </td></tr>
1962 </td></tr>
1948 <tr><td>
1963 <tr><td>
1949 <a href="/help/bundle">
1964 <a href="/help/bundle">
1950 bundle
1965 bundle
1951 </a>
1966 </a>
1952 </td><td>
1967 </td><td>
1953 create a changegroup file
1968 create a changegroup file
1954 </td></tr>
1969 </td></tr>
1955 <tr><td>
1970 <tr><td>
1956 <a href="/help/cat">
1971 <a href="/help/cat">
1957 cat
1972 cat
1958 </a>
1973 </a>
1959 </td><td>
1974 </td><td>
1960 output the current or given revision of files
1975 output the current or given revision of files
1961 </td></tr>
1976 </td></tr>
1962 <tr><td>
1977 <tr><td>
1963 <a href="/help/config">
1978 <a href="/help/config">
1964 config
1979 config
1965 </a>
1980 </a>
1966 </td><td>
1981 </td><td>
1967 show combined config settings from all hgrc files
1982 show combined config settings from all hgrc files
1968 </td></tr>
1983 </td></tr>
1969 <tr><td>
1984 <tr><td>
1970 <a href="/help/copy">
1985 <a href="/help/copy">
1971 copy
1986 copy
1972 </a>
1987 </a>
1973 </td><td>
1988 </td><td>
1974 mark files as copied for the next commit
1989 mark files as copied for the next commit
1975 </td></tr>
1990 </td></tr>
1976 <tr><td>
1991 <tr><td>
1977 <a href="/help/files">
1992 <a href="/help/files">
1978 files
1993 files
1979 </a>
1994 </a>
1980 </td><td>
1995 </td><td>
1981 list tracked files
1996 list tracked files
1982 </td></tr>
1997 </td></tr>
1983 <tr><td>
1998 <tr><td>
1984 <a href="/help/graft">
1999 <a href="/help/graft">
1985 graft
2000 graft
1986 </a>
2001 </a>
1987 </td><td>
2002 </td><td>
1988 copy changes from other branches onto the current branch
2003 copy changes from other branches onto the current branch
1989 </td></tr>
2004 </td></tr>
1990 <tr><td>
2005 <tr><td>
1991 <a href="/help/grep">
2006 <a href="/help/grep">
1992 grep
2007 grep
1993 </a>
2008 </a>
1994 </td><td>
2009 </td><td>
1995 search for a pattern in specified files and revisions
2010 search for a pattern in specified files and revisions
1996 </td></tr>
2011 </td></tr>
1997 <tr><td>
2012 <tr><td>
1998 <a href="/help/heads">
2013 <a href="/help/heads">
1999 heads
2014 heads
2000 </a>
2015 </a>
2001 </td><td>
2016 </td><td>
2002 show branch heads
2017 show branch heads
2003 </td></tr>
2018 </td></tr>
2004 <tr><td>
2019 <tr><td>
2005 <a href="/help/help">
2020 <a href="/help/help">
2006 help
2021 help
2007 </a>
2022 </a>
2008 </td><td>
2023 </td><td>
2009 show help for a given topic or a help overview
2024 show help for a given topic or a help overview
2010 </td></tr>
2025 </td></tr>
2011 <tr><td>
2026 <tr><td>
2012 <a href="/help/identify">
2027 <a href="/help/identify">
2013 identify
2028 identify
2014 </a>
2029 </a>
2015 </td><td>
2030 </td><td>
2016 identify the working directory or specified revision
2031 identify the working directory or specified revision
2017 </td></tr>
2032 </td></tr>
2018 <tr><td>
2033 <tr><td>
2019 <a href="/help/import">
2034 <a href="/help/import">
2020 import
2035 import
2021 </a>
2036 </a>
2022 </td><td>
2037 </td><td>
2023 import an ordered set of patches
2038 import an ordered set of patches
2024 </td></tr>
2039 </td></tr>
2025 <tr><td>
2040 <tr><td>
2026 <a href="/help/incoming">
2041 <a href="/help/incoming">
2027 incoming
2042 incoming
2028 </a>
2043 </a>
2029 </td><td>
2044 </td><td>
2030 show new changesets found in source
2045 show new changesets found in source
2031 </td></tr>
2046 </td></tr>
2032 <tr><td>
2047 <tr><td>
2033 <a href="/help/manifest">
2048 <a href="/help/manifest">
2034 manifest
2049 manifest
2035 </a>
2050 </a>
2036 </td><td>
2051 </td><td>
2037 output the current or given revision of the project manifest
2052 output the current or given revision of the project manifest
2038 </td></tr>
2053 </td></tr>
2039 <tr><td>
2054 <tr><td>
2040 <a href="/help/nohelp">
2055 <a href="/help/nohelp">
2041 nohelp
2056 nohelp
2042 </a>
2057 </a>
2043 </td><td>
2058 </td><td>
2044 (no help text available)
2059 (no help text available)
2045 </td></tr>
2060 </td></tr>
2046 <tr><td>
2061 <tr><td>
2047 <a href="/help/outgoing">
2062 <a href="/help/outgoing">
2048 outgoing
2063 outgoing
2049 </a>
2064 </a>
2050 </td><td>
2065 </td><td>
2051 show changesets not found in the destination
2066 show changesets not found in the destination
2052 </td></tr>
2067 </td></tr>
2053 <tr><td>
2068 <tr><td>
2054 <a href="/help/paths">
2069 <a href="/help/paths">
2055 paths
2070 paths
2056 </a>
2071 </a>
2057 </td><td>
2072 </td><td>
2058 show aliases for remote repositories
2073 show aliases for remote repositories
2059 </td></tr>
2074 </td></tr>
2060 <tr><td>
2075 <tr><td>
2061 <a href="/help/phase">
2076 <a href="/help/phase">
2062 phase
2077 phase
2063 </a>
2078 </a>
2064 </td><td>
2079 </td><td>
2065 set or show the current phase name
2080 set or show the current phase name
2066 </td></tr>
2081 </td></tr>
2067 <tr><td>
2082 <tr><td>
2068 <a href="/help/recover">
2083 <a href="/help/recover">
2069 recover
2084 recover
2070 </a>
2085 </a>
2071 </td><td>
2086 </td><td>
2072 roll back an interrupted transaction
2087 roll back an interrupted transaction
2073 </td></tr>
2088 </td></tr>
2074 <tr><td>
2089 <tr><td>
2075 <a href="/help/rename">
2090 <a href="/help/rename">
2076 rename
2091 rename
2077 </a>
2092 </a>
2078 </td><td>
2093 </td><td>
2079 rename files; equivalent of copy + remove
2094 rename files; equivalent of copy + remove
2080 </td></tr>
2095 </td></tr>
2081 <tr><td>
2096 <tr><td>
2082 <a href="/help/resolve">
2097 <a href="/help/resolve">
2083 resolve
2098 resolve
2084 </a>
2099 </a>
2085 </td><td>
2100 </td><td>
2086 redo merges or set/view the merge status of files
2101 redo merges or set/view the merge status of files
2087 </td></tr>
2102 </td></tr>
2088 <tr><td>
2103 <tr><td>
2089 <a href="/help/revert">
2104 <a href="/help/revert">
2090 revert
2105 revert
2091 </a>
2106 </a>
2092 </td><td>
2107 </td><td>
2093 restore files to their checkout state
2108 restore files to their checkout state
2094 </td></tr>
2109 </td></tr>
2095 <tr><td>
2110 <tr><td>
2096 <a href="/help/root">
2111 <a href="/help/root">
2097 root
2112 root
2098 </a>
2113 </a>
2099 </td><td>
2114 </td><td>
2100 print the root (top) of the current working directory
2115 print the root (top) of the current working directory
2101 </td></tr>
2116 </td></tr>
2102 <tr><td>
2117 <tr><td>
2103 <a href="/help/tag">
2118 <a href="/help/tag">
2104 tag
2119 tag
2105 </a>
2120 </a>
2106 </td><td>
2121 </td><td>
2107 add one or more tags for the current or given revision
2122 add one or more tags for the current or given revision
2108 </td></tr>
2123 </td></tr>
2109 <tr><td>
2124 <tr><td>
2110 <a href="/help/tags">
2125 <a href="/help/tags">
2111 tags
2126 tags
2112 </a>
2127 </a>
2113 </td><td>
2128 </td><td>
2114 list repository tags
2129 list repository tags
2115 </td></tr>
2130 </td></tr>
2116 <tr><td>
2131 <tr><td>
2117 <a href="/help/unbundle">
2132 <a href="/help/unbundle">
2118 unbundle
2133 unbundle
2119 </a>
2134 </a>
2120 </td><td>
2135 </td><td>
2121 apply one or more changegroup files
2136 apply one or more changegroup files
2122 </td></tr>
2137 </td></tr>
2123 <tr><td>
2138 <tr><td>
2124 <a href="/help/verify">
2139 <a href="/help/verify">
2125 verify
2140 verify
2126 </a>
2141 </a>
2127 </td><td>
2142 </td><td>
2128 verify the integrity of the repository
2143 verify the integrity of the repository
2129 </td></tr>
2144 </td></tr>
2130 <tr><td>
2145 <tr><td>
2131 <a href="/help/version">
2146 <a href="/help/version">
2132 version
2147 version
2133 </a>
2148 </a>
2134 </td><td>
2149 </td><td>
2135 output version and copyright information
2150 output version and copyright information
2136 </td></tr>
2151 </td></tr>
2137 </table>
2152 </table>
2138 </div>
2153 </div>
2139 </div>
2154 </div>
2140
2155
2141 <script type="text/javascript">process_dates()</script>
2156 <script type="text/javascript">process_dates()</script>
2142
2157
2143
2158
2144 </body>
2159 </body>
2145 </html>
2160 </html>
2146
2161
2147
2162
2148 $ get-with-headers.py 127.0.0.1:$HGPORT "help/add"
2163 $ get-with-headers.py 127.0.0.1:$HGPORT "help/add"
2149 200 Script output follows
2164 200 Script output follows
2150
2165
2151 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2166 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2152 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2167 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2153 <head>
2168 <head>
2154 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2169 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2155 <meta name="robots" content="index, nofollow" />
2170 <meta name="robots" content="index, nofollow" />
2156 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2171 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2157 <script type="text/javascript" src="/static/mercurial.js"></script>
2172 <script type="text/javascript" src="/static/mercurial.js"></script>
2158
2173
2159 <title>Help: add</title>
2174 <title>Help: add</title>
2160 </head>
2175 </head>
2161 <body>
2176 <body>
2162
2177
2163 <div class="container">
2178 <div class="container">
2164 <div class="menu">
2179 <div class="menu">
2165 <div class="logo">
2180 <div class="logo">
2166 <a href="https://mercurial-scm.org/">
2181 <a href="https://mercurial-scm.org/">
2167 <img src="/static/hglogo.png" alt="mercurial" /></a>
2182 <img src="/static/hglogo.png" alt="mercurial" /></a>
2168 </div>
2183 </div>
2169 <ul>
2184 <ul>
2170 <li><a href="/shortlog">log</a></li>
2185 <li><a href="/shortlog">log</a></li>
2171 <li><a href="/graph">graph</a></li>
2186 <li><a href="/graph">graph</a></li>
2172 <li><a href="/tags">tags</a></li>
2187 <li><a href="/tags">tags</a></li>
2173 <li><a href="/bookmarks">bookmarks</a></li>
2188 <li><a href="/bookmarks">bookmarks</a></li>
2174 <li><a href="/branches">branches</a></li>
2189 <li><a href="/branches">branches</a></li>
2175 </ul>
2190 </ul>
2176 <ul>
2191 <ul>
2177 <li class="active"><a href="/help">help</a></li>
2192 <li class="active"><a href="/help">help</a></li>
2178 </ul>
2193 </ul>
2179 </div>
2194 </div>
2180
2195
2181 <div class="main">
2196 <div class="main">
2182 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2197 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2183 <h3>Help: add</h3>
2198 <h3>Help: add</h3>
2184
2199
2185 <form class="search" action="/log">
2200 <form class="search" action="/log">
2186
2201
2187 <p><input name="rev" id="search1" type="text" size="30" /></p>
2202 <p><input name="rev" id="search1" type="text" size="30" /></p>
2188 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2203 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2189 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2204 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2190 </form>
2205 </form>
2191 <div id="doc">
2206 <div id="doc">
2192 <p>
2207 <p>
2193 hg add [OPTION]... [FILE]...
2208 hg add [OPTION]... [FILE]...
2194 </p>
2209 </p>
2195 <p>
2210 <p>
2196 add the specified files on the next commit
2211 add the specified files on the next commit
2197 </p>
2212 </p>
2198 <p>
2213 <p>
2199 Schedule files to be version controlled and added to the
2214 Schedule files to be version controlled and added to the
2200 repository.
2215 repository.
2201 </p>
2216 </p>
2202 <p>
2217 <p>
2203 The files will be added to the repository at the next commit. To
2218 The files will be added to the repository at the next commit. To
2204 undo an add before that, see &quot;hg forget&quot;.
2219 undo an add before that, see &quot;hg forget&quot;.
2205 </p>
2220 </p>
2206 <p>
2221 <p>
2207 If no names are given, add all files to the repository (except
2222 If no names are given, add all files to the repository (except
2208 files matching &quot;.hgignore&quot;).
2223 files matching &quot;.hgignore&quot;).
2209 </p>
2224 </p>
2210 <p>
2225 <p>
2211 Examples:
2226 Examples:
2212 </p>
2227 </p>
2213 <ul>
2228 <ul>
2214 <li> New (unknown) files are added automatically by &quot;hg add&quot;:
2229 <li> New (unknown) files are added automatically by &quot;hg add&quot;:
2215 <pre>
2230 <pre>
2216 \$ ls (re)
2231 \$ ls (re)
2217 foo.c
2232 foo.c
2218 \$ hg status (re)
2233 \$ hg status (re)
2219 ? foo.c
2234 ? foo.c
2220 \$ hg add (re)
2235 \$ hg add (re)
2221 adding foo.c
2236 adding foo.c
2222 \$ hg status (re)
2237 \$ hg status (re)
2223 A foo.c
2238 A foo.c
2224 </pre>
2239 </pre>
2225 <li> Specific files to be added can be specified:
2240 <li> Specific files to be added can be specified:
2226 <pre>
2241 <pre>
2227 \$ ls (re)
2242 \$ ls (re)
2228 bar.c foo.c
2243 bar.c foo.c
2229 \$ hg status (re)
2244 \$ hg status (re)
2230 ? bar.c
2245 ? bar.c
2231 ? foo.c
2246 ? foo.c
2232 \$ hg add bar.c (re)
2247 \$ hg add bar.c (re)
2233 \$ hg status (re)
2248 \$ hg status (re)
2234 A bar.c
2249 A bar.c
2235 ? foo.c
2250 ? foo.c
2236 </pre>
2251 </pre>
2237 </ul>
2252 </ul>
2238 <p>
2253 <p>
2239 Returns 0 if all files are successfully added.
2254 Returns 0 if all files are successfully added.
2240 </p>
2255 </p>
2241 <p>
2256 <p>
2242 options ([+] can be repeated):
2257 options ([+] can be repeated):
2243 </p>
2258 </p>
2244 <table>
2259 <table>
2245 <tr><td>-I</td>
2260 <tr><td>-I</td>
2246 <td>--include PATTERN [+]</td>
2261 <td>--include PATTERN [+]</td>
2247 <td>include names matching the given patterns</td></tr>
2262 <td>include names matching the given patterns</td></tr>
2248 <tr><td>-X</td>
2263 <tr><td>-X</td>
2249 <td>--exclude PATTERN [+]</td>
2264 <td>--exclude PATTERN [+]</td>
2250 <td>exclude names matching the given patterns</td></tr>
2265 <td>exclude names matching the given patterns</td></tr>
2251 <tr><td>-S</td>
2266 <tr><td>-S</td>
2252 <td>--subrepos</td>
2267 <td>--subrepos</td>
2253 <td>recurse into subrepositories</td></tr>
2268 <td>recurse into subrepositories</td></tr>
2254 <tr><td>-n</td>
2269 <tr><td>-n</td>
2255 <td>--dry-run</td>
2270 <td>--dry-run</td>
2256 <td>do not perform actions, just print output</td></tr>
2271 <td>do not perform actions, just print output</td></tr>
2257 </table>
2272 </table>
2258 <p>
2273 <p>
2259 global options ([+] can be repeated):
2274 global options ([+] can be repeated):
2260 </p>
2275 </p>
2261 <table>
2276 <table>
2262 <tr><td>-R</td>
2277 <tr><td>-R</td>
2263 <td>--repository REPO</td>
2278 <td>--repository REPO</td>
2264 <td>repository root directory or name of overlay bundle file</td></tr>
2279 <td>repository root directory or name of overlay bundle file</td></tr>
2265 <tr><td></td>
2280 <tr><td></td>
2266 <td>--cwd DIR</td>
2281 <td>--cwd DIR</td>
2267 <td>change working directory</td></tr>
2282 <td>change working directory</td></tr>
2268 <tr><td>-y</td>
2283 <tr><td>-y</td>
2269 <td>--noninteractive</td>
2284 <td>--noninteractive</td>
2270 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
2285 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
2271 <tr><td>-q</td>
2286 <tr><td>-q</td>
2272 <td>--quiet</td>
2287 <td>--quiet</td>
2273 <td>suppress output</td></tr>
2288 <td>suppress output</td></tr>
2274 <tr><td>-v</td>
2289 <tr><td>-v</td>
2275 <td>--verbose</td>
2290 <td>--verbose</td>
2276 <td>enable additional output</td></tr>
2291 <td>enable additional output</td></tr>
2277 <tr><td></td>
2292 <tr><td></td>
2278 <td>--config CONFIG [+]</td>
2293 <td>--config CONFIG [+]</td>
2279 <td>set/override config option (use 'section.name=value')</td></tr>
2294 <td>set/override config option (use 'section.name=value')</td></tr>
2280 <tr><td></td>
2295 <tr><td></td>
2281 <td>--debug</td>
2296 <td>--debug</td>
2282 <td>enable debugging output</td></tr>
2297 <td>enable debugging output</td></tr>
2283 <tr><td></td>
2298 <tr><td></td>
2284 <td>--debugger</td>
2299 <td>--debugger</td>
2285 <td>start debugger</td></tr>
2300 <td>start debugger</td></tr>
2286 <tr><td></td>
2301 <tr><td></td>
2287 <td>--encoding ENCODE</td>
2302 <td>--encoding ENCODE</td>
2288 <td>set the charset encoding (default: ascii)</td></tr>
2303 <td>set the charset encoding (default: ascii)</td></tr>
2289 <tr><td></td>
2304 <tr><td></td>
2290 <td>--encodingmode MODE</td>
2305 <td>--encodingmode MODE</td>
2291 <td>set the charset encoding mode (default: strict)</td></tr>
2306 <td>set the charset encoding mode (default: strict)</td></tr>
2292 <tr><td></td>
2307 <tr><td></td>
2293 <td>--traceback</td>
2308 <td>--traceback</td>
2294 <td>always print a traceback on exception</td></tr>
2309 <td>always print a traceback on exception</td></tr>
2295 <tr><td></td>
2310 <tr><td></td>
2296 <td>--time</td>
2311 <td>--time</td>
2297 <td>time how long the command takes</td></tr>
2312 <td>time how long the command takes</td></tr>
2298 <tr><td></td>
2313 <tr><td></td>
2299 <td>--profile</td>
2314 <td>--profile</td>
2300 <td>print command execution profile</td></tr>
2315 <td>print command execution profile</td></tr>
2301 <tr><td></td>
2316 <tr><td></td>
2302 <td>--version</td>
2317 <td>--version</td>
2303 <td>output version information and exit</td></tr>
2318 <td>output version information and exit</td></tr>
2304 <tr><td>-h</td>
2319 <tr><td>-h</td>
2305 <td>--help</td>
2320 <td>--help</td>
2306 <td>display help and exit</td></tr>
2321 <td>display help and exit</td></tr>
2307 <tr><td></td>
2322 <tr><td></td>
2308 <td>--hidden</td>
2323 <td>--hidden</td>
2309 <td>consider hidden changesets</td></tr>
2324 <td>consider hidden changesets</td></tr>
2310 </table>
2325 </table>
2311
2326
2312 </div>
2327 </div>
2313 </div>
2328 </div>
2314 </div>
2329 </div>
2315
2330
2316 <script type="text/javascript">process_dates()</script>
2331 <script type="text/javascript">process_dates()</script>
2317
2332
2318
2333
2319 </body>
2334 </body>
2320 </html>
2335 </html>
2321
2336
2322
2337
2323 $ get-with-headers.py 127.0.0.1:$HGPORT "help/remove"
2338 $ get-with-headers.py 127.0.0.1:$HGPORT "help/remove"
2324 200 Script output follows
2339 200 Script output follows
2325
2340
2326 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2341 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2327 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2342 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2328 <head>
2343 <head>
2329 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2344 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2330 <meta name="robots" content="index, nofollow" />
2345 <meta name="robots" content="index, nofollow" />
2331 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2346 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2332 <script type="text/javascript" src="/static/mercurial.js"></script>
2347 <script type="text/javascript" src="/static/mercurial.js"></script>
2333
2348
2334 <title>Help: remove</title>
2349 <title>Help: remove</title>
2335 </head>
2350 </head>
2336 <body>
2351 <body>
2337
2352
2338 <div class="container">
2353 <div class="container">
2339 <div class="menu">
2354 <div class="menu">
2340 <div class="logo">
2355 <div class="logo">
2341 <a href="https://mercurial-scm.org/">
2356 <a href="https://mercurial-scm.org/">
2342 <img src="/static/hglogo.png" alt="mercurial" /></a>
2357 <img src="/static/hglogo.png" alt="mercurial" /></a>
2343 </div>
2358 </div>
2344 <ul>
2359 <ul>
2345 <li><a href="/shortlog">log</a></li>
2360 <li><a href="/shortlog">log</a></li>
2346 <li><a href="/graph">graph</a></li>
2361 <li><a href="/graph">graph</a></li>
2347 <li><a href="/tags">tags</a></li>
2362 <li><a href="/tags">tags</a></li>
2348 <li><a href="/bookmarks">bookmarks</a></li>
2363 <li><a href="/bookmarks">bookmarks</a></li>
2349 <li><a href="/branches">branches</a></li>
2364 <li><a href="/branches">branches</a></li>
2350 </ul>
2365 </ul>
2351 <ul>
2366 <ul>
2352 <li class="active"><a href="/help">help</a></li>
2367 <li class="active"><a href="/help">help</a></li>
2353 </ul>
2368 </ul>
2354 </div>
2369 </div>
2355
2370
2356 <div class="main">
2371 <div class="main">
2357 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2372 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2358 <h3>Help: remove</h3>
2373 <h3>Help: remove</h3>
2359
2374
2360 <form class="search" action="/log">
2375 <form class="search" action="/log">
2361
2376
2362 <p><input name="rev" id="search1" type="text" size="30" /></p>
2377 <p><input name="rev" id="search1" type="text" size="30" /></p>
2363 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2378 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2364 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2379 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2365 </form>
2380 </form>
2366 <div id="doc">
2381 <div id="doc">
2367 <p>
2382 <p>
2368 hg remove [OPTION]... FILE...
2383 hg remove [OPTION]... FILE...
2369 </p>
2384 </p>
2370 <p>
2385 <p>
2371 aliases: rm
2386 aliases: rm
2372 </p>
2387 </p>
2373 <p>
2388 <p>
2374 remove the specified files on the next commit
2389 remove the specified files on the next commit
2375 </p>
2390 </p>
2376 <p>
2391 <p>
2377 Schedule the indicated files for removal from the current branch.
2392 Schedule the indicated files for removal from the current branch.
2378 </p>
2393 </p>
2379 <p>
2394 <p>
2380 This command schedules the files to be removed at the next commit.
2395 This command schedules the files to be removed at the next commit.
2381 To undo a remove before that, see &quot;hg revert&quot;. To undo added
2396 To undo a remove before that, see &quot;hg revert&quot;. To undo added
2382 files, see &quot;hg forget&quot;.
2397 files, see &quot;hg forget&quot;.
2383 </p>
2398 </p>
2384 <p>
2399 <p>
2385 -A/--after can be used to remove only files that have already
2400 -A/--after can be used to remove only files that have already
2386 been deleted, -f/--force can be used to force deletion, and -Af
2401 been deleted, -f/--force can be used to force deletion, and -Af
2387 can be used to remove files from the next revision without
2402 can be used to remove files from the next revision without
2388 deleting them from the working directory.
2403 deleting them from the working directory.
2389 </p>
2404 </p>
2390 <p>
2405 <p>
2391 The following table details the behavior of remove for different
2406 The following table details the behavior of remove for different
2392 file states (columns) and option combinations (rows). The file
2407 file states (columns) and option combinations (rows). The file
2393 states are Added [A], Clean [C], Modified [M] and Missing [!]
2408 states are Added [A], Clean [C], Modified [M] and Missing [!]
2394 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
2409 (as reported by &quot;hg status&quot;). The actions are Warn, Remove
2395 (from branch) and Delete (from disk):
2410 (from branch) and Delete (from disk):
2396 </p>
2411 </p>
2397 <table>
2412 <table>
2398 <tr><td>opt/state</td>
2413 <tr><td>opt/state</td>
2399 <td>A</td>
2414 <td>A</td>
2400 <td>C</td>
2415 <td>C</td>
2401 <td>M</td>
2416 <td>M</td>
2402 <td>!</td></tr>
2417 <td>!</td></tr>
2403 <tr><td>none</td>
2418 <tr><td>none</td>
2404 <td>W</td>
2419 <td>W</td>
2405 <td>RD</td>
2420 <td>RD</td>
2406 <td>W</td>
2421 <td>W</td>
2407 <td>R</td></tr>
2422 <td>R</td></tr>
2408 <tr><td>-f</td>
2423 <tr><td>-f</td>
2409 <td>R</td>
2424 <td>R</td>
2410 <td>RD</td>
2425 <td>RD</td>
2411 <td>RD</td>
2426 <td>RD</td>
2412 <td>R</td></tr>
2427 <td>R</td></tr>
2413 <tr><td>-A</td>
2428 <tr><td>-A</td>
2414 <td>W</td>
2429 <td>W</td>
2415 <td>W</td>
2430 <td>W</td>
2416 <td>W</td>
2431 <td>W</td>
2417 <td>R</td></tr>
2432 <td>R</td></tr>
2418 <tr><td>-Af</td>
2433 <tr><td>-Af</td>
2419 <td>R</td>
2434 <td>R</td>
2420 <td>R</td>
2435 <td>R</td>
2421 <td>R</td>
2436 <td>R</td>
2422 <td>R</td></tr>
2437 <td>R</td></tr>
2423 </table>
2438 </table>
2424 <p>
2439 <p>
2425 Note that remove never deletes files in Added [A] state from the
2440 Note that remove never deletes files in Added [A] state from the
2426 working directory, not even if option --force is specified.
2441 working directory, not even if option --force is specified.
2427 </p>
2442 </p>
2428 <p>
2443 <p>
2429 Returns 0 on success, 1 if any warnings encountered.
2444 Returns 0 on success, 1 if any warnings encountered.
2430 </p>
2445 </p>
2431 <p>
2446 <p>
2432 options ([+] can be repeated):
2447 options ([+] can be repeated):
2433 </p>
2448 </p>
2434 <table>
2449 <table>
2435 <tr><td>-A</td>
2450 <tr><td>-A</td>
2436 <td>--after</td>
2451 <td>--after</td>
2437 <td>record delete for missing files</td></tr>
2452 <td>record delete for missing files</td></tr>
2438 <tr><td>-f</td>
2453 <tr><td>-f</td>
2439 <td>--force</td>
2454 <td>--force</td>
2440 <td>remove (and delete) file even if added or modified</td></tr>
2455 <td>remove (and delete) file even if added or modified</td></tr>
2441 <tr><td>-S</td>
2456 <tr><td>-S</td>
2442 <td>--subrepos</td>
2457 <td>--subrepos</td>
2443 <td>recurse into subrepositories</td></tr>
2458 <td>recurse into subrepositories</td></tr>
2444 <tr><td>-I</td>
2459 <tr><td>-I</td>
2445 <td>--include PATTERN [+]</td>
2460 <td>--include PATTERN [+]</td>
2446 <td>include names matching the given patterns</td></tr>
2461 <td>include names matching the given patterns</td></tr>
2447 <tr><td>-X</td>
2462 <tr><td>-X</td>
2448 <td>--exclude PATTERN [+]</td>
2463 <td>--exclude PATTERN [+]</td>
2449 <td>exclude names matching the given patterns</td></tr>
2464 <td>exclude names matching the given patterns</td></tr>
2450 </table>
2465 </table>
2451 <p>
2466 <p>
2452 global options ([+] can be repeated):
2467 global options ([+] can be repeated):
2453 </p>
2468 </p>
2454 <table>
2469 <table>
2455 <tr><td>-R</td>
2470 <tr><td>-R</td>
2456 <td>--repository REPO</td>
2471 <td>--repository REPO</td>
2457 <td>repository root directory or name of overlay bundle file</td></tr>
2472 <td>repository root directory or name of overlay bundle file</td></tr>
2458 <tr><td></td>
2473 <tr><td></td>
2459 <td>--cwd DIR</td>
2474 <td>--cwd DIR</td>
2460 <td>change working directory</td></tr>
2475 <td>change working directory</td></tr>
2461 <tr><td>-y</td>
2476 <tr><td>-y</td>
2462 <td>--noninteractive</td>
2477 <td>--noninteractive</td>
2463 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
2478 <td>do not prompt, automatically pick the first choice for all prompts</td></tr>
2464 <tr><td>-q</td>
2479 <tr><td>-q</td>
2465 <td>--quiet</td>
2480 <td>--quiet</td>
2466 <td>suppress output</td></tr>
2481 <td>suppress output</td></tr>
2467 <tr><td>-v</td>
2482 <tr><td>-v</td>
2468 <td>--verbose</td>
2483 <td>--verbose</td>
2469 <td>enable additional output</td></tr>
2484 <td>enable additional output</td></tr>
2470 <tr><td></td>
2485 <tr><td></td>
2471 <td>--config CONFIG [+]</td>
2486 <td>--config CONFIG [+]</td>
2472 <td>set/override config option (use 'section.name=value')</td></tr>
2487 <td>set/override config option (use 'section.name=value')</td></tr>
2473 <tr><td></td>
2488 <tr><td></td>
2474 <td>--debug</td>
2489 <td>--debug</td>
2475 <td>enable debugging output</td></tr>
2490 <td>enable debugging output</td></tr>
2476 <tr><td></td>
2491 <tr><td></td>
2477 <td>--debugger</td>
2492 <td>--debugger</td>
2478 <td>start debugger</td></tr>
2493 <td>start debugger</td></tr>
2479 <tr><td></td>
2494 <tr><td></td>
2480 <td>--encoding ENCODE</td>
2495 <td>--encoding ENCODE</td>
2481 <td>set the charset encoding (default: ascii)</td></tr>
2496 <td>set the charset encoding (default: ascii)</td></tr>
2482 <tr><td></td>
2497 <tr><td></td>
2483 <td>--encodingmode MODE</td>
2498 <td>--encodingmode MODE</td>
2484 <td>set the charset encoding mode (default: strict)</td></tr>
2499 <td>set the charset encoding mode (default: strict)</td></tr>
2485 <tr><td></td>
2500 <tr><td></td>
2486 <td>--traceback</td>
2501 <td>--traceback</td>
2487 <td>always print a traceback on exception</td></tr>
2502 <td>always print a traceback on exception</td></tr>
2488 <tr><td></td>
2503 <tr><td></td>
2489 <td>--time</td>
2504 <td>--time</td>
2490 <td>time how long the command takes</td></tr>
2505 <td>time how long the command takes</td></tr>
2491 <tr><td></td>
2506 <tr><td></td>
2492 <td>--profile</td>
2507 <td>--profile</td>
2493 <td>print command execution profile</td></tr>
2508 <td>print command execution profile</td></tr>
2494 <tr><td></td>
2509 <tr><td></td>
2495 <td>--version</td>
2510 <td>--version</td>
2496 <td>output version information and exit</td></tr>
2511 <td>output version information and exit</td></tr>
2497 <tr><td>-h</td>
2512 <tr><td>-h</td>
2498 <td>--help</td>
2513 <td>--help</td>
2499 <td>display help and exit</td></tr>
2514 <td>display help and exit</td></tr>
2500 <tr><td></td>
2515 <tr><td></td>
2501 <td>--hidden</td>
2516 <td>--hidden</td>
2502 <td>consider hidden changesets</td></tr>
2517 <td>consider hidden changesets</td></tr>
2503 </table>
2518 </table>
2504
2519
2505 </div>
2520 </div>
2506 </div>
2521 </div>
2507 </div>
2522 </div>
2508
2523
2509 <script type="text/javascript">process_dates()</script>
2524 <script type="text/javascript">process_dates()</script>
2510
2525
2511
2526
2512 </body>
2527 </body>
2513 </html>
2528 </html>
2514
2529
2515
2530
2516 $ get-with-headers.py 127.0.0.1:$HGPORT "help/revisions"
2531 $ get-with-headers.py 127.0.0.1:$HGPORT "help/revisions"
2517 200 Script output follows
2532 200 Script output follows
2518
2533
2519 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2534 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2520 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2535 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">
2521 <head>
2536 <head>
2522 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2537 <link rel="icon" href="/static/hgicon.png" type="image/png" />
2523 <meta name="robots" content="index, nofollow" />
2538 <meta name="robots" content="index, nofollow" />
2524 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2539 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" />
2525 <script type="text/javascript" src="/static/mercurial.js"></script>
2540 <script type="text/javascript" src="/static/mercurial.js"></script>
2526
2541
2527 <title>Help: revisions</title>
2542 <title>Help: revisions</title>
2528 </head>
2543 </head>
2529 <body>
2544 <body>
2530
2545
2531 <div class="container">
2546 <div class="container">
2532 <div class="menu">
2547 <div class="menu">
2533 <div class="logo">
2548 <div class="logo">
2534 <a href="https://mercurial-scm.org/">
2549 <a href="https://mercurial-scm.org/">
2535 <img src="/static/hglogo.png" alt="mercurial" /></a>
2550 <img src="/static/hglogo.png" alt="mercurial" /></a>
2536 </div>
2551 </div>
2537 <ul>
2552 <ul>
2538 <li><a href="/shortlog">log</a></li>
2553 <li><a href="/shortlog">log</a></li>
2539 <li><a href="/graph">graph</a></li>
2554 <li><a href="/graph">graph</a></li>
2540 <li><a href="/tags">tags</a></li>
2555 <li><a href="/tags">tags</a></li>
2541 <li><a href="/bookmarks">bookmarks</a></li>
2556 <li><a href="/bookmarks">bookmarks</a></li>
2542 <li><a href="/branches">branches</a></li>
2557 <li><a href="/branches">branches</a></li>
2543 </ul>
2558 </ul>
2544 <ul>
2559 <ul>
2545 <li class="active"><a href="/help">help</a></li>
2560 <li class="active"><a href="/help">help</a></li>
2546 </ul>
2561 </ul>
2547 </div>
2562 </div>
2548
2563
2549 <div class="main">
2564 <div class="main">
2550 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2565 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2>
2551 <h3>Help: revisions</h3>
2566 <h3>Help: revisions</h3>
2552
2567
2553 <form class="search" action="/log">
2568 <form class="search" action="/log">
2554
2569
2555 <p><input name="rev" id="search1" type="text" size="30" /></p>
2570 <p><input name="rev" id="search1" type="text" size="30" /></p>
2556 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2571 <div id="hint">Find changesets by keywords (author, files, the commit message), revision
2557 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2572 number or hash, or <a href="/help/revsets">revset expression</a>.</div>
2558 </form>
2573 </form>
2559 <div id="doc">
2574 <div id="doc">
2560 <h1>Specifying Single Revisions</h1>
2575 <h1>Specifying Single Revisions</h1>
2561 <p>
2576 <p>
2562 Mercurial supports several ways to specify individual revisions.
2577 Mercurial supports several ways to specify individual revisions.
2563 </p>
2578 </p>
2564 <p>
2579 <p>
2565 A plain integer is treated as a revision number. Negative integers are
2580 A plain integer is treated as a revision number. Negative integers are
2566 treated as sequential offsets from the tip, with -1 denoting the tip,
2581 treated as sequential offsets from the tip, with -1 denoting the tip,
2567 -2 denoting the revision prior to the tip, and so forth.
2582 -2 denoting the revision prior to the tip, and so forth.
2568 </p>
2583 </p>
2569 <p>
2584 <p>
2570 A 40-digit hexadecimal string is treated as a unique revision
2585 A 40-digit hexadecimal string is treated as a unique revision
2571 identifier.
2586 identifier.
2572 </p>
2587 </p>
2573 <p>
2588 <p>
2574 A hexadecimal string less than 40 characters long is treated as a
2589 A hexadecimal string less than 40 characters long is treated as a
2575 unique revision identifier and is referred to as a short-form
2590 unique revision identifier and is referred to as a short-form
2576 identifier. A short-form identifier is only valid if it is the prefix
2591 identifier. A short-form identifier is only valid if it is the prefix
2577 of exactly one full-length identifier.
2592 of exactly one full-length identifier.
2578 </p>
2593 </p>
2579 <p>
2594 <p>
2580 Any other string is treated as a bookmark, tag, or branch name. A
2595 Any other string is treated as a bookmark, tag, or branch name. A
2581 bookmark is a movable pointer to a revision. A tag is a permanent name
2596 bookmark is a movable pointer to a revision. A tag is a permanent name
2582 associated with a revision. A branch name denotes the tipmost open branch head
2597 associated with a revision. A branch name denotes the tipmost open branch head
2583 of that branch - or if they are all closed, the tipmost closed head of the
2598 of that branch - or if they are all closed, the tipmost closed head of the
2584 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2599 branch. Bookmark, tag, and branch names must not contain the &quot;:&quot; character.
2585 </p>
2600 </p>
2586 <p>
2601 <p>
2587 The reserved name &quot;tip&quot; always identifies the most recent revision.
2602 The reserved name &quot;tip&quot; always identifies the most recent revision.
2588 </p>
2603 </p>
2589 <p>
2604 <p>
2590 The reserved name &quot;null&quot; indicates the null revision. This is the
2605 The reserved name &quot;null&quot; indicates the null revision. This is the
2591 revision of an empty repository, and the parent of revision 0.
2606 revision of an empty repository, and the parent of revision 0.
2592 </p>
2607 </p>
2593 <p>
2608 <p>
2594 The reserved name &quot;.&quot; indicates the working directory parent. If no
2609 The reserved name &quot;.&quot; indicates the working directory parent. If no
2595 working directory is checked out, it is equivalent to null. If an
2610 working directory is checked out, it is equivalent to null. If an
2596 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2611 uncommitted merge is in progress, &quot;.&quot; is the revision of the first
2597 parent.
2612 parent.
2598 </p>
2613 </p>
2599
2614
2600 </div>
2615 </div>
2601 </div>
2616 </div>
2602 </div>
2617 </div>
2603
2618
2604 <script type="text/javascript">process_dates()</script>
2619 <script type="text/javascript">process_dates()</script>
2605
2620
2606
2621
2607 </body>
2622 </body>
2608 </html>
2623 </html>
2609
2624
2610
2625
2611 $ killdaemons.py
2626 $ killdaemons.py
2612
2627
2613 #endif
2628 #endif
General Comments 0
You need to be logged in to leave comments. Login now