Show More
@@ -1,53 +1,53 | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | "$TESTDIR/hghave" svn svn-bindings || exit 80 |
|
4 | 4 | |
|
5 | 5 | fix_path() |
|
6 | 6 | { |
|
7 | 7 | tr '\\' / |
|
8 | 8 | } |
|
9 | 9 | |
|
10 | 10 | echo "[extensions]" >> $HGRCPATH |
|
11 | 11 | echo "convert = " >> $HGRCPATH |
|
12 | 12 | |
|
13 | 13 | svnadmin create svn-repo |
|
14 | 14 | |
|
15 | 15 | echo % initial svn import |
|
16 | 16 | mkdir t |
|
17 | 17 | cd t |
|
18 | 18 | echo a > a |
|
19 | 19 | cd .. |
|
20 | 20 | |
|
21 |
svnpath=`pwd | |
|
|
21 | svnpath=`pwd | fix_path` | |
|
22 | 22 | # SVN wants all paths to start with a slash. Unfortunately, |
|
23 | 23 | # Windows ones don't. Handle that. |
|
24 | 24 | expr $svnpath : "\/" > /dev/null |
|
25 | 25 | if [ $? -ne 0 ]; then |
|
26 | 26 | svnpath='/'$svnpath |
|
27 | 27 | fi |
|
28 | 28 | |
|
29 | 29 | svnurl=file://$svnpath/svn-repo/trunk |
|
30 | 30 | svn import -m init t $svnurl | fix_path |
|
31 | 31 | |
|
32 | 32 | echo % update svn repository |
|
33 | 33 | svn co $svnurl t2 | fix_path |
|
34 | 34 | cd t2 |
|
35 | 35 | echo b >> a |
|
36 | 36 | echo b > b |
|
37 | 37 | svn add b |
|
38 | 38 | svn ci -m changea |
|
39 | 39 | cd .. |
|
40 | 40 | |
|
41 | 41 | echo % convert to hg once |
|
42 | 42 | hg convert $svnurl |
|
43 | 43 | |
|
44 | 44 | echo % update svn repository again |
|
45 | 45 | cd t2 |
|
46 | 46 | echo c >> a |
|
47 | 47 | echo c >> b |
|
48 | 48 | svn ci -m changeb |
|
49 | 49 | cd .. |
|
50 | 50 | |
|
51 | 51 | echo % test incremental conversion |
|
52 | 52 | hg convert $svnurl |
|
53 | 53 |
General Comments 0
You need to be logged in to leave comments.
Login now