Show More
@@ -546,6 +546,8 b' def optimize(x, small):' | |||||
546 | parse = parser.parser(tokenize, elements).parse |
|
546 | parse = parser.parser(tokenize, elements).parse | |
547 |
|
547 | |||
548 | def match(spec): |
|
548 | def match(spec): | |
|
549 | if not spec: | |||
|
550 | raise error.ParseError(_("empty query")) | |||
549 | tree = parse(spec) |
|
551 | tree = parse(spec) | |
550 | weight, tree = optimize(tree, True) |
|
552 | weight, tree = optimize(tree, True) | |
551 | def mfunc(repo, subset): |
|
553 | def mfunc(repo, subset): |
General Comments 0
You need to be logged in to leave comments.
Login now