Mercurial > hg-onsub
comparison test-onsub.t @ 14:34aa014b5989
Add help for POST-CMD
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 06 Mar 2012 14:36:55 +0100 |
parents | b10dd4461b52 |
children | 5ea3f7533ec5 |
comparison
equal
deleted
inserted
replaced
13:b10dd4461b52 | 14:34aa014b5989 |
---|---|
4 $ echo "onsub = $TESTDIR/onsub.py" >> $HGRCPATH | 4 $ echo "onsub = $TESTDIR/onsub.py" >> $HGRCPATH |
5 | 5 |
6 Check help formatting: | 6 Check help formatting: |
7 | 7 |
8 $ hg help onsub | 8 $ hg help onsub |
9 hg onsub [-b] [-0] [--ignore-errors] CMD | 9 hg onsub [-b] [-0] [--ignore-errors] CMD [POST-CMD] |
10 | 10 |
11 execute a command in each subrepository | 11 execute a command in each subrepository |
12 | 12 |
13 Executes CMD with the current working directory set to the root of each | 13 Executes CMD with the current working directory set to the root of each |
14 subrepository. By default, execution stops if CMD returns a non-zero exit | 14 subrepository. By default, execution stops if CMD returns a non-zero exit |
15 code. Use --ignore-errors to override this. | 15 code. Use --ignore-errors to override this. |
16 | |
17 If a POST-CMD is specified, this will be executed after all | |
18 subrepositories below the current subrepository has been visited. This | |
19 corresponds to a post-order traversal of the tree. | |
20 | |
21 It is an error to specify a POST-CMD together with the --breadth-first | |
22 flag. | |
16 | 23 |
17 Use --verbose/-v to print the command being run and the subrepo name for | 24 Use --verbose/-v to print the command being run and the subrepo name for |
18 each run of CMD in a subrepo. Alternately, use --print0/-0 to print just | 25 each run of CMD in a subrepo. Alternately, use --print0/-0 to print just |
19 the subrepo name followed by a NUL character instead of a newline. This | 26 the subrepo name followed by a NUL character instead of a newline. This |
20 can be useful in combination with "hg status --print0". | 27 can be useful in combination with "hg status --print0". |