Mercurial > hg-onsub
comparison onsub.py @ 14:34aa014b5989
Add help for POST-CMD
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 06 Mar 2012 14:36:55 +0100 |
parents | 90b54c4fe4fe |
children | 44feac64ecfe |
comparison
equal
deleted
inserted
replaced
13:b10dd4461b52 | 14:34aa014b5989 |
---|---|
15 """execute a command in each subrepository | 15 """execute a command in each subrepository |
16 | 16 |
17 Executes CMD with the current working directory set to the root of | 17 Executes CMD with the current working directory set to the root of |
18 each subrepository. By default, execution stops if CMD returns a | 18 each subrepository. By default, execution stops if CMD returns a |
19 non-zero exit code. Use --ignore-errors to override this. | 19 non-zero exit code. Use --ignore-errors to override this. |
20 | |
21 If a POST-CMD is specified, this will be executed after all | |
22 subrepositories below the current subrepository has been visited. | |
23 This corresponds to a post-order traversal of the tree. | |
24 | |
25 It is an error to specify a POST-CMD together with the | |
26 --breadth-first flag. | |
20 | 27 |
21 Use --verbose/-v to print the command being run and the subrepo | 28 Use --verbose/-v to print the command being run and the subrepo |
22 name for each run of CMD in a subrepo. Alternately, use | 29 name for each run of CMD in a subrepo. Alternately, use |
23 --print0/-0 to print just the subrepo name followed by a NUL | 30 --print0/-0 to print just the subrepo name followed by a NUL |
24 character instead of a newline. This can be useful in combination | 31 character instead of a newline. This can be useful in combination |
173 _('limit recursion to N levels (negative for no limit)'), 'N'), | 180 _('limit recursion to N levels (negative for no limit)'), 'N'), |
174 ('', 'ignore-errors', None, | 181 ('', 'ignore-errors', None, |
175 _('continue execution despite errors')), | 182 _('continue execution despite errors')), |
176 ('0', 'print0', None, | 183 ('0', 'print0', None, |
177 _('end subrepository names with NUL, for use with xargs'))], | 184 _('end subrepository names with NUL, for use with xargs'))], |
178 _('[-b] [-0] [--ignore-errors] CMD')) | 185 _('[-b] [-0] [--ignore-errors] CMD [POST-CMD]')) |
179 } | 186 } |