Mercurial > hg-onsub
comparison test-onsub.t @ 3:a2184bbf38e6
Implement --ignore-errors.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 06 Sep 2010 12:35:30 +0200 |
parents | e49f3bbfec4d |
children | 73658c424c7b |
comparison
equal
deleted
inserted
replaced
2:cd0c93eba765 | 3:a2184bbf38e6 |
---|---|
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] 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 The command is executed with the current working directory set to the root |
14 of each subrepository. By default, execution stops if the command returns | 14 of each subrepository. By default, execution stops if the command returns |
38 repository's ".hgsubstate" file. | 38 repository's ".hgsubstate" file. |
39 | 39 |
40 options: | 40 options: |
41 | 41 |
42 -b --breadth-first use breadth-first traversal | 42 -b --breadth-first use breadth-first traversal |
43 --ignore-errors continue execution despite errors | |
43 -0 --print0 end subrepository names with NUL, for use with xargs | 44 -0 --print0 end subrepository names with NUL, for use with xargs |
44 | 45 |
45 use "hg -v help onsub" to show global options | 46 use "hg -v help onsub" to show global options |
46 | 47 |
47 Create some nicely nested subrepositories: | 48 Create some nicely nested subrepositories: |
111 executing 'test $HG_SUBPATH != "a/y/r"' in a/x | 112 executing 'test $HG_SUBPATH != "a/y/r"' in a/x |
112 executing 'test $HG_SUBPATH != "a/y/r"' in a/y | 113 executing 'test $HG_SUBPATH != "a/y/r"' in a/y |
113 executing 'test $HG_SUBPATH != "a/y/r"' in a/y/r | 114 executing 'test $HG_SUBPATH != "a/y/r"' in a/y/r |
114 abort: terminated onsub in a/y/r: test exited with status 1 | 115 abort: terminated onsub in a/y/r: test exited with status 1 |
115 | 116 |
117 Test aborting: | |
118 | |
119 $ hg onsub -v --ignore-errors false | |
120 executing 'false' in a | |
121 executing 'false' in a/x | |
122 executing 'false' in a/y | |
123 executing 'false' in a/y/r | |
124 executing 'false' in a/y/s | |
125 executing 'false' in a/y/t | |
126 executing 'false' in b | |
127 executing 'false' in b/u | |
128 executing 'false' in b/v | |
129 | |
116 Test --print0: | 130 Test --print0: |
117 | 131 |
118 $ mv a 'with spaces' | 132 $ mv a 'with spaces' |
119 $ echo 'with spaces = with spaces' > .hgsub | 133 $ echo 'with spaces = with spaces' > .hgsub |
120 $ echo 'b = b' >> .hgsub | 134 $ echo 'b = b' >> .hgsub |