tests/test-ssh-bundle1.t
branchstable
changeset 30914 f3807a135e43
parent 30563 e118233172fe
child 31008 636cf3f7620d
--- a/tests/test-ssh-bundle1.t	Fri Feb 10 18:17:20 2017 +0100
+++ b/tests/test-ssh-bundle1.t	Fri Feb 10 18:20:58 2017 +0100
@@ -543,3 +543,20 @@
   remote: abort: pretxnchangegroup.fail hook failed
   [1]
 
+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
+  adding changesets
+  remote: abort: this is an exercise
+  transaction abort!
+  rollback completed
+  abort: stream ended unexpectedly (got 0 bytes, expected 4)
+  [255]