# HG changeset patch # User Augie Fackler # Date 1238268395 18000 # Node ID 3c87de4820112b0bc8e815bfe9e05ed07e873415 # Parent b5ef9a404f5dc488cb70d48586b222fdb5732161 tools: fixes for wc outputting with spaces. diff --git a/tools/common.sh b/tools/common.sh --- a/tools/common.sh +++ b/tools/common.sh @@ -9,7 +9,7 @@ function verify_current_revision() echo 'export failed!' return 255 fi - if [[ "`hg st | wc -l`" == "0" ]] ; then + if [[ "`hg st | wc -l | python -c 'import sys; print sys.stdin.read().strip()'`" == "0" ]] ; then return 0 else if [[ $1 != "keep" ]] ; then diff --git a/tools/verify-all-heads.sh b/tools/verify-all-heads.sh --- a/tools/verify-all-heads.sh +++ b/tools/verify-all-heads.sh @@ -1,7 +1,7 @@ #!/bin/sh . $(dirname $0)/common.sh -for b in `hg branches | cut -f 1 -d ' '` ; do +for b in `hg branches -a | cut -f 1 -d ' ' | grep -v closed-branches` ; do hg co $b || break echo Verifying $b verify_current_revision keep > /dev/null || break