Mercurial > hg
diff mercurial/scmutil.py @ 14483:973959fbe8ec
readrequires: provide easier to understand error message
NEW:
$ hg id
abort: unknown repository format: requires feature 'foo' (upgrade Mercurial)!
OLD:
$ hg id
abort: requirement 'foo' not supported!
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Tue, 31 May 2011 19:16:25 +0200 |
parents | 58b36e9ea783 |
children | 4582a4dd1817 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Tue May 31 19:16:18 2011 +0200 +++ b/mercurial/scmutil.py Tue May 31 19:16:25 2011 +0200 @@ -698,6 +698,6 @@ requirements = set(opener.read("requires").splitlines()) for r in requirements: if r not in supported: - raise error.RequirementError( - _("requirement '%s' not supported") % r) + raise error.RequirementError(_("unknown repository format: " + "requires feature '%s' (upgrade Mercurial)") % r) return requirements