[PATCH] verify, i18n: fix unmarked strings

Wagner Bruna wagner.bruna at gmail.com
Mon Mar 30 03:04:19 CDT 2009


# HG changeset patch
# User Wagner Bruna <wbruna at yahoo.com>
# Date 1238367413 10800
# Node ID a170d754112a7c316a5c2c68292e4f4676769a1c
# Parent  67e59a9886d5902de5b94cd2552d854b6292ec63
verify, i18n: fix unmarked strings

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -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


More information about the Mercurial-devel mailing list