tests/test-repair-strip
changeset 9284 4a1b24dbf753
parent 8293 f00573bc93f8
child 11197 4bb4895e1693
--- a/tests/test-repair-strip	Sun Jul 05 13:59:25 2009 -0500
+++ b/tests/test-repair-strip	Wed Jul 29 22:14:46 2009 +0200
@@ -13,7 +13,11 @@
     chmod +$3 $4
     hg verify
     echo % journal contents
-    cat .hg/store/journal | sed 's/\.i[^\n]*/\.i/'
+    if [ -f .hg/store/journal ]; then
+        sed -e 's/\.i[^\n]*/\.i/' .hg/store/journal
+    else
+        echo "(no journal)"
+    fi
     ls .hg/store/journal >/dev/null 2>&1 && hg recover
     ls .hg/strip-backup/* >/dev/null 2>&1 && hg unbundle -q .hg/strip-backup/*
     rm -rf .hg/strip-backup