diff mercurial/sshpeer.py @ 29389:98e8313dcd9e

i18n: translate abort messages I found a few places where message given to abort is not translated, I don't find any reason to not translate them.
author liscju <piotr.listkiewicz@gmail.com>
date Tue, 14 Jun 2016 11:53:55 +0200
parents 48fd02dac1d4
children 0dbd788a2dfd
line wrap: on
line diff
--- a/mercurial/sshpeer.py	Tue Jun 07 12:10:01 2016 +0200
+++ b/mercurial/sshpeer.py	Tue Jun 14 11:53:55 2016 +0200
@@ -307,7 +307,7 @@
         r = self._call(cmd, **args)
         if r:
             # XXX needs to be made better
-            raise error.Abort('unexpected remote reply: %s' % r)
+            raise error.Abort(_('unexpected remote reply: %s') % r)
         while True:
             d = fp.read(4096)
             if not d: