Show More
@@ -268,7 +268,7 b' def parsedag(desc):' | |||
|
268 | 268 | s += c |
|
269 | 269 | i += 1 |
|
270 | 270 | c = nextch() |
|
271 | raise util.Abort("invalid character in dag description: %s..." % s) | |
|
271 | raise util.Abort(_("invalid character in dag description: %s...") % s) | |
|
272 | 272 | |
|
273 | 273 | def dagtextlines(events, |
|
274 | 274 | addspaces=True, |
@@ -296,14 +296,14 b' def dagtextlines(events,' | |||
|
296 | 296 | |
|
297 | 297 | # sanity check |
|
298 | 298 | if r != wantr: |
|
299 |
raise util.Abort(" |
|
|
299 | raise util.Abort(_("expected id %i, got %i") % (wantr, r)) | |
|
300 | 300 | if not ps: |
|
301 | 301 | ps = [-1] |
|
302 | 302 | else: |
|
303 | 303 | for p in ps: |
|
304 | 304 | if p >= r: |
|
305 |
raise util.Abort(" |
|
|
306 | "current id %i" % (p, r)) | |
|
305 | raise util.Abort(_("parent id %i is larger than " | |
|
306 | "current id %i") % (p, r)) | |
|
307 | 307 | wantr += 1 |
|
308 | 308 | |
|
309 | 309 | # new root? |
@@ -7,6 +7,7 b'' | |||
|
7 | 7 | |
|
8 | 8 | import re |
|
9 | 9 | import util |
|
10 | from i18n import _ | |
|
10 | 11 | |
|
11 | 12 | class match(object): |
|
12 | 13 | def __init__(self, root, cwd, patterns, include=[], exclude=[], |
@@ -214,8 +215,8 b' def _buildmatch(pats, tail):' | |||
|
214 | 215 | try: |
|
215 | 216 | re.compile('(?:%s)' % _regex(k, p, tail)) |
|
216 | 217 | except re.error: |
|
217 | raise util.Abort("invalid pattern (%s): %s" % (k, p)) | |
|
218 | raise util.Abort("invalid pattern") | |
|
218 | raise util.Abort(_("invalid pattern (%s): %s") % (k, p)) | |
|
219 | raise util.Abort(_("invalid pattern")) | |
|
219 | 220 | |
|
220 | 221 | def _normalize(names, default, root, cwd): |
|
221 | 222 | pats = [] |
General Comments 0
You need to be logged in to leave comments.
Login now