equal
deleted
inserted
replaced
88 #endif |
88 #endif |
89 |
89 |
90 It's tricky to make file:// URLs working on every platform with |
90 It's tricky to make file:// URLs working on every platform with |
91 regular shell commands. |
91 regular shell commands. |
92 |
92 |
93 $ URL=`"$PYTHON" -c "from __future__ import print_function; import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` |
93 $ URL=`"$PYTHON" -c "import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` |
94 $ hg pull -q "$URL" |
94 $ hg pull -q "$URL" |
95 abort: file:// URLs can only refer to localhost |
95 abort: file:// URLs can only refer to localhost |
96 [255] |
96 [255] |
97 |
97 |
98 $ URL=`"$PYTHON" -c "from __future__ import print_function; import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` |
98 $ URL=`"$PYTHON" -c "import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` |
99 $ hg pull -q "$URL" |
99 $ hg pull -q "$URL" |
100 |
100 |
101 SEC: check for unsafe ssh url |
101 SEC: check for unsafe ssh url |
102 |
102 |
103 $ cat >> $HGRCPATH << EOF |
103 $ cat >> $HGRCPATH << EOF |