Mercurial > public > mercurial-scm > hg-stable
diff tests/test-ssh.t @ 30876:f3807a135e43 stable
wireproto: properly report server Abort during 'getbundle'
Previously Abort raised during 'getbundle' call poorly reported (HTTP-500 for
http, some scary messages for ssh). Abort error have been properly reported for
"push" for a long time, there is not reason to be different for 'getbundle'. We
properly catch such error and report them back the best way available. For
bundle, we issue a valid bundle2 reply (as expected by the client) with an
'error:abort' part. With bundle1 we do as best as we can depending of http or
ssh.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 10 Feb 2017 18:20:58 +0100 |
parents | e118233172fe |
children | 636cf3f7620d 77eaf9539499 |
line wrap: on
line diff
--- a/tests/test-ssh.t Fri Feb 10 18:17:20 2017 +0100 +++ b/tests/test-ssh.t Fri Feb 10 18:20:58 2017 +0100 @@ -548,3 +548,17 @@ abort: push failed on remote [255] +abort during pull is properly reported as such + + $ echo morefoo >> ../remote/foo + $ hg -R ../remote commit --message "more foo to be pulled" + $ cat >> ../remote/.hg/hgrc << EOF + > [extensions] + > crash = ${TESTDIR}/crashgetbundler.py + > EOF + $ hg --config ui.ssh="python $TESTDIR/dummyssh" pull + pulling from ssh://user@dummy/remote + searching for changes + remote: abort: this is an exercise + abort: pull failed on remote + [255]