Mercurial > hg
diff hgext/histedit.py @ 37268:a53b87e20132
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
author | Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com> |
---|---|
date | Tue, 03 Apr 2018 12:16:19 +0530 |
parents | 3809eafedf2c |
children | 8474005fcfe2 |
line wrap: on
line diff
--- 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):