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