##// END OF EJS Templates
Debashify rebase tests
Brendan Cully -
r6910:93609576 default
parent child Browse files
Show More
@@ -3,12 +3,13 b''
3 echo "[extensions]" >> $HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
5
5
6 function addcommit {
6 addcommit () {
7 echo $1 > $1
7 echo $1 > $1
8 hg add $1
8 hg add $1
9 hg commit -d "${2} 0" -u test -m $1
9 hg commit -d "${2} 0" -u test -m $1
10 }
10 }
11 function commit {
11
12 commit () {
12 hg commit -d "${2} 0" -u test -m $1
13 hg commit -d "${2} 0" -u test -m $1
13 }
14 }
14
15
@@ -4,7 +4,7 b' echo "[extensions]" >> $HGRCPATH'
4 echo "graphlog=" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
6
6
7 function cleanoutput {
7 cleanoutput () {
8 sed -e 's/\(Rebase status stored to\).*/\1/' \
8 sed -e 's/\(Rebase status stored to\).*/\1/' \
9 -e 's/\(Rebase status restored from\).*/\1/' \
9 -e 's/\(Rebase status restored from\).*/\1/' \
10 -e 's/\(saving bundle to \).*/\1/'
10 -e 's/\(saving bundle to \).*/\1/'
@@ -6,16 +6,17 b' echo "rebase=" >> $HGRCPATH'
6
6
7 BASE=`pwd`
7 BASE=`pwd`
8
8
9 function addcommit {
9 addcommit () {
10 echo $1 > $1
10 echo $1 > $1
11 hg add $1
11 hg add $1
12 hg commit -d "${2} 0" -u test -m $1
12 hg commit -d "${2} 0" -u test -m $1
13 }
13 }
14 function commit {
14
15 commit () {
15 hg commit -d "${2} 0" -u test -m $1
16 hg commit -d "${2} 0" -u test -m $1
16 }
17 }
17
18
18 function createrepo {
19 createrepo () {
19 cd $BASE
20 cd $BASE
20 rm -rf a
21 rm -rf a
21 hg init a
22 hg init a
@@ -50,7 +51,7 b" echo '% Rebasing'"
50 hg rebase --base 6 --collapse 2>&1 | sed 's/\(saving bundle to \).*/\1/'
51 hg rebase --base 6 --collapse 2>&1 | sed 's/\(saving bundle to \).*/\1/'
51 hg glog --template '{rev}: {desc}\n'
52 hg glog --template '{rev}: {desc}\n'
52
53
53 function createrepocomplex {
54 createrepocomplex () {
54 cd $BASE
55 cd $BASE
55 rm -rf a
56 rm -rf a
56 hg init a
57 hg init a
@@ -4,7 +4,7 b' echo "[extensions]" >> $HGRCPATH'
4 echo "graphlog=" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
6
6
7 function cleanoutput {
7 cleanoutput () {
8 sed -e 's/\(Rebase status stored to\).*/\1/' \
8 sed -e 's/\(Rebase status stored to\).*/\1/' \
9 -e 's/\(Rebase status restored from\).*/\1/' \
9 -e 's/\(Rebase status restored from\).*/\1/' \
10 -e 's/\(saving bundle to \).*/\1/'
10 -e 's/\(saving bundle to \).*/\1/'
@@ -6,16 +6,17 b' echo "rebase=" >> $HGRCPATH'
6
6
7 BASE=`pwd`
7 BASE=`pwd`
8
8
9 function addcommit {
9 addcommit () {
10 echo $1 > $1
10 echo $1 > $1
11 hg add $1
11 hg add $1
12 hg commit -d "${2} 0" -u test -m $1
12 hg commit -d "${2} 0" -u test -m $1
13 }
13 }
14 function commit {
14
15 commit () {
15 hg commit -d "${2} 0" -u test -m $1
16 hg commit -d "${2} 0" -u test -m $1
16 }
17 }
17
18
18 function createrepo {
19 createrepo () {
19 cd $BASE
20 cd $BASE
20 rm -rf a
21 rm -rf a
21 hg init a
22 hg init a
@@ -4,7 +4,7 b' echo "[extensions]" >> $HGRCPATH'
4 echo "graphlog=" >> $HGRCPATH
4 echo "graphlog=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
5 echo "rebase=" >> $HGRCPATH
6
6
7 function addcommit {
7 addcommit () {
8 echo $1 > $1
8 echo $1 > $1
9 hg add $1
9 hg add $1
10 hg commit -d "${2} 0" -u test -m $1
10 hg commit -d "${2} 0" -u test -m $1
@@ -3,17 +3,17 b''
3 echo "[extensions]" >> $HGRCPATH
3 echo "[extensions]" >> $HGRCPATH
4 echo "rebase=" >> $HGRCPATH
4 echo "rebase=" >> $HGRCPATH
5
5
6 function addcommit {
6 addcommit () {
7 echo $1 > $1
7 echo $1 > $1
8 hg add $1
8 hg add $1
9 hg commit -d "${2} 0" -u test -m $1
9 hg commit -d "${2} 0" -u test -m $1
10 }
10 }
11
11
12 function commit {
12 commit () {
13 hg commit -d "${2} 0" -u test -m $1
13 hg commit -d "${2} 0" -u test -m $1
14 }
14 }
15
15
16 function createrepo {
16 createrepo () {
17 hg init a
17 hg init a
18 cd a
18 cd a
19 addcommit "c1" 0
19 addcommit "c1" 0
@@ -6,12 +6,13 b' echo "rebase=" >> $HGRCPATH'
6
6
7 BASE=`pwd`
7 BASE=`pwd`
8
8
9 function addcommit {
9 addcommit () {
10 echo $1 > $1
10 echo $1 > $1
11 hg add $1
11 hg add $1
12 hg commit -d "${2} 0" -u test -m $1
12 hg commit -d "${2} 0" -u test -m $1
13 }
13 }
14 function commit {
14
15 commit () {
15 hg commit -d "${2} 0" -u test -m $1
16 hg commit -d "${2} 0" -u test -m $1
16 }
17 }
17
18
@@ -6,16 +6,17 b' echo "rebase=" >> $HGRCPATH'
6
6
7 BASE=`pwd`
7 BASE=`pwd`
8
8
9 function addcommit {
9 addcommit () {
10 echo $1 > $1
10 echo $1 > $1
11 hg add $1
11 hg add $1
12 hg commit -d "${2} 0" -u test -m $1
12 hg commit -d "${2} 0" -u test -m $1
13 }
13 }
14 function commit {
14
15 commit () {
15 hg commit -d "${2} 0" -u test -m $1
16 hg commit -d "${2} 0" -u test -m $1
16 }
17 }
17
18
18 function createrepo {
19 createrepo () {
19 cd $BASE
20 cd $BASE
20 rm -rf a
21 rm -rf a
21 hg init a
22 hg init a
General Comments 0
You need to be logged in to leave comments. Login now