Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG549e970397b2: py3: use print as a function in tests/test-pull.t
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-pull.t (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Pulkit Goyal | May 19 2018, 9:11 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit | ||
Closed | pulkit |
#if no-msys | #if no-msys | ||||
$ hg pull -q file:../test # no-msys | $ hg pull -q file:../test # no-msys | ||||
#endif | #endif | ||||
It's tricky to make file:// URLs working on every platform with | It's tricky to make file:// URLs working on every platform with | ||||
regular shell commands. | regular shell commands. | ||||
$ URL=`$PYTHON -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | ||||
$ hg pull -q "$URL" | $ hg pull -q "$URL" | ||||
abort: file:// URLs can only refer to localhost | abort: file:// URLs can only refer to localhost | ||||
[255] | [255] | ||||
$ URL=`$PYTHON -c "import os; print 'file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"` | $ URL=`$PYTHON -c "from __future__ import print_function; import os; print('file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test')"` | ||||
$ hg pull -q "$URL" | $ hg pull -q "$URL" | ||||
SEC: check for unsafe ssh url | SEC: check for unsafe ssh url | ||||
$ cat >> $HGRCPATH << EOF | $ cat >> $HGRCPATH << EOF | ||||
> [ui] | > [ui] | ||||
> ssh = sh -c "read l; read l; read l" | > ssh = sh -c "read l; read l; read l" | ||||
> EOF | > EOF |