Mercurial > hg-onsub
comparison onsub.py @ 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 | 11fd0da50daa |
children | ecc4fd16555d |
comparison
equal
deleted
inserted
replaced
6:11fd0da50daa | 7:a2ad7553ba79 |
---|---|
12 """execute a command in each subrepository""" | 12 """execute a command in each subrepository""" |
13 | 13 |
14 def onsub(ui, repo, *args, **opts): | 14 def onsub(ui, repo, *args, **opts): |
15 """execute a command in each subrepository | 15 """execute a command in each subrepository |
16 | 16 |
17 The command is executed with the current working directory set to | 17 Executes CMD with the current working directory set to the root of |
18 the root of each subrepository. By default, execution stops if the | 18 each subrepository. By default, execution stops if CMD returns a |
19 command returns a non-zero exit code. Use --ignore-errors to | 19 non-zero exit code. Use --ignore-errors to override this. |
20 override this. | |
21 | 20 |
22 Use --verbose/-v to print the name of each subrepo before the | 21 Use --verbose/-v to print the command being run and the subrepo |
23 command is executed, use --print0/-0 to terminate this line with a | 22 name for each run of CMD in a subrepo. Alternately, use |
24 NUL character instead of a newline. This can for instance be | 23 --print0/-0 to print just the subrepo name followed by a NUL |
25 useful in combination with :hg:`status --print0`. | 24 character instead of a newline. This can be useful in combination |
25 with :hg:`status --print0`. | |
26 | 26 |
27 The command has access to the following environment variables: | 27 The command has access to the following environment variables: |
28 | 28 |
29 ``HG_REPO``: | 29 ``HG_REPO``: |
30 Absolute path to the top-level repository in which the onsub | 30 Absolute path to the top-level repository in which the onsub |