Patchwork D1431: sshpeer: making the ssh error message configurable

login
register
mail settings
Submitter phabricator
Date Nov. 16, 2017, 12:58 a.m.
Message ID <c516300bcb8f43cb867291dfbf03e850@localhost.localdomain>
Download mbox | patch
Permalink /patch/25589/
State Not Applicable
Headers show

Comments

phabricator - Nov. 16, 2017, 12:58 a.m.
zuza updated this revision to Diff 3540.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1431?vs=3539&id=3540

REVISION DETAIL
  https://phab.mercurial-scm.org/D1431

AFFECTED FILES
  mercurial/sshpeer.py

CHANGE DETAILS




To: zuza, #hg-reviewers, durham, mitrandir
Cc: mercurial-devel

Patch

diff --git a/mercurial/sshpeer.py b/mercurial/sshpeer.py
--- a/mercurial/sshpeer.py
+++ b/mercurial/sshpeer.py
@@ -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