Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/fileset.py @ 38850:4fe8d1f077b8
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 02 Aug 2018 13:35:13 -0700 |
parents | b9162ea1b815 |
children | 6371ab78c3b3 |
comparison
equal
deleted
inserted
replaced
38849:57af5ee15b35 | 38850:4fe8d1f077b8 |
---|---|
65 def negatematch(mctx, x): | 65 def negatematch(mctx, x): |
66 raise error.ParseError(_("can't use negate operator in this context")) | 66 raise error.ParseError(_("can't use negate operator in this context")) |
67 | 67 |
68 def listmatch(mctx, *xs): | 68 def listmatch(mctx, *xs): |
69 raise error.ParseError(_("can't use a list in this context"), | 69 raise error.ParseError(_("can't use a list in this context"), |
70 hint=_('see hg help "filesets.x or y"')) | 70 hint=_('see \'hg help "filesets.x or y"\'')) |
71 | 71 |
72 def func(mctx, a, b): | 72 def func(mctx, a, b): |
73 funcname = getsymbol(a) | 73 funcname = getsymbol(a) |
74 if funcname in symbols: | 74 if funcname in symbols: |
75 return symbols[funcname](mctx, b) | 75 return symbols[funcname](mctx, b) |