Mercurial > hg-stable
changeset 11385:e5a2134c083b
revset: nicer exception for empty queries
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 18 Jun 2010 17:34:13 -0500 |
parents | c04084753990 |
children | 181936ec9bfb |
files | mercurial/revset.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Jun 18 21:35:21 2010 +0200 +++ b/mercurial/revset.py Fri Jun 18 17:34:13 2010 -0500 @@ -546,6 +546,8 @@ parse = parser.parser(tokenize, elements).parse def match(spec): + if not spec: + raise error.ParseError(_("empty query")) tree = parse(spec) weight, tree = optimize(tree, True) def mfunc(repo, subset):