tests/test-mq-subrepo-svn.t
changeset 41480 eb6700e6c5ea
parent 41330 d5c58d679ed9
child 41496 e095a9688a31
equal deleted inserted replaced
41479:6bbb12cba5a8 41480:eb6700e6c5ea
    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 
    26   $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`"
    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 
       
    33 #if windows
       
    34   $ SVNREPOURL=file:///$pathquoted
       
    35 #else
       
    36   $ SVNREPOURL=file://$pathquoted
       
    37 #endif
       
    38 
    27 
    39   $ mkdir -p svn-project-2499/trunk
    28   $ mkdir -p svn-project-2499/trunk
    40   $ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL"
    29   $ svn import -qm 'init project' svn-project-2499 "$SVNREPOURL"
    41 
    30 
    42 qnew on repo w/svn subrepo
    31 qnew on repo w/svn subrepo