comparison test-onsub.t @ 7:a2ad7553ba79

Improve help text (in particular, clarify meaning of --print0).
author Greg Ward <greg@gerg.ca>
date Sun, 24 Apr 2011 10:07:03 -0400
parents 73658c424c7b
children ecc4fd16555d
comparison
equal deleted inserted replaced
6:11fd0da50daa 7:a2ad7553ba79
8 $ hg help onsub 8 $ hg help onsub
9 hg onsub [-b] [-0] [--ignore-errors] CMD 9 hg onsub [-b] [-0] [--ignore-errors] CMD
10 10
11 execute a command in each subrepository 11 execute a command in each subrepository
12 12
13 The command is executed with the current working directory set to the root 13 Executes CMD with the current working directory set to the root of each
14 of each subrepository. By default, execution stops if the command returns 14 subrepository. By default, execution stops if CMD returns a non-zero exit
15 a non-zero exit code. Use --ignore-errors to override this. 15 code. Use --ignore-errors to override this.
16 16
17 Use --verbose/-v to print the name of each subrepo before the command is 17 Use --verbose/-v to print the command being run and the subrepo name for
18 executed, use --print0/-0 to terminate this line with a NUL character 18 each run of CMD in a subrepo. Alternately, use --print0/-0 to print just
19 instead of a newline. This can for instance be useful in combination with 19 the subrepo name followed by a NUL character instead of a newline. This
20 "hg status --print0". 20 can be useful in combination with "hg status --print0".
21 21
22 The command has access to the following environment variables: 22 The command has access to the following environment variables:
23 23
24 "HG_REPO": 24 "HG_REPO":
25 Absolute path to the top-level repository in which the onsub command 25 Absolute path to the top-level repository in which the onsub command