[PATCH 2 of 3 STABLE] commands: make the warning message for "patch --partial" translatable

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu Jul 31 12:19:07 CDT 2014


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1406826864 -32400
#      Fri Aug 01 02:14:24 2014 +0900
# Branch stable
# Node ID b75beb040a6c063e3cee6d5b3d52c5c35995af2c
# Parent  761ea8ca9cb6c2be1ce79dd906510cfd93c4e143
commands: make the warning message for "patch --partial" translatable

This patch makes the warning message for "patch --partial"
translatable: this message was introduced by bee0e1cffdd3, and there is
no reason to prevent this from being translatable.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3882,8 +3882,8 @@
                         parents = [repo[node]]
                     if rej:
                         ui.write_err(_("patch applied partially\n"))
-                        ui.write_err(("(fix the .rej files and run "
-                                      "`hg commit --amend`)\n"))
+                        ui.write_err(_("(fix the .rej files and run "
+                                       "`hg commit --amend`)\n"))
                         ret = 1
                         break
 


More information about the Mercurial-devel mailing list