##// END OF EJS Templates
issue6528: add a config option to control the fixing on the fly...
issue6528: add a config option to control the fixing on the fly This will allow people who know to be safe to avoid any performance overhead (and other potential issue). Differential Revision: https://phab.mercurial-scm.org/D11271

File last commit:

r48387:be496e34 default
r48630:2813d406 5.9rc1 stable
Show More
test-ssh-repoerror.t
72 lines | 2.0 KiB | text/troff | Tads3Lexer
/ tests / test-ssh-repoerror.t
tests: blacklist a handful of test with `rhg` or `chg`...
r48387 #require unix-permissions no-root no-windows no-rhg
XXX-RHG this test hangs if `hg` is really `rhg`. This was hidden by the use of
`alias hg=rhg` by run-tests.py. With such alias removed, this test is revealed
buggy. This need to be resolved sooner than later.
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418
initial setup
$ cat << EOF >> $HGRCPATH
> [ui]
Matt Harbison
tests: quote PYTHON usage...
r39743 > ssh="$PYTHON" "$TESTDIR/dummyssh"
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 > EOF
repository itself is non-readable
---------------------------------
$ hg init no-read
$ hg id ssh://user@dummy/no-read
000000000000
$ chmod a-rx no-read
$ hg id ssh://user@dummy/no-read
Pulkit Goyal
py3: more globing of things to make output compatible between py2 and py3...
r40263 remote: abort: Permission denied: *$TESTTMP/no-read/.hg* (glob)
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: no suitable response from remote hg
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 [255]
special case files are visible, but unreadable
----------------------------------------------
This is "similar" to the test above, but the directory is "traversable". This
seems an unexpected case in real life, but we test it anyway.
$ hg init other
$ hg id ssh://user@dummy/other
000000000000
$ for item in `find other | sort -r` ; do
> chmod a-r $item
> done
$ hg id ssh://user@dummy/other
Yuya Nishihara
dispatch: quote filename in IOError as well...
r41465 remote: abort: Permission denied: '$TESTTMP/other/.hg/requires'
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: no suitable response from remote hg
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 [255]
directory toward the repository is read only
--------------------------------------------
$ mkdir deep
$ hg init deep/nested
$ hg id ssh://user@dummy/deep/nested
000000000000
$ chmod a-rx deep
$ hg id ssh://user@dummy/deep/nested
Pulkit Goyal
py3: more globing of things to make output compatible between py2 and py3...
r40263 remote: abort: Permission denied: *$TESTTMP/deep/nested/.hg* (glob)
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: no suitable response from remote hg
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 [255]
repository has wrong requirement
--------------------------------
$ hg init repo-future
$ hg id ssh://user@dummy/repo-future
000000000000
$ echo flying-car >> repo-future/.hg/requires
$ hg id ssh://user@dummy/repo-future
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 remote: abort: repository requires features unknown to this Mercurial: flying-car
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 remote: (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
Martin von Zweigbergk
errors: remove trailing "!" from some error messages for consistency...
r46518 abort: no suitable response from remote hg
Boris Feld
test: add a test file that displays ssh behavior in front of various errors...
r39418 [255]