Mercurial > hg
comparison mercurial/help/revsets.txt @ 30731:b8a188a6f191
help: merge the various operator sections of revsets, filesets and templates
Having sections for specific operator types assumes the user already knows what
type of operators are supported. By having a common heading, the user can
simply lookup help for "(revsets|filesets|templates).operators".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 08 Jan 2017 12:05:10 -0500 |
parents | 5271ae666152 |
children |
comparison
equal
deleted
inserted
replaced
30730:107014f4848b | 30731:b8a188a6f191 |
---|---|
10 | 10 |
11 Special characters can be used in quoted identifiers by escaping them, | 11 Special characters can be used in quoted identifiers by escaping them, |
12 e.g., ``\n`` is interpreted as a newline. To prevent them from being | 12 e.g., ``\n`` is interpreted as a newline. To prevent them from being |
13 interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``. | 13 interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``. |
14 | 14 |
15 Prefix | 15 Operators |
16 ====== | 16 ========= |
17 | 17 |
18 There is a single prefix operator: | 18 There is a single prefix operator: |
19 | 19 |
20 ``not x`` | 20 ``not x`` |
21 Changesets not in x. Short form is ``! x``. | 21 Changesets not in x. Short form is ``! x``. |
22 | |
23 Infix | |
24 ===== | |
25 | 22 |
26 These are the supported infix operators: | 23 These are the supported infix operators: |
27 | 24 |
28 ``x::y`` | 25 ``x::y`` |
29 A DAG range, meaning all changesets that are descendants of x and | 26 A DAG range, meaning all changesets that are descendants of x and |
74 | 71 |
75 ``issue(1234)`` is equivalent to | 72 ``issue(1234)`` is equivalent to |
76 ``grep(r'\bissue[ :]?1234\b|\bbug\(1234\)')`` | 73 ``grep(r'\bissue[ :]?1234\b|\bbug\(1234\)')`` |
77 in this case. This matches against all of "issue 1234", "issue:1234", | 74 in this case. This matches against all of "issue 1234", "issue:1234", |
78 "issue1234" and "bug(1234)". | 75 "issue1234" and "bug(1234)". |
79 | |
80 Postfix | |
81 ======= | |
82 | 76 |
83 There is a single postfix operator: | 77 There is a single postfix operator: |
84 | 78 |
85 ``x^`` | 79 ``x^`` |
86 Equivalent to ``x^1``, the first parent of each changeset in x. | 80 Equivalent to ``x^1``, the first parent of each changeset in x. |