# HG changeset patch # User Sangeet Kumar Mishra # Date 2018-04-03 06:46:19 # Node ID a53b87e20132f73fd034f1ee8beb6d580cf86472 # Parent de4849b67fe04ad454ee0e0a14437db84d0b284e 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 diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -436,7 +436,7 @@ class histeditaction(object): 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):