Mercurial > hg
comparison tests/test-rebase-pull @ 10775:c52057614c72 stable
Tests with spaces in paths
This allows most tests to succeed with
./run-tests.py --tmpdir='/tmp/hg test'
and introduces other tests for spaces and shell quoting
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 24 Mar 2010 01:43:24 +0100 |
parents | cb08c3765a02 |
children | b345b1cc124f |
comparison
equal
deleted
inserted
replaced
10772:1e819576e926 | 10775:c52057614c72 |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 echo "[extensions]" >> $HGRCPATH | 3 echo "[extensions]" >> $HGRCPATH |
4 echo "graphlog=" >> $HGRCPATH | 4 echo "graphlog=" >> $HGRCPATH |
5 echo "rebase=" >> $HGRCPATH | 5 echo "rebase=" >> $HGRCPATH |
6 | |
7 BASE=`pwd` | |
8 | 6 |
9 addcommit () { | 7 addcommit () { |
10 echo $1 > $1 | 8 echo $1 > $1 |
11 hg add $1 | 9 hg add $1 |
12 hg commit -d "${2} 0" -m $1 | 10 hg commit -d "${2} 0" -m $1 |
14 | 12 |
15 commit () { | 13 commit () { |
16 hg commit -d "${2} 0" -m $1 | 14 hg commit -d "${2} 0" -m $1 |
17 } | 15 } |
18 | 16 |
19 cd $BASE | |
20 rm -rf a | 17 rm -rf a |
21 hg init a | 18 hg init a |
22 cd a | 19 cd a |
23 addcommit "C1" 0 | 20 addcommit "C1" 0 |
24 addcommit "C2" 1 | 21 addcommit "C2" 1 |