Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
41479:6bbb12cba5a8 | 41480:eb6700e6c5ea |
---|---|
9 > convert = | 9 > convert = |
10 > mq = | 10 > mq = |
11 > EOF | 11 > EOF |
12 | 12 |
13 $ SVNREPOPATH=`pwd`/svn-repo | 13 $ SVNREPOPATH=`pwd`/svn-repo |
14 #if windows | 14 $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`" |
15 $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
16 #else | |
17 $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | |
18 #endif | |
19 | 15 |
20 $ svnadmin create "$SVNREPOPATH" | 16 $ svnadmin create "$SVNREPOPATH" |
21 $ cat > "$SVNREPOPATH"/hooks/pre-revprop-change <<EOF | 17 $ cat > "$SVNREPOPATH"/hooks/pre-revprop-change <<EOF |
22 > #!/bin/sh | 18 > #!/bin/sh |
23 > | 19 > |