--- 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:
#