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
--- 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)
--- 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):
--- 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"))
--- 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
--- 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