Show More
@@ -109,12 +109,12 b" MSYS changes 'file:' into 'file;'" | |||
|
109 | 109 | It's tricky to make file:// URLs working on every platform with |
|
110 | 110 | regular shell commands. |
|
111 | 111 | |
|
112 |
$ URL=`$PYTHON -c "import os; print |
|
|
112 | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | |
|
113 | 113 | $ hg pull -q "$URL" |
|
114 | 114 | abort: file:// URLs can only refer to localhost |
|
115 | 115 | [255] |
|
116 | 116 | |
|
117 |
$ URL=`$PYTHON -c "import os; print |
|
|
117 | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | |
|
118 | 118 | $ hg pull -q "$URL" |
|
119 | 119 | |
|
120 | 120 | SEC: check for unsafe ssh url |
General Comments 0
You need to be logged in to leave comments.
Login now