Mercurial > hg
comparison tests/test-subrepo-svn.t @ 39707:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | 991e4404e910 |
children | 5495ceab5637 |
comparison
equal
deleted
inserted
replaced
39706:030d558c6456 | 39707:5abc47d4ca6b |
---|---|
1 #require svn15 | 1 #require svn15 |
2 | 2 |
3 $ SVNREPOPATH=`pwd`/svn-repo | 3 $ SVNREPOPATH=`pwd`/svn-repo |
4 #if windows | 4 #if windows |
5 $ SVNREPOURL=file:///`$PYTHON -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | 5 $ SVNREPOURL=file:///`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` |
6 #else | 6 #else |
7 $ SVNREPOURL=file://`$PYTHON -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` | 7 $ SVNREPOURL=file://`"$PYTHON" -c "import urllib, sys; sys.stdout.write(urllib.quote(sys.argv[1]))" "$SVNREPOPATH"` |
8 #endif | 8 #endif |
9 | 9 |
10 $ filter_svn_output () { | 10 $ filter_svn_output () { |
11 > egrep -v 'Committing|Transmitting|Updating|(^$)' || true | 11 > egrep -v 'Committing|Transmitting|Updating|(^$)' || true |
12 > } | 12 > } |
245 source file:/*/$TESTTMP/svn-repo/src (glob) | 245 source file:/*/$TESTTMP/svn-repo/src (glob) |
246 revision 2 | 246 revision 2 |
247 | 247 |
248 verify subrepo is contained within the repo directory | 248 verify subrepo is contained within the repo directory |
249 | 249 |
250 $ $PYTHON -c "import os.path; print os.path.exists('s')" | 250 $ "$PYTHON" -c "import os.path; print os.path.exists('s')" |
251 True | 251 True |
252 | 252 |
253 update to nullrev (must delete the subrepo) | 253 update to nullrev (must delete the subrepo) |
254 | 254 |
255 $ hg up null | 255 $ hg up null |