Show More
@@ -12,11 +12,17 b' Special characters can be used in quoted' | |||
|
12 | 12 | e.g., ``\n`` is interpreted as a newline. To prevent them from being |
|
13 | 13 | interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``. |
|
14 | 14 | |
|
15 | Prefix | |
|
16 | ====== | |
|
17 | ||
|
15 | 18 | There is a single prefix operator: |
|
16 | 19 | |
|
17 | 20 | ``not x`` |
|
18 | 21 | Changesets not in x. Short form is ``! x``. |
|
19 | 22 | |
|
23 | Infix | |
|
24 | ===== | |
|
25 | ||
|
20 | 26 | These are the supported infix operators: |
|
21 | 27 | |
|
22 | 28 | ``x::y`` |
@@ -71,16 +77,24 b' These are the supported infix operators:' | |||
|
71 | 77 | in this case. This matches against all of "issue 1234", "issue:1234", |
|
72 | 78 | "issue1234" and "bug(1234)". |
|
73 | 79 | |
|
80 | Postfix | |
|
81 | ======= | |
|
82 | ||
|
74 | 83 | There is a single postfix operator: |
|
75 | 84 | |
|
76 | 85 | ``x^`` |
|
77 | 86 | Equivalent to ``x^1``, the first parent of each changeset in x. |
|
78 | 87 | |
|
88 | Predicates | |
|
89 | ========== | |
|
79 | 90 | |
|
80 | 91 | The following predicates are supported: |
|
81 | 92 | |
|
82 | 93 | .. predicatesmarker |
|
83 | 94 | |
|
95 | Aliases | |
|
96 | ======= | |
|
97 | ||
|
84 | 98 | New predicates (known as "aliases") can be defined, using any combination of |
|
85 | 99 | existing predicates or other aliases. An alias definition looks like:: |
|
86 | 100 | |
@@ -102,6 +116,8 b' For example,' | |||
|
102 | 116 | defines three aliases, ``h``, ``d``, and ``rs``. ``rs(0:tip, author)`` is |
|
103 | 117 | exactly equivalent to ``reverse(sort(0:tip, author))``. |
|
104 | 118 | |
|
119 | Equivalents | |
|
120 | =========== | |
|
105 | 121 | |
|
106 | 122 | Command line equivalents for :hg:`log`:: |
|
107 | 123 | |
@@ -114,6 +130,9 b' Command line equivalents for :hg:`log`::' | |||
|
114 | 130 | -P x -> !::x |
|
115 | 131 | -l x -> limit(expr, x) |
|
116 | 132 | |
|
133 | Examples | |
|
134 | ======== | |
|
135 | ||
|
117 | 136 | Some sample queries: |
|
118 | 137 | |
|
119 | 138 | - Changesets on the default branch:: |
General Comments 0
You need to be logged in to leave comments.
Login now