test-subrepo-svn: properly escape the url, make it work for svn 1.5 again stable
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 31 Mar 2010 12:07:13 +0200
branchstable
changeset 10791 48c8eb9de0c8
parent 10789 1b45468d3deb
child 10792 3152f2732ef5
child 10793 16df09a54113
test-subrepo-svn: properly escape the url, make it work for svn 1.5 again
tests/test-subrepo-svn
--- a/tests/test-subrepo-svn	Mon Mar 15 14:53:34 2010 -0500
+++ b/tests/test-subrepo-svn	Wed Mar 31 12:07:13 2010 +0200
@@ -14,6 +14,7 @@
 if [ $? -ne 0 ]; then
     escapedwd="/$escapedwd"
 fi
+escapedwd=`python -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$escapedwd"`
 filterpath="s|$escapedwd|/root|"
 filtersvn='s/ in transaction.*/ is out of date/;s/Out of date: /File /'
 
@@ -33,7 +34,7 @@
 svn ci -m 'Add alpha'
 svn up
 cat > extdef <<EOF
-externals -r1 "$SVNREPO/externals"
+externals -r1 $SVNREPO/externals
 EOF
 svn propset -F extdef svn:externals src
 svn ci -m 'Setting externals'