equal
deleted
inserted
replaced
21 handle svn subrepos safely |
21 handle svn subrepos safely |
22 |
22 |
23 $ svnadmin create svn-repo-2499 |
23 $ svnadmin create svn-repo-2499 |
24 |
24 |
25 $ SVNREPOPATH=`pwd`/svn-repo-2499/project |
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 #if windows |
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 #else |
35 #else |
29 $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` |
36 $ SVNREPOURL=file://$pathquoted |
30 #endif |
37 #endif |
31 |
38 |
32 $ mkdir -p svn-project-2499/trunk |
39 $ mkdir -p svn-project-2499/trunk |
33 $ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL" |
40 $ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL" |
34 |
41 |