1498ffc60c45
Sub aliases.
author | Steve Losh <steve@stevelosh.com> |
---|---|
date | Tue, 07 Jun 2011 13:07:13 -0400 |
parents | fe78a06f87a4 |
children | 7bde1e391350 |
branches/tags | (none) |
files | .hgrc |
Changes
--- a/.hgrc Tue Jun 07 12:41:52 2011 -0400 +++ b/.hgrc Tue Jun 07 13:07:13 2011 -0400 @@ -208,9 +208,9 @@ # Show in MacVim vshow = !$HG show $@ | mvim -c ':AnsiEsc' -c 'setlocal buftype=nofile' - -# Update subrepos -subpull = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | xargs -n 1 -I SUB hg pull --cwd "`$HG root`/SUB" -subup = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | xargs -n 1 -I SUB hg update --cwd "`$HG root`/SUB" +# Run commands on all subrepos at once. +subs = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | xargs -n1 -I SUB $HG -R "`$HG root`/SUB" $@ +psubs = !grep = "`$HG root`/.hgsub" | cut -d' ' -f1 | parallel -j10 -I SUB $HG -R "`$HG root`/SUB" $@ # Run a command on a subrepo: #