Patchwork D3031: histedit: make errror message translatable

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 6:53 a.m.
Message ID <differential-rev-PHID-DREV-nz6o53m3s3o2va7ayw3a-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30156/
State Superseded
Headers show

Comments

phabricator - April 3, 2018, 6:53 a.m.
sangeet259 created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This is a follow up patch to https://phab.mercurial-scm.org/D2394
  As suggested by Yuya, this patch makes the error message translatable

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3031

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: sangeet259, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -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):