tests/test-ssh.t
changeset 46977 3f87d2af0bd6
parent 46884 cc3ad5c3af3b
child 47183 8be95673eb8a
equal deleted inserted replaced
46976:f9482db16cef 46977:3f87d2af0bd6
   485   pushing to ssh://user@dummy/*/remote (glob)
   485   pushing to ssh://user@dummy/*/remote (glob)
   486   searching for changes
   486   searching for changes
   487   remote: Permission denied
   487   remote: Permission denied
   488   remote: pretxnopen.hg-ssh hook failed
   488   remote: pretxnopen.hg-ssh hook failed
   489   abort: push failed on remote
   489   abort: push failed on remote
   490   [255]
   490   [100]
   491 
   491 
   492   $ cd $TESTTMP
   492   $ cd $TESTTMP
   493 
   493 
   494 stderr from remote commands should be printed before stdout from local code (issue4336)
   494 stderr from remote commands should be printed before stdout from local code (issue4336)
   495 
   495 
   679   remote: hook failure!
   679   remote: hook failure!
   680   remote: transaction abort!
   680   remote: transaction abort!
   681   remote: rollback completed
   681   remote: rollback completed
   682   remote: pretxnchangegroup.fail hook failed
   682   remote: pretxnchangegroup.fail hook failed
   683   abort: push failed on remote
   683   abort: push failed on remote
   684   [255]
   684   [100]
   685 
   685 
   686 abort during pull is properly reported as such
   686 abort during pull is properly reported as such
   687 
   687 
   688   $ echo morefoo >> ../remote/foo
   688   $ echo morefoo >> ../remote/foo
   689   $ hg -R ../remote commit --message "more foo to be pulled"
   689   $ hg -R ../remote commit --message "more foo to be pulled"
   694   $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull
   694   $ hg --config ui.ssh="\"$PYTHON\" $TESTDIR/dummyssh" pull
   695   pulling from ssh://user@dummy/remote
   695   pulling from ssh://user@dummy/remote
   696   searching for changes
   696   searching for changes
   697   remote: abort: this is an exercise
   697   remote: abort: this is an exercise
   698   abort: pull failed on remote
   698   abort: pull failed on remote
   699   [255]
   699   [100]
   700 
   700 
   701 abort with no error hint when there is a ssh problem when pulling
   701 abort with no error hint when there is a ssh problem when pulling
   702 
   702 
   703   $ hg pull ssh://brokenrepository -e "\"$PYTHON\" \"$TESTDIR/dummyssh\""
   703   $ hg pull ssh://brokenrepository -e "\"$PYTHON\" \"$TESTDIR/dummyssh\""
   704   pulling from ssh://brokenrepository/
   704   pulling from ssh://brokenrepository/