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