utility: don't translate commit messages in revselection prompt (issue6016) stable
authorPulkit Goyal <pulkit@yandex-team.ru>
Thu, 01 Nov 2018 21:33:15 +0300
branchstable
changeset 4222 b757f06193d0
parent 4218 da5f7927917c
child 4223 4a3d588e5311
utility: don't translate commit messages in revselection prompt (issue6016) Commit messages should not be translated and should be shown the same. I am not sure if I can add a test for this by creating a commit with non-ascii character in commit message.
CHANGELOG
hgext3rd/evolve/utility.py
--- a/CHANGELOG	Thu Oct 25 18:50:42 2018 +0200
+++ b/CHANGELOG	Thu Nov 01 21:33:15 2018 +0300
@@ -2,6 +2,11 @@
 =========
 
 
+8.3.2 - in progress
+-------------------
+
+  * evolve: not longer attempt to translate revision's descriptions (issue6016)
+
 8.3.1 -- 2018-10-25
 -------------------
 
--- a/hgext3rd/evolve/utility.py	Thu Oct 25 18:50:42 2018 +0200
+++ b/hgext3rd/evolve/utility.py	Thu Nov 01 21:33:15 2018 +0300
@@ -161,8 +161,8 @@
     promptmsg = customheader + "\n"
     for idx, rev in enumerate(revs):
         curctx = repo[rev]
-        revmsg = _("%d: [%s] %s\n" % (idx, curctx,
-                                      curctx.description().split("\n")[0]))
+        revmsg = "%d: [%s] %s\n" % (idx, curctx,
+                                    curctx.description().split("\n")[0])
         promptmsg += revmsg
 
     promptmsg += _("q: quit the prompt\n")