changeset 29425:4f5531f8ac38

revset: get rid of redundant error checking from match() Actually there was no additional error checking. It should be caught by "not all(specs)".
author Yuya Nishihara <yuya@tcha.org>
date Sun, 26 Jun 2016 17:16:57 +0900
parents f21e0d91d386
children 26ac04a39e11
files mercurial/revset.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):