Mercurial > hg-stable
changeset 7926:edf2d83a11aa
verify, i18n: fix unmarked strings
author | Wagner Bruna <wbruna@yahoo.com> |
---|---|
date | Sun, 29 Mar 2009 19:56:53 -0300 |
parents | c84df11bf721 |
children | a218ba5f60df |
files | mercurial/verify.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/verify.py Tue Mar 31 20:40:56 2009 +0200 +++ b/mercurial/verify.py Sun Mar 29 19:56:53 2009 -0300 @@ -72,10 +72,11 @@ def checkentry(obj, i, node, seen, linkrevs, f): lr = obj.linkrev(obj.rev(node)) if lr < 0 or (havecl and lr not in linkrevs): - t = "unexpected" if lr < 0 or lr >= len(cl): - t = "nonexistent" - err(None, _("rev %d point to %s changeset %d") % (i, t, lr), f) + msg = _("rev %d points to nonexistent changeset %d") + else: + msg = _("rev %d points to unexpected changeset %d") + err(None, msg % (i, lr), f) if linkrevs: warn(_(" (expected %s)") % " ".join(map(str,linkrevs))) lr = None # can't be trusted