changeset 388:5071b8511572

tools: Fixes for verification that seemed to be needed.
author Augie Fackler <durin42@gmail.com>
date Mon, 01 Jun 2009 11:10:32 -0500
parents f6050c4dde31
children a8811c84e3ee
files tools/common.sh tools/verify-all-heads.sh
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/common.sh
+++ b/tools/common.sh
@@ -1,7 +1,7 @@
 function verify_current_revision()
 {
     /bin/rm -rf *
-    exportcmd="svn export `hg svn info 2> /dev/null | grep '^URL: ' | sed 's/URL: //'` -r`hg svn info | grep ^Revision | sed 's/.*: //;s/ .*//'` . --force"
+    exportcmd="svn export `hg svn info 2> /dev/null | grep '^URL: ' | sed 's/URL: //'`@`hg svn info | grep ^Revision | sed 's/.*: //;s/ .*//'` . --force"
     `echo $exportcmd` > /dev/null
     x=$?
     if [[ "$x" != "0" ]] ; then
--- a/tools/verify-all-heads.sh
+++ b/tools/verify-all-heads.sh
@@ -4,6 +4,7 @@
 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
-    echo $b Verified.
+    verify_current_revision keep > /dev/null && \
+        echo $b verified. || \
+        (echo $b failed. && /bin/rm -rf * && hg up -C $b)
 done