7bde1e391350

Use debugsub.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Tue, 07 Jun 2011 13:10:11 -0400
parents 1498ffc60c45
children 674a2eac7716
branches/tags (none)
files .hgrc

Changes

--- a/.hgrc	Tue Jun 07 13:07:13 2011 -0400
+++ b/.hgrc	Tue Jun 07 13:10:11 2011 -0400
@@ -209,8 +209,8 @@
 vshow = !$HG show $@ | mvim -c ':AnsiEsc' -c 'setlocal buftype=nofile' -
 
 # 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" $@
+subs  = !"$HG" debugsub | grep '^path' | cut -d' ' -f2 | xargs    -n1  -I SUB $HG -R "`$HG root`/SUB" $@
+psubs = !"$HG" debugsub | grep '^path' | cut -d' ' -f2 | parallel -j10 -I SUB $HG -R "`$HG root`/SUB" $@
 
 # Run a command on a subrepo:
 #