comparison tests/test-ssh.t @ 44860:5d77f571a563

sshpeer: make client print (likely) server errors on stderr (BC) so `hg clone -q` or `hg pull -q` don't print `abort: no suitable response from remote hg!` with no indication of what went wrong. There are other errors still silenced by -q (like failing to push due to a server hook), but the current change covers a good fraction of the problem (all errors setting up the ssh connection, no such remote repository, no access to the repository). Differential Revision: https://phab.mercurial-scm.org/D8584
author Valentin Gatien-Baron <valentin.gatienbaron@gmail.com>
date Mon, 25 May 2020 22:47:12 -0400
parents 15e26cc0e2c6
children d68618954ade
comparison
equal deleted inserted replaced
44859:15e26cc0e2c6 44860:5d77f571a563
45 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local 45 $ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
46 remote: abort: repository nonexistent not found! 46 remote: abort: repository nonexistent not found!
47 abort: no suitable response from remote hg! 47 abort: no suitable response from remote hg!
48 [255] 48 [255]
49 $ hg clone -q -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local 49 $ hg clone -q -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/nonexistent local
50 remote: abort: repository nonexistent not found!
50 abort: no suitable response from remote hg! 51 abort: no suitable response from remote hg!
51 [255] 52 [255]
52 53
53 non-existent absolute path 54 non-existent absolute path
54 55