Mercurial > hg
diff tests/test-http.t @ 30914: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 | a520aefb96f1 |
children | 161ab32b44a1 |
line wrap: on
line diff
--- a/tests/test-http.t Fri Feb 10 18:17:20 2017 +0100 +++ b/tests/test-http.t Fri Feb 10 18:20:58 2017 +0100 @@ -321,3 +321,15 @@ check error log $ cat error.log + +check abort error reporting while pulling/cloning + + $ $RUNTESTDIR/killdaemons.py + $ hg -R test serve -p $HGPORT -d --pid-file=hg3.pid -E error.log --config extensions.crash=${TESTDIR}/crashgetbundler.py + $ cat hg3.pid >> $DAEMON_PIDS + $ hg clone http://localhost:$HGPORT/ abort-clone + requesting all changes + remote: abort: this is an exercise + abort: pull failed on remote + [255] + $ cat error.log