comparison tests/test-rebase-issue-noparam-single-rev @ 11198:b345b1cc124f

rebase: use helpers.sh in tests
author Matt Mackall <mpm@selenic.com>
date Wed, 19 May 2010 20:20:12 -0500
parents 8766fee6f225
children 2313dc4d9817
comparison
equal deleted inserted replaced
11197:4bb4895e1693 11198:b345b1cc124f
1 #!/bin/sh 1 #!/bin/sh
2
3 source $TESTDIR/helpers.sh
2 4
3 echo "[extensions]" >> $HGRCPATH 5 echo "[extensions]" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH 6 echo "graphlog=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH 7 echo "rebase=" >> $HGRCPATH
6 8
23 hg glog --template '{rev}:{desc}\n' 25 hg glog --template '{rev}:{desc}\n'
24 26
25 echo 27 echo
26 echo '% Rebase with no arguments - single revision in source branch' 28 echo '% Rebase with no arguments - single revision in source branch'
27 hg update -C 2 29 hg update -C 2
28 hg rebase 2>&1 | sed 's/\(saving bundle to \).*/\1/' 30 hg rebase | hidebackup
29 hg glog --template '{rev}:{desc}\n' 31 hg glog --template '{rev}:{desc}\n'
30 32
31 cd .. 33 cd ..
32 rm -rf a 34 rm -rf a
33 hg init a 35 hg init a
43 hg glog --template '{rev}:{desc}\n' 45 hg glog --template '{rev}:{desc}\n'
44 46
45 echo 47 echo
46 echo '% Rebase with no arguments - single revision in target branch' 48 echo '% Rebase with no arguments - single revision in target branch'
47 hg update -C 3 49 hg update -C 3
48 hg rebase 2>&1 | sed 's/\(saving bundle to \).*/\1/' 50 hg rebase 2>&1 | hidebackup
49 hg glog --template '{rev}:{desc}\n' 51 hg glog --template '{rev}:{desc}\n'