# HG changeset patch # User Steve Losh # Date 1307466433 14400 # Node ID 1498ffc60c4522ea890636826c18797e8a0ad2d1 # Parent fe78a06f87a448567261f78adbaacc0e0339ca92 Sub aliases. diff -r fe78a06f87a4 -r 1498ffc60c45 .hgrc --- 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: #