D4059: help: add quotes to a few commands we point to
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Aug 2 18:50:49 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4fe8d1f077b8: help: add quotes to a few commands we point to (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4059?vs=9798&id=9812
REVISION DETAIL
https://phab.mercurial-scm.org/D4059
AFFECTED FILES
mercurial/fileset.py
mercurial/minifileset.py
mercurial/revset.py
tests/test-fileset.t
tests/test-revset2.t
CHANGE DETAILS
diff --git a/tests/test-revset2.t b/tests/test-revset2.t
--- a/tests/test-revset2.t
+++ b/tests/test-revset2.t
@@ -346,15 +346,15 @@
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
(symbol '0')
(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
diff --git a/tests/test-fileset.t b/tests/test-fileset.t
--- a/tests/test-fileset.t
+++ b/tests/test-fileset.t
@@ -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 --git a/mercurial/revset.py b/mercurial/revset.py
--- a/mercurial/revset.py
+++ b/mercurial/revset.py
@@ -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 --git a/mercurial/minifileset.py b/mercurial/minifileset.py
--- a/mercurial/minifileset.py
+++ b/mercurial/minifileset.py
@@ -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 --git a/mercurial/fileset.py b/mercurial/fileset.py
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -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)
To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list