Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
11199:4b1f4e473c17 | 11200:12e5149cafca |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | |
3 source $TESTDIR/helpers.sh | |
2 | 4 |
3 echo "[extensions]" >> $HGRCPATH | 5 echo "[extensions]" >> $HGRCPATH |
4 echo "mq=" >> $HGRCPATH | 6 echo "mq=" >> $HGRCPATH |
5 | 7 |
6 teststrip() { | 8 teststrip() { |
7 hg up -C $1 | 9 hg up -C $1 |
8 echo % before update $1, strip $2 | 10 echo % before update $1, strip $2 |
9 hg parents | 11 hg parents |
10 hg strip $2 2>&1 | sed 's/\(saving bundle to \).*/\1/' | 12 hg strip $2 | hidebackup |
11 echo % after update $1, strip $2 | 13 echo % after update $1, strip $2 |
12 hg parents | 14 hg parents |
13 hg unbundle -q .hg/strip-backup/* | 15 hg unbundle -q .hg/strip-backup/* |
14 rm .hg/strip-backup/* | 16 rm .hg/strip-backup/* |
15 } | 17 } |
46 | 48 |
47 hg up -C 2 | 49 hg up -C 2 |
48 hg merge 4 | 50 hg merge 4 |
49 echo % before strip of merge parent | 51 echo % before strip of merge parent |
50 hg parents | 52 hg parents |
51 hg strip 4 2>&1 | sed 's/\(saving bundle to \).*/\1/' | 53 hg strip 4 2>&1 | hidebackup |
52 echo % after strip of merge parent | 54 echo % after strip of merge parent |
53 hg parents | 55 hg parents |