# HG changeset patch # User timeless # Date 2015-12-23 17:54:13 # Node ID 737ffdabbde9160af0a1182f75c7cfee0f71f7b7 # Parent c60a9c16ae25847c328aaf090016ac072c201e1a fileset: add hint for list error to use or diff --git a/mercurial/fileset.py b/mercurial/fileset.py --- a/mercurial/fileset.py +++ b/mercurial/fileset.py @@ -128,7 +128,8 @@ def minusset(mctx, x, y): return [f for f in xl if f not in yl] def listset(mctx, a, b): - raise error.ParseError(_("can't use a list in this context")) + raise error.ParseError(_("can't use a list in this context"), + hint=_('see hg help "filesets.x or y"')) # symbols are callable like: # fun(mctx, x) diff --git a/tests/test-fileset.t b/tests/test-fileset.t --- a/tests/test-fileset.t +++ b/tests/test-fileset.t @@ -135,6 +135,10 @@ Test files properties $ fileset 'size("bar")' hg: parse error: couldn't parse size: bar [255] + $ fileset '(1k, 2k)' + hg: parse error: can't use a list in this context + (see hg help "filesets.x or y") + [255] $ fileset 'size(1k)' 1k $ fileset '(1k or 2k) and size("< 2k")'