##// END OF EJS Templates
test-convert-hg-svn: make it more windows friendly
Patrick Mezard -
r5809:34c4131a default
parent child Browse files
Show More
@@ -10,7 +10,7 b' fix_path()'
10 echo "[extensions]" >> $HGRCPATH
10 echo "[extensions]" >> $HGRCPATH
11 echo "convert = " >> $HGRCPATH
11 echo "convert = " >> $HGRCPATH
12
12
13 svnpath=`pwd`/svn-repo
13 svnpath=`pwd | fix_path`/svn-repo
14 svnadmin create $svnpath
14 svnadmin create $svnpath
15
15
16 cat > $svnpath/hooks/pre-revprop-change <<'EOF'
16 cat > $svnpath/hooks/pre-revprop-change <<'EOF'
@@ -31,7 +31,14 b' exit 1'
31 EOF
31 EOF
32 chmod +x $svnpath/hooks/pre-revprop-change
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 svn co $svnurl $svnpath-wc
42 svn co $svnurl $svnpath-wc
36
43
37 cd $svnpath-wc
44 cd $svnpath-wc
General Comments 0
You need to be logged in to leave comments. Login now