# HG changeset patch # User Yuya Nishihara # Date 1466929017 -32400 # Node ID 4f5531f8ac386d793f90ec52011b1c7821741ad0 # Parent f21e0d91d386fd4e81568b7a3888bb47f86e199d revset: get rid of redundant error checking from match() Actually there was no additional error checking. It should be caught by "not all(specs)". diff -r f21e0d91d386 -r 4f5531f8ac38 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):