Mercurial > hg
diff tests/test-convert-hg-svn.t @ 41480:eb6700e6c5ea
tests: make and use a new `svnurlof.py` helper for constructing svn urls
The previous trick of a Python oneliner and some subshells is too hard
to make portable, and this lets us consolidate some Windows-specific
logic down to a single place.
Differential Revision: https://phab.mercurial-scm.org/D5766
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 30 Jan 2019 18:49:17 -0500 |
parents | 5abc47d4ca6b |
children | e095a9688a31 |
line wrap: on
line diff
--- a/tests/test-convert-hg-svn.t Wed Jan 30 17:24:57 2019 -0500 +++ b/tests/test-convert-hg-svn.t Wed Jan 30 18:49:17 2019 -0500 @@ -11,11 +11,7 @@ > EOF $ SVNREPOPATH=`pwd`/svn-repo -#if windows - $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` -#else - $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` -#endif + $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" $ svnadmin create "$SVNREPOPATH" $ cat > "$SVNREPOPATH"/hooks/pre-revprop-change <<EOF