Mercurial > hg
comparison tests/test-ssh.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 | e118233172fe |
children | 636cf3f7620d 77eaf9539499 |
comparison
equal
deleted
inserted
replaced
30913:d70971a3ae80 | 30914:f3807a135e43 |
---|---|
546 remote: rollback completed | 546 remote: rollback completed |
547 remote: pretxnchangegroup.fail hook failed | 547 remote: pretxnchangegroup.fail hook failed |
548 abort: push failed on remote | 548 abort: push failed on remote |
549 [255] | 549 [255] |
550 | 550 |
551 abort during pull is properly reported as such | |
552 | |
553 $ echo morefoo >> ../remote/foo | |
554 $ hg -R ../remote commit --message "more foo to be pulled" | |
555 $ cat >> ../remote/.hg/hgrc << EOF | |
556 > [extensions] | |
557 > crash = ${TESTDIR}/crashgetbundler.py | |
558 > EOF | |
559 $ hg --config ui.ssh="python $TESTDIR/dummyssh" pull | |
560 pulling from ssh://user@dummy/remote | |
561 searching for changes | |
562 remote: abort: this is an exercise | |
563 abort: pull failed on remote | |
564 [255] |