# HG changeset patch # User Martin von Zweigbergk # Date 1533242113 25200 # Node ID 4fe8d1f077b82af5d6db4d458727a5ffddf75712 # Parent 57af5ee15b35cb6cffbebffd7f4511dac7848602 help: add quotes to a few commands we point to I didn't know that 'hg help "revsets.x or y"' was valid syntax, so the quoting is extra useful here to make it clear that that is an actual command. Differential Revision: https://phab.mercurial-scm.org/D4059 diff -r 57af5ee15b35 -r 4fe8d1f077b8 mercurial/fileset.py --- a/mercurial/fileset.py Wed Aug 01 23:25:35 2018 -0400 +++ b/mercurial/fileset.py Thu Aug 02 13:35:13 2018 -0700 @@ -67,7 +67,7 @@ def listmatch(mctx, *xs): raise error.ParseError(_("can't use a list in this context"), - hint=_('see hg help "filesets.x or y"')) + hint=_('see \'hg help "filesets.x or y"\'')) def func(mctx, a, b): funcname = getsymbol(a) diff -r 57af5ee15b35 -r 4fe8d1f077b8 mercurial/minifileset.py --- a/mercurial/minifileset.py Wed Aug 01 23:25:35 2018 -0400 +++ b/mercurial/minifileset.py Thu Aug 02 13:35:13 2018 -0700 @@ -71,7 +71,7 @@ raise error.ParseError(_("can't use negate operator in this context")) elif op == 'list': raise error.ParseError(_("can't use a list in this context"), - hint=_('see hg help "filesets.x or y"')) + hint=_('see \'hg help "filesets.x or y"\'')) raise error.ProgrammingError('illegal tree: %r' % (tree,)) def compile(text): diff -r 57af5ee15b35 -r 4fe8d1f077b8 mercurial/revset.py --- a/mercurial/revset.py Wed Aug 01 23:25:35 2018 -0400 +++ b/mercurial/revset.py Thu Aug 02 13:35:13 2018 -0700 @@ -242,7 +242,7 @@ def listset(repo, subset, *xs, **opts): raise error.ParseError(_("can't use a list in this context"), - hint=_('see hg help "revsets.x or y"')) + hint=_('see \'hg help "revsets.x or y"\'')) def keyvaluepair(repo, subset, k, v, order): raise error.ParseError(_("can't use a key-value pair in this context")) diff -r 57af5ee15b35 -r 4fe8d1f077b8 tests/test-fileset.t --- a/tests/test-fileset.t Wed Aug 01 23:25:35 2018 -0400 +++ b/tests/test-fileset.t Thu Aug 02 13:35:13 2018 -0700 @@ -118,7 +118,7 @@ (symbol 'b') (symbol 'c')) hg: parse error: can't use a list in this context - (see hg help "filesets.x or y") + (see 'hg help "filesets.x or y"') [255] $ fileset '"path":.' @@ -298,7 +298,7 @@ [255] $ fileset '(1k, 2k)' hg: parse error: can't use a list in this context - (see hg help "filesets.x or y") + (see 'hg help "filesets.x or y"') [255] $ fileset 'size(1k)' 1k diff -r 57af5ee15b35 -r 4fe8d1f077b8 tests/test-revset2.t --- a/tests/test-revset2.t Wed Aug 01 23:25:35 2018 -0400 +++ b/tests/test-revset2.t Thu Aug 02 13:35:13 2018 -0700 @@ -346,7 +346,7 @@ test ',' in `_list` $ log '0,1' hg: parse error: can't use a list in this context - (see hg help "revsets.x or y") + (see 'hg help "revsets.x or y"') [255] $ try '0,1,2' (list @@ -354,7 +354,7 @@ (symbol '1') (symbol '2')) hg: parse error: can't use a list in this context - (see hg help "revsets.x or y") + (see 'hg help "revsets.x or y"') [255] test that chained `or` operations make balanced addsets