dagparser: translate and lowercase error messages stable
authorMartin Geisler <mg@aragost.com>
Mon, 30 Aug 2010 17:17:20 +0200
branchstable
changeset 12134 26d86a6cf2af
parent 12133 b046b90c4ae5
child 12142 a55e3c50868f
child 12145 c407b4ca666e
dagparser: translate and lowercase error messages
mercurial/dagparser.py
--- a/mercurial/dagparser.py	Mon Aug 30 17:11:51 2010 +0200
+++ b/mercurial/dagparser.py	Mon Aug 30 17:17:20 2010 +0200
@@ -268,7 +268,7 @@
                 s += c
                 i += 1
                 c = nextch()
-            raise util.Abort("invalid character in dag description: %s..." % s)
+            raise util.Abort(_("invalid character in dag description: %s...") % s)
 
 def dagtextlines(events,
                  addspaces=True,
@@ -296,14 +296,14 @@
 
                 # sanity check
                 if r != wantr:
-                    raise util.Abort("Expected id %i, got %i" % (wantr, r))
+                    raise util.Abort(_("expected id %i, got %i") % (wantr, r))
                 if not ps:
                     ps = [-1]
                 else:
                     for p in ps:
                         if p >= r:
-                            raise util.Abort("Parent id %i is larger than "
-                                             "current id %i" % (p, r))
+                            raise util.Abort(_("parent id %i is larger than "
+                                               "current id %i") % (p, r))
                 wantr += 1
 
                 # new root?