Show More
@@ -23,10 +23,17 b' handle svn subrepos safely' | |||
|
23 | 23 | $ svnadmin create svn-repo-2499 |
|
24 | 24 | |
|
25 | 25 | $ SVNREPOPATH=`pwd`/svn-repo-2499/project |
|
26 | ||
|
27 | #if py3 | |
|
28 | $ pathquoted=`"$PYTHON" -c "import sys, urllib.parse; sys.stdout.write(urllib.parse.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
29 | #else | |
|
30 | $ pathquoted=`"$PYTHON" -c "import sys, urllib; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
31 | #endif | |
|
32 | ||
|
26 | 33 | #if windows |
|
27 | $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
34 | $ SVNREPOURL=file:///$pathquoted | |
|
28 | 35 | #else |
|
29 | $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
|
36 | $ SVNREPOURL=file://$pathquoted | |
|
30 | 37 | #endif |
|
31 | 38 | |
|
32 | 39 | $ mkdir -p svn-project-2499/trunk |
General Comments 0
You need to be logged in to leave comments.
Login now