[PATCH 3 of 3] help: add sections for revsets

timeless timeless at fmr.im
Wed Sep 21 13:25:11 EDT 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1474478613 0
#      Wed Sep 21 17:23:33 2016 +0000
# Node ID 692f1e17fb708d83e6022fc1ef1fb69366d7ee45
# Parent  2ed8375eb6ca1fe2f00fac49f1b9c79d705a522a
# Available At https://bitbucket.org/timeless/mercurial-crew
#              hg pull https://bitbucket.org/timeless/mercurial-crew -r 692f1e17fb70
help: add sections for revsets

diff -r 2ed8375eb6ca -r 692f1e17fb70 mercurial/help/revsets.txt
--- a/mercurial/help/revsets.txt	Wed Sep 21 17:23:05 2016 +0000
+++ b/mercurial/help/revsets.txt	Wed Sep 21 17:23:33 2016 +0000
@@ -12,11 +12,17 @@
 e.g., ``\n`` is interpreted as a newline. To prevent them from being
 interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``.
 
+Prefix
+======
+
 There is a single prefix operator:
 
 ``not x``
   Changesets not in x. Short form is ``! x``.
 
+Infix
+=====
+
 These are the supported infix operators:
 
 ``x::y``
@@ -71,16 +77,24 @@
     in this case. This matches against all of "issue 1234", "issue:1234",
     "issue1234" and "bug(1234)".
 
+Postfix
+=======
+
 There is a single postfix operator:
 
 ``x^``
   Equivalent to ``x^1``, the first parent of each changeset in x.
 
+Predicates
+==========
 
 The following predicates are supported:
 
 .. predicatesmarker
 
+Aliases
+=======
+
 New predicates (known as "aliases") can be defined, using any combination of
 existing predicates or other aliases. An alias definition looks like::
 
@@ -102,6 +116,8 @@
 defines three aliases, ``h``, ``d``, and ``rs``. ``rs(0:tip, author)`` is
 exactly equivalent to ``reverse(sort(0:tip, author))``.
 
+Equivalents
+===========
 
 Command line equivalents for :hg:`log`::
 
@@ -114,6 +130,9 @@
   -P x  ->  !::x
   -l x  ->  limit(expr, x)
 
+Examples
+========
+
 Some sample queries:
 
 - Changesets on the default branch::


More information about the Mercurial-devel mailing list