# HG changeset patch # User Sangeet Kumar Mishra # Date 1522737979 -19800 # 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 -r de4849b67fe0 -r a53b87e20132 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):