##// END OF EJS Templates
tests: update to match "hg help resolve" output from 53fdc0989047
Martin Geisler -
r11840:3f838abf stable
parent child Browse files
Show More
@@ -1,292 +1,292 b''
1 1 adding a
2 2 adding b
3 3 updating to branch default
4 4 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
5 5 pulling from ../b
6 6 searching for changes
7 7 warning: repository is unrelated
8 8 adding changesets
9 9 adding manifests
10 10 adding file changes
11 11 added 1 changesets with 1 changes to 1 files (+1 heads)
12 12 (run 'hg heads' to see heads, 'hg merge' to merge)
13 13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14 14 (branch merge, don't forget to commit)
15 15 %% -R/--repository
16 16 changeset: 0:8580ff50825a
17 17 tag: tip
18 18 user: test
19 19 date: Thu Jan 01 00:00:01 1970 +0000
20 20 summary: a
21 21
22 22 changeset: 0:b6c483daf290
23 23 tag: tip
24 24 user: test
25 25 date: Thu Jan 01 00:00:01 1970 +0000
26 26 summary: b
27 27
28 28 %% implicit -R
29 29 0: a
30 30 0: a
31 31 abort: There is no Mercurial repository here (.hg not found)!
32 32 abort: a/a not under root
33 33 abort: There is no Mercurial repository here (.hg not found)!
34 34 %% abbrev of long option
35 35 changeset: 1:b6c483daf290
36 36 tag: tip
37 37 parent: -1:000000000000
38 38 user: test
39 39 date: Thu Jan 01 00:00:01 1970 +0000
40 40 summary: b
41 41
42 42 %% earlygetopt with duplicate options (36d23de02da1)
43 43 changeset: 1:b6c483daf290
44 44 tag: tip
45 45 parent: -1:000000000000
46 46 user: test
47 47 date: Thu Jan 01 00:00:01 1970 +0000
48 48 summary: b
49 49
50 50 changeset: 0:8580ff50825a
51 51 tag: tip
52 52 user: test
53 53 date: Thu Jan 01 00:00:01 1970 +0000
54 54 summary: a
55 55
56 56 %% earlygetopt short option without following space
57 57 0:b6c483daf290
58 58 %% earlygetopt with illegal abbreviations
59 59 abort: Option --config may not be abbreviated!
60 60 abort: Option --cwd may not be abbreviated!
61 61 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
62 62 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
63 63 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
64 64 abort: Option -R has to be separated from other options (e.g. not -qR) and --repository may only be abbreviated as --repo!
65 65 %% --cwd
66 66 changeset: 0:8580ff50825a
67 67 tag: tip
68 68 user: test
69 69 date: Thu Jan 01 00:00:01 1970 +0000
70 70 summary: a
71 71
72 72 %% -y/--noninteractive - just be sure it is parsed
73 73 0:8580ff50825a
74 74 0:8580ff50825a
75 75 %% -q/--quiet
76 76 0:8580ff50825a
77 77 0:b6c483daf290
78 78 0:8580ff50825a
79 79 1:b6c483daf290
80 80 %% -v/--verbose
81 81 changeset: 1:b6c483daf290
82 82 tag: tip
83 83 parent: -1:000000000000
84 84 user: test
85 85 date: Thu Jan 01 00:00:01 1970 +0000
86 86 files: b
87 87 description:
88 88 b
89 89
90 90
91 91 changeset: 0:8580ff50825a
92 92 user: test
93 93 date: Thu Jan 01 00:00:01 1970 +0000
94 94 files: a
95 95 description:
96 96 a
97 97
98 98
99 99 changeset: 0:b6c483daf290
100 100 tag: tip
101 101 user: test
102 102 date: Thu Jan 01 00:00:01 1970 +0000
103 103 files: b
104 104 description:
105 105 b
106 106
107 107
108 108 %% --config
109 109 quuxfoo
110 110 abort: malformed --config option: '' (use --config section.name=value)
111 111 abort: malformed --config option: 'a.b' (use --config section.name=value)
112 112 abort: malformed --config option: 'a' (use --config section.name=value)
113 113 abort: malformed --config option: 'a.=' (use --config section.name=value)
114 114 abort: malformed --config option: '.b=' (use --config section.name=value)
115 115 %% --debug
116 116 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a
117 117 tag: tip
118 118 parent: -1:0000000000000000000000000000000000000000
119 119 parent: -1:0000000000000000000000000000000000000000
120 120 manifest: 1:23226e7a252cacdc2d99e4fbdc3653441056de49
121 121 user: test
122 122 date: Thu Jan 01 00:00:01 1970 +0000
123 123 files+: b
124 124 extra: branch=default
125 125 description:
126 126 b
127 127
128 128
129 129 changeset: 0:8580ff50825a50c8f716709acdf8de0deddcd6ab
130 130 parent: -1:0000000000000000000000000000000000000000
131 131 parent: -1:0000000000000000000000000000000000000000
132 132 manifest: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
133 133 user: test
134 134 date: Thu Jan 01 00:00:01 1970 +0000
135 135 files+: a
136 136 extra: branch=default
137 137 description:
138 138 a
139 139
140 140
141 141 %% --traceback
142 142 Traceback (most recent call last):
143 143 %% --time
144 144 Time: real x.x secs (user x.x+x.x sys x.x+x.x)
145 145 %% --version
146 146 Mercurial Distributed SCM (version xxx)
147 147 %% -h/--help
148 148 Mercurial Distributed SCM
149 149
150 150 list of commands:
151 151
152 152 add add the specified files on the next commit
153 153 addremove add all new files, delete all missing files
154 154 annotate show changeset information by line for each file
155 155 archive create an unversioned archive of a repository revision
156 156 backout reverse effect of earlier changeset
157 157 bisect subdivision search of changesets
158 158 branch set or show the current branch name
159 159 branches list repository named branches
160 160 bundle create a changegroup file
161 161 cat output the current or given revision of files
162 162 clone make a copy of an existing repository
163 163 commit commit the specified files or all outstanding changes
164 164 copy mark files as copied for the next commit
165 165 diff diff repository (or selected files)
166 166 export dump the header and diffs for one or more changesets
167 167 forget forget the specified files on the next commit
168 168 grep search for a pattern in specified files and revisions
169 169 heads show current repository heads or show branch heads
170 170 help show help for a given topic or a help overview
171 171 identify identify the working copy or specified revision
172 172 import import an ordered set of patches
173 173 incoming show new changesets found in source
174 174 init create a new repository in the given directory
175 175 locate locate files matching specific patterns
176 176 log show revision history of entire repository or files
177 177 manifest output the current or given revision of the project manifest
178 178 merge merge working directory with another revision
179 179 outgoing show changesets not found in the destination
180 180 parents show the parents of the working directory or revision
181 181 paths show aliases for remote repositories
182 182 pull pull changes from the specified source
183 183 push push changes to the specified destination
184 184 recover roll back an interrupted transaction
185 185 remove remove the specified files on the next commit
186 186 rename rename files; equivalent of copy + remove
187 resolve various operations to help finish a merge
187 resolve redo merges or set/view the merge status of files
188 188 revert restore individual files or directories to an earlier state
189 189 rollback roll back the last transaction (dangerous)
190 190 root print the root (top) of the current working directory
191 191 serve start stand-alone webserver
192 192 showconfig show combined config settings from all hgrc files
193 193 status show changed files in the working directory
194 194 summary summarize working directory state
195 195 tag add one or more tags for the current or given revision
196 196 tags list repository tags
197 197 tip show the tip revision
198 198 unbundle apply one or more changegroup files
199 199 update update working directory (or switch revisions)
200 200 verify verify the integrity of the repository
201 201 version output version and copyright information
202 202
203 203 additional help topics:
204 204
205 205 config Configuration Files
206 206 dates Date Formats
207 207 patterns File Name Patterns
208 208 environment Environment Variables
209 209 revisions Specifying Single Revisions
210 210 multirevs Specifying Multiple Revisions
211 211 revsets Specifying Revision Sets
212 212 diffs Diff Formats
213 213 templating Template Usage
214 214 urls URL Paths
215 215 extensions Using additional features
216 216 hgweb Configuring hgweb
217 217 glossary Glossary
218 218
219 219 use "hg -v help" to show aliases and global options
220 220 Mercurial Distributed SCM
221 221
222 222 list of commands:
223 223
224 224 add add the specified files on the next commit
225 225 addremove add all new files, delete all missing files
226 226 annotate show changeset information by line for each file
227 227 archive create an unversioned archive of a repository revision
228 228 backout reverse effect of earlier changeset
229 229 bisect subdivision search of changesets
230 230 branch set or show the current branch name
231 231 branches list repository named branches
232 232 bundle create a changegroup file
233 233 cat output the current or given revision of files
234 234 clone make a copy of an existing repository
235 235 commit commit the specified files or all outstanding changes
236 236 copy mark files as copied for the next commit
237 237 diff diff repository (or selected files)
238 238 export dump the header and diffs for one or more changesets
239 239 forget forget the specified files on the next commit
240 240 grep search for a pattern in specified files and revisions
241 241 heads show current repository heads or show branch heads
242 242 help show help for a given topic or a help overview
243 243 identify identify the working copy or specified revision
244 244 import import an ordered set of patches
245 245 incoming show new changesets found in source
246 246 init create a new repository in the given directory
247 247 locate locate files matching specific patterns
248 248 log show revision history of entire repository or files
249 249 manifest output the current or given revision of the project manifest
250 250 merge merge working directory with another revision
251 251 outgoing show changesets not found in the destination
252 252 parents show the parents of the working directory or revision
253 253 paths show aliases for remote repositories
254 254 pull pull changes from the specified source
255 255 push push changes to the specified destination
256 256 recover roll back an interrupted transaction
257 257 remove remove the specified files on the next commit
258 258 rename rename files; equivalent of copy + remove
259 resolve various operations to help finish a merge
259 resolve redo merges or set/view the merge status of files
260 260 revert restore individual files or directories to an earlier state
261 261 rollback roll back the last transaction (dangerous)
262 262 root print the root (top) of the current working directory
263 263 serve start stand-alone webserver
264 264 showconfig show combined config settings from all hgrc files
265 265 status show changed files in the working directory
266 266 summary summarize working directory state
267 267 tag add one or more tags for the current or given revision
268 268 tags list repository tags
269 269 tip show the tip revision
270 270 unbundle apply one or more changegroup files
271 271 update update working directory (or switch revisions)
272 272 verify verify the integrity of the repository
273 273 version output version and copyright information
274 274
275 275 additional help topics:
276 276
277 277 config Configuration Files
278 278 dates Date Formats
279 279 patterns File Name Patterns
280 280 environment Environment Variables
281 281 revisions Specifying Single Revisions
282 282 multirevs Specifying Multiple Revisions
283 283 revsets Specifying Revision Sets
284 284 diffs Diff Formats
285 285 templating Template Usage
286 286 urls URL Paths
287 287 extensions Using additional features
288 288 hgweb Configuring hgweb
289 289 glossary Glossary
290 290
291 291 use "hg -v help" to show aliases and global options
292 292 %% not tested: --debugger
@@ -1,678 +1,678 b''
1 1 Mercurial Distributed SCM
2 2
3 3 basic commands:
4 4
5 5 add add the specified files on the next commit
6 6 annotate show changeset information by line for each file
7 7 clone make a copy of an existing repository
8 8 commit commit the specified files or all outstanding changes
9 9 diff diff repository (or selected files)
10 10 export dump the header and diffs for one or more changesets
11 11 forget forget the specified files on the next commit
12 12 init create a new repository in the given directory
13 13 log show revision history of entire repository or files
14 14 merge merge working directory with another revision
15 15 pull pull changes from the specified source
16 16 push push changes to the specified destination
17 17 remove remove the specified files on the next commit
18 18 serve start stand-alone webserver
19 19 status show changed files in the working directory
20 20 summary summarize working directory state
21 21 update update working directory (or switch revisions)
22 22
23 23 use "hg help" for the full list of commands or "hg -v" for details
24 24 add add the specified files on the next commit
25 25 annotate show changeset information by line for each file
26 26 clone make a copy of an existing repository
27 27 commit commit the specified files or all outstanding changes
28 28 diff diff repository (or selected files)
29 29 export dump the header and diffs for one or more changesets
30 30 forget forget the specified files on the next commit
31 31 init create a new repository in the given directory
32 32 log show revision history of entire repository or files
33 33 merge merge working directory with another revision
34 34 pull pull changes from the specified source
35 35 push push changes to the specified destination
36 36 remove remove the specified files on the next commit
37 37 serve start stand-alone webserver
38 38 status show changed files in the working directory
39 39 summary summarize working directory state
40 40 update update working directory (or switch revisions)
41 41 Mercurial Distributed SCM
42 42
43 43 list of commands:
44 44
45 45 add add the specified files on the next commit
46 46 addremove add all new files, delete all missing files
47 47 annotate show changeset information by line for each file
48 48 archive create an unversioned archive of a repository revision
49 49 backout reverse effect of earlier changeset
50 50 bisect subdivision search of changesets
51 51 branch set or show the current branch name
52 52 branches list repository named branches
53 53 bundle create a changegroup file
54 54 cat output the current or given revision of files
55 55 clone make a copy of an existing repository
56 56 commit commit the specified files or all outstanding changes
57 57 copy mark files as copied for the next commit
58 58 diff diff repository (or selected files)
59 59 export dump the header and diffs for one or more changesets
60 60 forget forget the specified files on the next commit
61 61 grep search for a pattern in specified files and revisions
62 62 heads show current repository heads or show branch heads
63 63 help show help for a given topic or a help overview
64 64 identify identify the working copy or specified revision
65 65 import import an ordered set of patches
66 66 incoming show new changesets found in source
67 67 init create a new repository in the given directory
68 68 locate locate files matching specific patterns
69 69 log show revision history of entire repository or files
70 70 manifest output the current or given revision of the project manifest
71 71 merge merge working directory with another revision
72 72 outgoing show changesets not found in the destination
73 73 parents show the parents of the working directory or revision
74 74 paths show aliases for remote repositories
75 75 pull pull changes from the specified source
76 76 push push changes to the specified destination
77 77 recover roll back an interrupted transaction
78 78 remove remove the specified files on the next commit
79 79 rename rename files; equivalent of copy + remove
80 resolve various operations to help finish a merge
80 resolve redo merges or set/view the merge status of files
81 81 revert restore individual files or directories to an earlier state
82 82 rollback roll back the last transaction (dangerous)
83 83 root print the root (top) of the current working directory
84 84 serve start stand-alone webserver
85 85 showconfig show combined config settings from all hgrc files
86 86 status show changed files in the working directory
87 87 summary summarize working directory state
88 88 tag add one or more tags for the current or given revision
89 89 tags list repository tags
90 90 tip show the tip revision
91 91 unbundle apply one or more changegroup files
92 92 update update working directory (or switch revisions)
93 93 verify verify the integrity of the repository
94 94 version output version and copyright information
95 95
96 96 additional help topics:
97 97
98 98 config Configuration Files
99 99 dates Date Formats
100 100 patterns File Name Patterns
101 101 environment Environment Variables
102 102 revisions Specifying Single Revisions
103 103 multirevs Specifying Multiple Revisions
104 104 revsets Specifying Revision Sets
105 105 diffs Diff Formats
106 106 templating Template Usage
107 107 urls URL Paths
108 108 extensions Using additional features
109 109 hgweb Configuring hgweb
110 110 glossary Glossary
111 111
112 112 use "hg -v help" to show aliases and global options
113 113 add add the specified files on the next commit
114 114 addremove add all new files, delete all missing files
115 115 annotate show changeset information by line for each file
116 116 archive create an unversioned archive of a repository revision
117 117 backout reverse effect of earlier changeset
118 118 bisect subdivision search of changesets
119 119 branch set or show the current branch name
120 120 branches list repository named branches
121 121 bundle create a changegroup file
122 122 cat output the current or given revision of files
123 123 clone make a copy of an existing repository
124 124 commit commit the specified files or all outstanding changes
125 125 copy mark files as copied for the next commit
126 126 diff diff repository (or selected files)
127 127 export dump the header and diffs for one or more changesets
128 128 forget forget the specified files on the next commit
129 129 grep search for a pattern in specified files and revisions
130 130 heads show current repository heads or show branch heads
131 131 help show help for a given topic or a help overview
132 132 identify identify the working copy or specified revision
133 133 import import an ordered set of patches
134 134 incoming show new changesets found in source
135 135 init create a new repository in the given directory
136 136 locate locate files matching specific patterns
137 137 log show revision history of entire repository or files
138 138 manifest output the current or given revision of the project manifest
139 139 merge merge working directory with another revision
140 140 outgoing show changesets not found in the destination
141 141 parents show the parents of the working directory or revision
142 142 paths show aliases for remote repositories
143 143 pull pull changes from the specified source
144 144 push push changes to the specified destination
145 145 recover roll back an interrupted transaction
146 146 remove remove the specified files on the next commit
147 147 rename rename files; equivalent of copy + remove
148 resolve various operations to help finish a merge
148 resolve redo merges or set/view the merge status of files
149 149 revert restore individual files or directories to an earlier state
150 150 rollback roll back the last transaction (dangerous)
151 151 root print the root (top) of the current working directory
152 152 serve start stand-alone webserver
153 153 showconfig show combined config settings from all hgrc files
154 154 status show changed files in the working directory
155 155 summary summarize working directory state
156 156 tag add one or more tags for the current or given revision
157 157 tags list repository tags
158 158 tip show the tip revision
159 159 unbundle apply one or more changegroup files
160 160 update update working directory (or switch revisions)
161 161 verify verify the integrity of the repository
162 162 version output version and copyright information
163 163
164 164 additional help topics:
165 165
166 166 config Configuration Files
167 167 dates Date Formats
168 168 patterns File Name Patterns
169 169 environment Environment Variables
170 170 revisions Specifying Single Revisions
171 171 multirevs Specifying Multiple Revisions
172 172 revsets Specifying Revision Sets
173 173 diffs Diff Formats
174 174 templating Template Usage
175 175 urls URL Paths
176 176 extensions Using additional features
177 177 hgweb Configuring hgweb
178 178 glossary Glossary
179 179 %% test short command list with verbose option
180 180 Mercurial Distributed SCM (version xxx)
181 181
182 182 Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
183 183 This is free software; see the source for copying conditions. There is NO
184 184 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
185 185
186 186 basic commands:
187 187
188 188 add:
189 189 add the specified files on the next commit
190 190 annotate, blame:
191 191 show changeset information by line for each file
192 192 clone:
193 193 make a copy of an existing repository
194 194 commit, ci:
195 195 commit the specified files or all outstanding changes
196 196 diff:
197 197 diff repository (or selected files)
198 198 export:
199 199 dump the header and diffs for one or more changesets
200 200 forget:
201 201 forget the specified files on the next commit
202 202 init:
203 203 create a new repository in the given directory
204 204 log, history:
205 205 show revision history of entire repository or files
206 206 merge:
207 207 merge working directory with another revision
208 208 pull:
209 209 pull changes from the specified source
210 210 push:
211 211 push changes to the specified destination
212 212 remove, rm:
213 213 remove the specified files on the next commit
214 214 serve:
215 215 start stand-alone webserver
216 216 status, st:
217 217 show changed files in the working directory
218 218 summary, sum:
219 219 summarize working directory state
220 220 update, up, checkout, co:
221 221 update working directory (or switch revisions)
222 222
223 223 global options:
224 224 -R --repository REPO repository root directory or name of overlay bundle
225 225 file
226 226 --cwd DIR change working directory
227 227 -y --noninteractive do not prompt, assume 'yes' for any required answers
228 228 -q --quiet suppress output
229 229 -v --verbose enable additional output
230 230 --config CONFIG [+] set/override config option (use 'section.name=value')
231 231 --debug enable debugging output
232 232 --debugger start debugger
233 233 --encoding ENCODE set the charset encoding (default: ascii)
234 234 --encodingmode MODE set the charset encoding mode (default: strict)
235 235 --traceback always print a traceback on exception
236 236 --time time how long the command takes
237 237 --profile print command execution profile
238 238 --version output version information and exit
239 239 -h --help display help and exit
240 240
241 241 [+] marked option can be specified multiple times
242 242
243 243 use "hg help" for the full list of commands
244 244 hg add [OPTION]... [FILE]...
245 245
246 246 add the specified files on the next commit
247 247
248 248 Schedule files to be version controlled and added to the repository.
249 249
250 250 The files will be added to the repository at the next commit. To undo an
251 251 add before that, see "hg forget".
252 252
253 253 If no names are given, add all files to the repository.
254 254
255 255 Returns 0 if all files are successfully added.
256 256
257 257 use "hg -v help add" to show verbose help
258 258
259 259 options:
260 260
261 261 -I --include PATTERN [+] include names matching the given patterns
262 262 -X --exclude PATTERN [+] exclude names matching the given patterns
263 263 -n --dry-run do not perform actions, just print output
264 264
265 265 [+] marked option can be specified multiple times
266 266
267 267 use "hg -v help add" to show global options
268 268 %% verbose help for add
269 269 hg add [OPTION]... [FILE]...
270 270
271 271 add the specified files on the next commit
272 272
273 273 Schedule files to be version controlled and added to the repository.
274 274
275 275 The files will be added to the repository at the next commit. To undo an
276 276 add before that, see "hg forget".
277 277
278 278 If no names are given, add all files to the repository.
279 279
280 280 An example showing how new (unknown) files are added automatically by "hg
281 281 add":
282 282
283 283 $ ls
284 284 foo.c
285 285 $ hg status
286 286 ? foo.c
287 287 $ hg add
288 288 adding foo.c
289 289 $ hg status
290 290 A foo.c
291 291
292 292 Returns 0 if all files are successfully added.
293 293
294 294 options:
295 295
296 296 -I --include PATTERN [+] include names matching the given patterns
297 297 -X --exclude PATTERN [+] exclude names matching the given patterns
298 298 -n --dry-run do not perform actions, just print output
299 299
300 300 global options:
301 301 -R --repository REPO repository root directory or name of overlay bundle
302 302 file
303 303 --cwd DIR change working directory
304 304 -y --noninteractive do not prompt, assume 'yes' for any required
305 305 answers
306 306 -q --quiet suppress output
307 307 -v --verbose enable additional output
308 308 --config CONFIG [+] set/override config option (use
309 309 'section.name=value')
310 310 --debug enable debugging output
311 311 --debugger start debugger
312 312 --encoding ENCODE set the charset encoding (default: ascii)
313 313 --encodingmode MODE set the charset encoding mode (default: strict)
314 314 --traceback always print a traceback on exception
315 315 --time time how long the command takes
316 316 --profile print command execution profile
317 317 --version output version information and exit
318 318 -h --help display help and exit
319 319
320 320 [+] marked option can be specified multiple times
321 321 %% test help option with version option
322 322 Mercurial Distributed SCM (version xxx)
323 323
324 324 Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
325 325 This is free software; see the source for copying conditions. There is NO
326 326 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
327 327
328 328 hg add [OPTION]... [FILE]...
329 329
330 330 add the specified files on the next commit
331 331
332 332 Schedule files to be version controlled and added to the repository.
333 333
334 334 The files will be added to the repository at the next commit. To undo an
335 335 add before that, see "hg forget".
336 336
337 337 If no names are given, add all files to the repository.
338 338
339 339 Returns 0 if all files are successfully added.
340 340
341 341 use "hg -v help add" to show verbose help
342 342
343 343 options:
344 344
345 345 -I --include PATTERN [+] include names matching the given patterns
346 346 -X --exclude PATTERN [+] exclude names matching the given patterns
347 347 -n --dry-run do not perform actions, just print output
348 348
349 349 [+] marked option can be specified multiple times
350 350
351 351 use "hg -v help add" to show global options
352 352 hg add: option --skjdfks not recognized
353 353 hg add [OPTION]... [FILE]...
354 354
355 355 add the specified files on the next commit
356 356
357 357 Schedule files to be version controlled and added to the repository.
358 358
359 359 The files will be added to the repository at the next commit. To undo an
360 360 add before that, see "hg forget".
361 361
362 362 If no names are given, add all files to the repository.
363 363
364 364 Returns 0 if all files are successfully added.
365 365
366 366 use "hg -v help add" to show verbose help
367 367
368 368 options:
369 369
370 370 -I --include PATTERN [+] include names matching the given patterns
371 371 -X --exclude PATTERN [+] exclude names matching the given patterns
372 372 -n --dry-run do not perform actions, just print output
373 373
374 374 [+] marked option can be specified multiple times
375 375
376 376 use "hg -v help add" to show global options
377 377 %% test ambiguous command help
378 378 list of commands:
379 379
380 380 add add the specified files on the next commit
381 381 addremove add all new files, delete all missing files
382 382
383 383 use "hg -v help ad" to show aliases and global options
384 384 %% test command without options
385 385 hg verify
386 386
387 387 verify the integrity of the repository
388 388
389 389 Verify the integrity of the current repository.
390 390
391 391 This will perform an extensive check of the repository's integrity,
392 392 validating the hashes and checksums of each entry in the changelog,
393 393 manifest, and tracked files, as well as the integrity of their crosslinks
394 394 and indices.
395 395
396 396 Returns 0 on success, 1 if errors are encountered.
397 397
398 398 use "hg -v help verify" to show global options
399 399 hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
400 400
401 401 diff repository (or selected files)
402 402
403 403 Show differences between revisions for the specified files.
404 404
405 405 Differences between files are shown using the unified diff format.
406 406
407 407 NOTE: diff may generate unexpected results for merges, as it will default
408 408 to comparing against the working directory's first parent changeset if no
409 409 revisions are specified.
410 410
411 411 When two revision arguments are given, then changes are shown between
412 412 those revisions. If only one revision is specified then that revision is
413 413 compared to the working directory, and, when no revisions are specified,
414 414 the working directory files are compared to its parent.
415 415
416 416 Alternatively you can specify -c/--change with a revision to see the
417 417 changes in that changeset relative to its first parent.
418 418
419 419 Without the -a/--text option, diff will avoid generating diffs of files it
420 420 detects as binary. With -a, diff will generate a diff anyway, probably
421 421 with undesirable results.
422 422
423 423 Use the -g/--git option to generate diffs in the git extended diff format.
424 424 For more information, read "hg help diffs".
425 425
426 426 Returns 0 on success.
427 427
428 428 options:
429 429
430 430 -r --rev REV [+] revision
431 431 -c --change REV change made by revision
432 432 -a --text treat all files as text
433 433 -g --git use git extended diff format
434 434 --nodates omit dates from diff headers
435 435 -p --show-function show which function each change is in
436 436 --reverse produce a diff that undoes the changes
437 437 -w --ignore-all-space ignore white space when comparing lines
438 438 -b --ignore-space-change ignore changes in the amount of white space
439 439 -B --ignore-blank-lines ignore changes whose lines are all blank
440 440 -U --unified NUM number of lines of context to show
441 441 --stat output diffstat-style summary of changes
442 442 -I --include PATTERN [+] include names matching the given patterns
443 443 -X --exclude PATTERN [+] exclude names matching the given patterns
444 444
445 445 [+] marked option can be specified multiple times
446 446
447 447 use "hg -v help diff" to show global options
448 448 hg status [OPTION]... [FILE]...
449 449
450 450 aliases: st
451 451
452 452 show changed files in the working directory
453 453
454 454 Show status of files in the repository. If names are given, only files
455 455 that match are shown. Files that are clean or ignored or the source of a
456 456 copy/move operation, are not listed unless -c/--clean, -i/--ignored,
457 457 -C/--copies or -A/--all are given. Unless options described with "show
458 458 only ..." are given, the options -mardu are used.
459 459
460 460 Option -q/--quiet hides untracked (unknown and ignored) files unless
461 461 explicitly requested with -u/--unknown or -i/--ignored.
462 462
463 463 NOTE: status may appear to disagree with diff if permissions have changed
464 464 or a merge has occurred. The standard diff format does not report
465 465 permission changes and diff only reports changes relative to one merge
466 466 parent.
467 467
468 468 If one revision is given, it is used as the base revision. If two
469 469 revisions are given, the differences between them are shown. The --change
470 470 option can also be used as a shortcut to list the changed files of a
471 471 revision from its first parent.
472 472
473 473 The codes used to show the status of files are:
474 474
475 475 M = modified
476 476 A = added
477 477 R = removed
478 478 C = clean
479 479 ! = missing (deleted by non-hg command, but still tracked)
480 480 ? = not tracked
481 481 I = ignored
482 482 = origin of the previous file listed as A (added)
483 483
484 484 Returns 0 on success.
485 485
486 486 options:
487 487
488 488 -A --all show status of all files
489 489 -m --modified show only modified files
490 490 -a --added show only added files
491 491 -r --removed show only removed files
492 492 -d --deleted show only deleted (but tracked) files
493 493 -c --clean show only files without changes
494 494 -u --unknown show only unknown (not tracked) files
495 495 -i --ignored show only ignored files
496 496 -n --no-status hide status prefix
497 497 -C --copies show source of copied files
498 498 -0 --print0 end filenames with NUL, for use with xargs
499 499 --rev REV [+] show difference from revision
500 500 --change REV list the changed files of a revision
501 501 -I --include PATTERN [+] include names matching the given patterns
502 502 -X --exclude PATTERN [+] exclude names matching the given patterns
503 503
504 504 [+] marked option can be specified multiple times
505 505
506 506 use "hg -v help status" to show global options
507 507 hg status [OPTION]... [FILE]...
508 508
509 509 show changed files in the working directory
510 510 hg: unknown command 'foo'
511 511 Mercurial Distributed SCM
512 512
513 513 basic commands:
514 514
515 515 add add the specified files on the next commit
516 516 annotate show changeset information by line for each file
517 517 clone make a copy of an existing repository
518 518 commit commit the specified files or all outstanding changes
519 519 diff diff repository (or selected files)
520 520 export dump the header and diffs for one or more changesets
521 521 forget forget the specified files on the next commit
522 522 init create a new repository in the given directory
523 523 log show revision history of entire repository or files
524 524 merge merge working directory with another revision
525 525 pull pull changes from the specified source
526 526 push push changes to the specified destination
527 527 remove remove the specified files on the next commit
528 528 serve start stand-alone webserver
529 529 status show changed files in the working directory
530 530 summary summarize working directory state
531 531 update update working directory (or switch revisions)
532 532
533 533 use "hg help" for the full list of commands or "hg -v" for details
534 534 hg: unknown command 'skjdfks'
535 535 Mercurial Distributed SCM
536 536
537 537 basic commands:
538 538
539 539 add add the specified files on the next commit
540 540 annotate show changeset information by line for each file
541 541 clone make a copy of an existing repository
542 542 commit commit the specified files or all outstanding changes
543 543 diff diff repository (or selected files)
544 544 export dump the header and diffs for one or more changesets
545 545 forget forget the specified files on the next commit
546 546 init create a new repository in the given directory
547 547 log show revision history of entire repository or files
548 548 merge merge working directory with another revision
549 549 pull pull changes from the specified source
550 550 push push changes to the specified destination
551 551 remove remove the specified files on the next commit
552 552 serve start stand-alone webserver
553 553 status show changed files in the working directory
554 554 summary summarize working directory state
555 555 update update working directory (or switch revisions)
556 556
557 557 use "hg help" for the full list of commands or "hg -v" for details
558 558 %% test command with no help text
559 559 hg nohelp
560 560
561 561 (no help text available)
562 562
563 563 use "hg -v help nohelp" to show global options
564 564 %% test that default list of commands omits extension commands
565 565 Mercurial Distributed SCM
566 566
567 567 list of commands:
568 568
569 569 add add the specified files on the next commit
570 570 addremove add all new files, delete all missing files
571 571 annotate show changeset information by line for each file
572 572 archive create an unversioned archive of a repository revision
573 573 backout reverse effect of earlier changeset
574 574 bisect subdivision search of changesets
575 575 branch set or show the current branch name
576 576 branches list repository named branches
577 577 bundle create a changegroup file
578 578 cat output the current or given revision of files
579 579 clone make a copy of an existing repository
580 580 commit commit the specified files or all outstanding changes
581 581 copy mark files as copied for the next commit
582 582 diff diff repository (or selected files)
583 583 export dump the header and diffs for one or more changesets
584 584 forget forget the specified files on the next commit
585 585 grep search for a pattern in specified files and revisions
586 586 heads show current repository heads or show branch heads
587 587 help show help for a given topic or a help overview
588 588 identify identify the working copy or specified revision
589 589 import import an ordered set of patches
590 590 incoming show new changesets found in source
591 591 init create a new repository in the given directory
592 592 locate locate files matching specific patterns
593 593 log show revision history of entire repository or files
594 594 manifest output the current or given revision of the project manifest
595 595 merge merge working directory with another revision
596 596 outgoing show changesets not found in the destination
597 597 parents show the parents of the working directory or revision
598 598 paths show aliases for remote repositories
599 599 pull pull changes from the specified source
600 600 push push changes to the specified destination
601 601 recover roll back an interrupted transaction
602 602 remove remove the specified files on the next commit
603 603 rename rename files; equivalent of copy + remove
604 resolve various operations to help finish a merge
604 resolve redo merges or set/view the merge status of files
605 605 revert restore individual files or directories to an earlier state
606 606 rollback roll back the last transaction (dangerous)
607 607 root print the root (top) of the current working directory
608 608 serve start stand-alone webserver
609 609 showconfig show combined config settings from all hgrc files
610 610 status show changed files in the working directory
611 611 summary summarize working directory state
612 612 tag add one or more tags for the current or given revision
613 613 tags list repository tags
614 614 tip show the tip revision
615 615 unbundle apply one or more changegroup files
616 616 update update working directory (or switch revisions)
617 617 verify verify the integrity of the repository
618 618 version output version and copyright information
619 619
620 620 enabled extensions:
621 621
622 622 helpext (no help text available)
623 623
624 624 additional help topics:
625 625
626 626 config Configuration Files
627 627 dates Date Formats
628 628 patterns File Name Patterns
629 629 environment Environment Variables
630 630 revisions Specifying Single Revisions
631 631 multirevs Specifying Multiple Revisions
632 632 revsets Specifying Revision Sets
633 633 diffs Diff Formats
634 634 templating Template Usage
635 635 urls URL Paths
636 636 extensions Using additional features
637 637 hgweb Configuring hgweb
638 638 glossary Glossary
639 639
640 640 use "hg -v help" to show aliases and global options
641 641 %% test list of commands with command with no help text
642 642 helpext extension - no help text available
643 643
644 644 list of commands:
645 645
646 646 nohelp (no help text available)
647 647
648 648 use "hg -v help helpext" to show aliases and global options
649 649 %% test a help topic
650 650 Specifying Single Revisions
651 651
652 652 Mercurial supports several ways to specify individual revisions.
653 653
654 654 A plain integer is treated as a revision number. Negative integers are
655 655 treated as sequential offsets from the tip, with -1 denoting the tip, -2
656 656 denoting the revision prior to the tip, and so forth.
657 657
658 658 A 40-digit hexadecimal string is treated as a unique revision identifier.
659 659
660 660 A hexadecimal string less than 40 characters long is treated as a unique
661 661 revision identifier and is referred to as a short-form identifier. A
662 662 short-form identifier is only valid if it is the prefix of exactly one
663 663 full-length identifier.
664 664
665 665 Any other string is treated as a tag or branch name. A tag name is a
666 666 symbolic name associated with a revision identifier. A branch name denotes
667 667 the tipmost revision of that branch. Tag and branch names must not contain
668 668 the ":" character.
669 669
670 670 The reserved name "tip" is a special tag that always identifies the most
671 671 recent revision.
672 672
673 673 The reserved name "null" indicates the null revision. This is the revision
674 674 of an empty repository, and the parent of revision 0.
675 675
676 676 The reserved name "." indicates the working directory parent. If no
677 677 working directory is checked out, it is equivalent to null. If an
678 678 uncommitted merge is in progress, "." is the revision of the first parent.
General Comments 0
You need to be logged in to leave comments. Login now