comparison 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
comparison
equal deleted inserted replaced
11199:4b1f4e473c17 11200:12e5149cafca
1 #!/bin/sh 1 #!/bin/sh
2 2
3 # test stripping of filelogs where the linkrev doesn't always increase 3 # test stripping of filelogs where the linkrev doesn't always increase
4 4
5 source $TESTDIR/helpers.sh
5 echo '[extensions]' >> $HGRCPATH 6 echo '[extensions]' >> $HGRCPATH
6 echo 'hgext.mq =' >> $HGRCPATH 7 echo 'hgext.mq =' >> $HGRCPATH
7 8
8 hg init orig 9 hg init orig
9 cd orig 10 cd orig
10
11 hidefilename()
12 {
13 sed -e 's/saving bundle to .*strip-backup/saving bundle to strip-backup/'
14 }
15 11
16 commit() 12 commit()
17 { 13 {
18 hg up -qC null 14 hg up -qC null
19 count=1 15 count=1
58 done 54 done
59 55
60 for i in 0 1 2 3 4; do 56 for i in 0 1 2 3 4; do
61 hg clone -q -U --pull crossed $i 57 hg clone -q -U --pull crossed $i
62 echo "% Trying to strip revision $i" 58 echo "% Trying to strip revision $i"
63 hg --cwd $i strip $i 2>&1 | hidefilename 59 hg --cwd $i strip $i | hidebackup
64 echo "% Verifying" 60 echo "% Verifying"
65 hg --cwd $i verify 61 hg --cwd $i verify
66 echo 62 echo
67 done 63 done
68 64