##// END OF EJS Templates
commands: add verbose example to help text for add
Martin Geisler -
r10446:a565a244 default
parent child Browse files
Show More
@@ -28,6 +28,19 b' def add(ui, repo, *pats, **opts):'
28 undo an add before that, see hg forget.
28 undo an add before that, see hg forget.
29
29
30 If no names are given, add all files to the repository.
30 If no names are given, add all files to the repository.
31
32 .. container:: verbose
33
34 An example showing how new (unknown) files are added
35 automatically by ``hg add``::
36
37 $ ls
38 foo.c
39 $ hg status
40 ? foo.c
41 $ hg add
42 adding foo.c
43 $ hg status
31 """
44 """
32
45
33 bad = []
46 bad = []
@@ -10,6 +10,9 b" hg -v help shortlist | sed 's/[(]version"
10
10
11 hg add -h
11 hg add -h
12
12
13 echo %% verbose help for add
14 hg add -hv
15
13 echo %% test help option with version option
16 echo %% test help option with version option
14 hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/'
17 hg add -h --version | sed 's/[(]version [^)]*[)]/(version xxx)/'
15
18
@@ -243,6 +243,8 b' add the specified files on the next comm'
243
243
244 If no names are given, add all files to the repository.
244 If no names are given, add all files to the repository.
245
245
246 use "hg -v help add" to show verbose help
247
246 options:
248 options:
247
249
248 -I --include include names matching the given patterns
250 -I --include include names matching the given patterns
@@ -250,6 +252,51 b' options:'
250 -n --dry-run do not perform actions, just print output
252 -n --dry-run do not perform actions, just print output
251
253
252 use "hg -v help add" to show global options
254 use "hg -v help add" to show global options
255 %% verbose help for add
256 hg add [OPTION]... [FILE]...
257
258 add the specified files on the next commit
259
260 Schedule files to be version controlled and added to the repository.
261
262 The files will be added to the repository at the next commit. To undo an
263 add before that, see hg forget.
264
265 If no names are given, add all files to the repository.
266
267 An example showing how new (unknown) files are added automatically by "hg
268 add":
269
270 $ ls
271 foo.c
272 $ hg status
273 ? foo.c
274 $ hg add
275 adding foo.c
276 $ hg status
277
278 options:
279
280 -I --include include names matching the given patterns
281 -X --exclude exclude names matching the given patterns
282 -n --dry-run do not perform actions, just print output
283
284 global options:
285 -R --repository repository root directory or name of overlay bundle file
286 --cwd change working directory
287 -y --noninteractive do not prompt, assume 'yes' for any required answers
288 -q --quiet suppress output
289 -v --verbose enable additional output
290 --config set/override config option
291 --debug enable debugging output
292 --debugger start debugger
293 --encoding set the charset encoding (default: ascii)
294 --encodingmode set the charset encoding mode (default: strict)
295 --traceback always print a traceback on exception
296 --time time how long the command takes
297 --profile print command execution profile
298 --version output version information and exit
299 -h --help display help and exit
253 %% test help option with version option
300 %% test help option with version option
254 Mercurial Distributed SCM (version xxx)
301 Mercurial Distributed SCM (version xxx)
255
302
@@ -268,6 +315,8 b' add the specified files on the next comm'
268
315
269 If no names are given, add all files to the repository.
316 If no names are given, add all files to the repository.
270
317
318 use "hg -v help add" to show verbose help
319
271 options:
320 options:
272
321
273 -I --include include names matching the given patterns
322 -I --include include names matching the given patterns
@@ -287,6 +336,8 b' add the specified files on the next comm'
287
336
288 If no names are given, add all files to the repository.
337 If no names are given, add all files to the repository.
289
338
339 use "hg -v help add" to show verbose help
340
290 options:
341 options:
291
342
292 -I --include include names matching the given patterns
343 -I --include include names matching the given patterns
General Comments 0
You need to be logged in to leave comments. Login now