mq: Do not translate import message that are appended to commits. stable
authorDavid Soria Parra <dsp@php.net>
Wed, 20 Jan 2010 23:23:18 +0100
branchstable
changeset 10274 04207f5e7344
parent 10269 acf001ee5ef8
child 10275 3a1f29b63b9f
mq: Do not translate import message that are appended to commits. We should not translate the "imported patch" message. The translated message confuses the detection whether the user has not updated the commit message yet. We try to avoid to translate generated commit messages.
hgext/mq.py
--- a/hgext/mq.py	Wed Jan 20 13:50:06 2010 +0900
+++ b/hgext/mq.py	Wed Jan 20 23:23:18 2010 +0100
@@ -613,10 +613,10 @@
 
             message = ph.message
             if not message:
-                message = _("imported patch %s\n") % patchname
+                message = "imported patch %s\n" % patchname
             else:
                 if list:
-                    message.append(_("\nimported patch %s") % patchname)
+                    message.append("\nimported patch %s" % patchname)
                 message = '\n'.join(message)
 
             if ph.haspatch: