Comments
Patch
@@ -30,7 +30,6 @@
$ cat <<EOF > .hg/hgrc
> [server]
> uncompressed = True
- >
> [hooks]
> changegroup = sh -c "printenv.py changegroup-in-remote 0 ../dummylog"
> EOF
@@ -155,6 +154,7 @@
summary: add
+
find incoming on the remote side
$ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/local
@@ -168,6 +168,7 @@
summary: add
+
find incoming on the remote side (using absolute path)
$ hg incoming -R ../remote -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" "ssh://user@dummy/`pwd`"
@@ -181,6 +182,7 @@
summary: add
+
push
$ hg push
@@ -202,6 +204,7 @@
date: Thu Jan 01 00:00:00 1970 +0000
summary: add
+
$ hg verify
checking changesets
checking manifests
@@ -307,6 +310,8 @@
summary: z
+
+
clone bookmarks
$ hg -R ../remote bookmark test
@@ -444,12 +449,10 @@
$ cd stderr-ordering
$ cat >> localwrite.py << EOF
> from mercurial import exchange, extensions
- >
> def wrappedpush(orig, repo, *args, **kwargs):
> res = orig(repo, *args, **kwargs)
> repo.ui.write('local stdout\n')
> return res
- >
> def extsetup(ui):
> extensions.wrapfunction(exchange, 'push', wrappedpush)
> EOF
@@ -578,3 +581,19 @@
remote: abort: this is an exercise
abort: pull failed on remote
[255]
+
+abort with default error message when there is a ssh problem when pulling
+
+ $ hg pull ssh://brokenrepository
+ pulling from ssh://brokenrepository/
+ remote: ssh: Could not resolve hostname brokenrepository: Name or service not known
+ abort: no suitable response from remote hg!
+ [255]
+
+abort with configured error message when there is a ssh problem when pulling
+
+ $ hg pull ssh://brokenrepository --config ssh.errormessage="SSH error"
+ pulling from ssh://brokenrepository/
+ remote: ssh: Could not resolve hostname brokenrepository: Name or service not known
+ abort: SSH error!
+ [255]
@@ -204,8 +204,10 @@
self._pipeo = doublepipe(self.ui, self._pipeo, self._pipee)
def badresponse():
- self._abort(error.RepoError(_('no suitable response from '
- 'remote hg')))
+ self._abort(error.RepoError(self.ui.config(
+ "ssh",
+ "errormessage",
+ _("no suitable response from remote hg"))))
try:
# skip any noise generated by remote shell