Mercurial > hg
diff mercurial/revset.py @ 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 | bcefb25acf52 |
children | 9e8d258708bb |
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):