Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revset.py @ 14717:c8ee2729e89f stable
revset and fileset: fix typos in parser error messages
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 22 Jun 2011 01:55:00 +0200 |
parents | a97ebfec8c29 |
children | b9faf94ee196 |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Jun 24 00:18:41 2011 +0200 +++ b/mercurial/revset.py Wed Jun 22 01:55:00 2011 +0200 @@ -417,7 +417,7 @@ l = getargs(x, 0, 1, _("follow takes no arguments or a filename")) p = repo['.'].rev() if l: - x = getstring(l[0], "follow expected a filename") + x = getstring(l[0], _("follow expected a filename")) s = set(ctx.rev() for ctx in repo['.'][x].ancestors()) else: s = set(repo.changelog.ancestors(p)) @@ -604,7 +604,7 @@ """ import hg # avoid start-up nasties # i18n: "outgoing" is a keyword - l = getargs(x, 0, 1, _("outgoing requires a repository path")) + l = getargs(x, 0, 1, _("outgoing takes one or no arguments")) # i18n: "outgoing" is a keyword dest = l and getstring(l[0], _("outgoing requires a repository path")) or '' dest = repo.ui.expandpath(dest or 'default-push', dest or 'default')