Help: tcommand

hg tcommand command [arg] ...

aliases: tcmd

Run a command in each repo in the tree.

Change directory to the root of each repo and run the command.

The command is executed directly (i.e., not using a shell), so if i/o redirection or other shell features are desired, include the shell invocation in the command, e.g.: hg tcommand -- sh -c 'ls -l > ls.out'

Mercurial parses all arguments that start with a dash, including those that follow the command name, which usually results in an error. Prevent this by using '--' before the command or arguments, e.g.: hg tcommand -- ls -l

options ([+] can be repeated):

--stop stop if command returns non-zero
--subtrees SUBTREE [+] path to subtree
--tns NAMESPACE trees namespace to use

global options ([+] can be repeated):

-R --repository REPO repository root directory or name of overlay bundle file
--cwd DIR change working directory
-y --noninteractive do not prompt, automatically pick the first choice for all prompts
-q --quiet suppress output
-v --verbose enable additional output
--color TYPE when to colorize (boolean, always, auto, never, or debug)
--config CONFIG [+] set/override config option (use '')
--debug enable debugging output
--debugger start debugger
--encoding ENCODE set the charset encoding (default: ascii)
--encodingmode MODE set the charset encoding mode (default: strict)
--traceback always print a traceback on exception
--time time how long the command takes
--profile print command execution profile
--version output version information and exit
-h --help display help and exit
--hidden consider hidden changesets
--pager TYPE when to paginate (boolean, always, auto, or never) (default: auto)