tests/test-mq-subrepo-svn.t
changeset 41330 d5c58d679ed9
parent 39707 5abc47d4ca6b
child 41480 eb6700e6c5ea
equal deleted inserted replaced
41329:84707d9e77a0 41330:d5c58d679ed9
    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