Show More
@@ -10,7 +10,7 fix_path() | |||
|
10 | 10 | echo "[extensions]" >> $HGRCPATH |
|
11 | 11 | echo "convert = " >> $HGRCPATH |
|
12 | 12 | |
|
13 | svnpath=`pwd`/svn-repo | |
|
13 | svnpath=`pwd | fix_path`/svn-repo | |
|
14 | 14 | svnadmin create $svnpath |
|
15 | 15 | |
|
16 | 16 | cat > $svnpath/hooks/pre-revprop-change <<'EOF' |
@@ -31,7 +31,14 exit 1 | |||
|
31 | 31 | EOF |
|
32 | 32 | chmod +x $svnpath/hooks/pre-revprop-change |
|
33 | 33 | |
|
34 | svnurl=file://$svnpath | |
|
34 | # SVN wants all paths to start with a slash. Unfortunately, | |
|
35 | # Windows ones don't. Handle that. | |
|
36 | svnurl=$svnpath | |
|
37 | expr $svnurl : "\/" > /dev/null | |
|
38 | if [ $? -ne 0 ]; then | |
|
39 | svnurl='/'$svnurl | |
|
40 | fi | |
|
41 | svnurl=file://$svnurl | |
|
35 | 42 | svn co $svnurl $svnpath-wc |
|
36 | 43 | |
|
37 | 44 | cd $svnpath-wc |
General Comments 0
You need to be logged in to leave comments.
Login now