# HG changeset patch # User Yuya Nishihara # Date 2016-06-26 08:16:57 # 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 --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -2529,8 +2529,6 @@ def posttreebuilthook(tree, repo): 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):