diff tests/test-strip-cross @ 11200:12e5149cafca

strip: improve full backup message
author Matt Mackall <mpm@selenic.com>
date Thu, 20 May 2010 12:15:44 -0500
parents 8e7796a990c5
children 2313dc4d9817
line wrap: on
line diff
--- a/tests/test-strip-cross	Wed May 19 20:20:16 2010 -0500
+++ b/tests/test-strip-cross	Thu May 20 12:15:44 2010 -0500
@@ -2,17 +2,13 @@
 
 # test stripping of filelogs where the linkrev doesn't always increase
 
+source $TESTDIR/helpers.sh
 echo '[extensions]' >> $HGRCPATH
 echo 'hgext.mq =' >> $HGRCPATH
 
 hg init orig
 cd orig
 
-hidefilename()
-{
-    sed -e 's/saving bundle to .*strip-backup/saving bundle to strip-backup/'
-}
-
 commit()
 {
     hg up -qC null
@@ -60,7 +56,7 @@
 for i in 0 1 2 3 4; do
     hg clone -q -U --pull crossed $i
     echo "% Trying to strip revision $i"
-    hg --cwd $i strip $i 2>&1 | hidefilename
+    hg --cwd $i strip $i | hidebackup
     echo "% Verifying"
     hg --cwd $i verify
     echo