protocol: do not translate error messages on the remote side
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Fri, 16 Jul 2010 23:02:46 +0200
changeset 11620 86b49e0083a7
parent 11619 48667abddd60
child 11621 e46a8b2331a6
protocol: do not translate error messages on the remote side
mercurial/wireproto.py
--- a/mercurial/wireproto.py	Fri Jul 16 19:02:30 2010 +0200
+++ b/mercurial/wireproto.py	Fri Jul 16 23:02:46 2010 +0200
@@ -229,7 +229,7 @@
 
     # fail early if possible
     if not check_heads():
-        return _('unsynced changes')
+        return 'unsynced changes'
 
     # write bundle data to temporary file because it can be big
     fd, tempname = tempfile.mkstemp(prefix='hg-unbundle-')
@@ -243,7 +243,7 @@
             if not check_heads():
                 # someone else committed/pushed/unbundled while we
                 # were transferring data
-                return _('unsynced changes')
+                return 'unsynced changes'
 
             # push can proceed
             fp.seek(0)