histedit: make errror message translatable
authorSangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
Tue, 03 Apr 2018 12:16:19 +0530
changeset 37270 a53b87e20132
parent 37269 de4849b67fe0
child 37271 14cd5290c4e6
histedit: make errror message translatable This is a follow up patch to https://phab.mercurial-scm.org/D2394 As suggested by Yuya, this patch makes the error message translatable Differential Revision: https://phab.mercurial-scm.org/D3031
hgext/histedit.py
--- a/hgext/histedit.py	Mon Apr 02 09:18:01 2018 -0700
+++ b/hgext/histedit.py	Tue Apr 03 12:16:19 2018 +0530
@@ -436,7 +436,7 @@
                 rulehash = _ctx.hex()
                 rev = node.bin(rulehash)
             except error.RepoLookupError:
-                raise error.ParseError("invalid changeset %s" % ruleid)
+                raise error.ParseError(_("invalid changeset %s") % ruleid)
         return cls(state, rev)
 
     def verify(self, prev, expected, seen):