Mercurial > hg
comparison mercurial/minifileset.py @ 38810: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
38809:57af5ee15b35 | 38810:4fe8d1f077b8 |
---|---|
69 return lambda n, s: func1(n, s) and not func2(n, s) | 69 return lambda n, s: func1(n, s) and not func2(n, s) |
70 elif op == 'negate': | 70 elif op == 'negate': |
71 raise error.ParseError(_("can't use negate operator in this context")) | 71 raise error.ParseError(_("can't use negate operator in this context")) |
72 elif op == 'list': | 72 elif op == 'list': |
73 raise error.ParseError(_("can't use a list in this context"), | 73 raise error.ParseError(_("can't use a list in this context"), |
74 hint=_('see hg help "filesets.x or y"')) | 74 hint=_('see \'hg help "filesets.x or y"\'')) |
75 raise error.ProgrammingError('illegal tree: %r' % (tree,)) | 75 raise error.ProgrammingError('illegal tree: %r' % (tree,)) |
76 | 76 |
77 def compile(text): | 77 def compile(text): |
78 """generate a function (path, size) -> bool from filter specification. | 78 """generate a function (path, size) -> bool from filter specification. |
79 | 79 |