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

strip: improve full backup message
author Matt Mackall <mpm@selenic.com>
date Thu, 20 May 2010 12:15:44 -0500
parents cb93eee1fbcd
children 2313dc4d9817
line wrap: on
line diff
--- a/tests/test-mq-strip	Wed May 19 20:20:16 2010 -0500
+++ b/tests/test-mq-strip	Thu May 20 12:15:44 2010 -0500
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+source $TESTDIR/helpers.sh
+
 echo "[extensions]" >> $HGRCPATH
 echo "mq=" >> $HGRCPATH
 
@@ -7,7 +9,7 @@
     hg up -C $1
     echo % before update $1, strip $2
     hg parents
-    hg strip $2 2>&1 | sed 's/\(saving bundle to \).*/\1/'
+    hg strip $2 | hidebackup
     echo % after update $1, strip $2
     hg parents
     hg unbundle -q .hg/strip-backup/*
@@ -48,6 +50,6 @@
 hg merge 4
 echo % before strip of merge parent
 hg parents
-hg strip 4 2>&1 | sed 's/\(saving bundle to \).*/\1/'
+hg strip 4 2>&1 | hidebackup
 echo % after strip of merge parent
 hg parents