verify, i18n: fix unmarked strings
authorWagner Bruna <wbruna@yahoo.com>
Sun, 29 Mar 2009 19:56:53 -0300
changeset 7926 edf2d83a11aa
parent 7925 c84df11bf721
child 7927 a218ba5f60df
verify, i18n: fix unmarked strings
mercurial/verify.py
--- 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