##// END OF EJS Templates
revset and fileset: fix typos in parser error messages
Mads Kiilerich -
r14717:c8ee2729 stable
parent child Browse files
Show More
@@ -282,7 +282,7 b' def size(mctx, x):'
282 - 4k - 1MB (files from 4096 bytes to 1048576 bytes)
282 - 4k - 1MB (files from 4096 bytes to 1048576 bytes)
283 """
283 """
284
284
285 expr = getstring(x, _("grep requires a pattern")).strip()
285 expr = getstring(x, _("size requires an expression")).strip()
286 if '-' in expr: # do we have a range?
286 if '-' in expr: # do we have a range?
287 a, b = expr.split('-', 1)
287 a, b = expr.split('-', 1)
288 a = _sizetoint(a)
288 a = _sizetoint(a)
@@ -417,7 +417,7 b' def follow(repo, subset, x):'
417 l = getargs(x, 0, 1, _("follow takes no arguments or a filename"))
417 l = getargs(x, 0, 1, _("follow takes no arguments or a filename"))
418 p = repo['.'].rev()
418 p = repo['.'].rev()
419 if l:
419 if l:
420 x = getstring(l[0], "follow expected a filename")
420 x = getstring(l[0], _("follow expected a filename"))
421 s = set(ctx.rev() for ctx in repo['.'][x].ancestors())
421 s = set(ctx.rev() for ctx in repo['.'][x].ancestors())
422 else:
422 else:
423 s = set(repo.changelog.ancestors(p))
423 s = set(repo.changelog.ancestors(p))
@@ -604,7 +604,7 b' def outgoing(repo, subset, x):'
604 """
604 """
605 import hg # avoid start-up nasties
605 import hg # avoid start-up nasties
606 # i18n: "outgoing" is a keyword
606 # i18n: "outgoing" is a keyword
607 l = getargs(x, 0, 1, _("outgoing requires a repository path"))
607 l = getargs(x, 0, 1, _("outgoing takes one or no arguments"))
608 # i18n: "outgoing" is a keyword
608 # i18n: "outgoing" is a keyword
609 dest = l and getstring(l[0], _("outgoing requires a repository path")) or ''
609 dest = l and getstring(l[0], _("outgoing requires a repository path")) or ''
610 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default')
610 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default')
General Comments 0
You need to be logged in to leave comments. Login now