Mercurial > hg-onsub
comparison test-onsub.t @ 18:d920e3425db5
Added parameter to filter the type of subrepo to loop through.
Added tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 29 Mar 2012 16:18:57 -0700 |
parents | 5ea3f7533ec5 |
children |
comparison
equal
deleted
inserted
replaced
17:5ea3f7533ec5 | 18:d920e3425db5 |
---|---|
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 [POST-CMD] | 9 hg onsub [-b] [-0] [-t TYPE] [--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 |
53 -p --post-order use post-order depth-first traversal | 53 -p --post-order use post-order depth-first traversal |
54 --root-repo include root repository in traversal | 54 --root-repo include root repository in traversal |
55 --max-depth N limit recursion to N levels (negative for no limit) | 55 --max-depth N limit recursion to N levels (negative for no limit) |
56 (default: -1) | 56 (default: -1) |
57 --ignore-errors continue execution despite errors | 57 --ignore-errors continue execution despite errors |
58 -t --type TYPE the type of repo to filter | |
58 -0 --print0 end subrepository names with NUL, for use with xargs | 59 -0 --print0 end subrepository names with NUL, for use with xargs |
59 | 60 |
60 use "hg -v help onsub" to show more info | 61 use "hg -v help onsub" to show more info |
61 | 62 |
62 Create some nicely nested subrepositories: | 63 Create some nicely nested subrepositories: |