comparison tests/test-convert-svn-move.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
6 > EOF 6 > EOF
7 7
8 $ svnadmin create svn-repo 8 $ svnadmin create svn-repo
9 $ svnadmin load -q svn-repo < "$TESTDIR/svn/move.svndump" 9 $ svnadmin load -q svn-repo < "$TESTDIR/svn/move.svndump"
10 $ SVNREPOPATH=`pwd`/svn-repo 10 $ SVNREPOPATH=`pwd`/svn-repo
11 #if windows 11 $ SVNREPOURL="`$PYTHON $TESTDIR/svnurlof.py \"$SVNREPOPATH\"`"
12 $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
13 #else
14 $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"`
15 #endif
16 12
17 Convert trunk and branches 13 Convert trunk and branches
18 14
19 $ hg convert --datesort "$SVNREPOURL"/subproject A-hg 15 $ hg convert --datesort "$SVNREPOURL"/subproject A-hg
20 initializing destination A-hg repository 16 initializing destination A-hg repository