revset: get rid of redundant error checking from match()
authorYuya Nishihara <yuya@tcha.org>
Sun, 26 Jun 2016 17:16:57 +0900
changeset 29425 4f5531f8ac38
parent 29424 f21e0d91d386
child 29426 26ac04a39e11
revset: get rid of redundant error checking from match() Actually there was no additional error checking. It should be caught by "not all(specs)".
mercurial/revset.py
--- a/mercurial/revset.py	Fri Jun 24 10:32:38 2016 +0100
+++ b/mercurial/revset.py	Sun Jun 26 17:16:57 2016 +0900
@@ -2529,8 +2529,6 @@
 
 def match(ui, spec, repo=None):
     """Create a matcher for a single revision spec."""
-    if not spec:
-        raise error.ParseError(_("empty query"))
     return matchany(ui, [spec], repo=repo)
 
 def matchany(ui, specs, repo=None):