[PATCH 2 of 3] help: move revsets.## documentation into infix section

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


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1474478585 0
#      Wed Sep 21 17:23:05 2016 +0000
# Node ID 2ed8375eb6ca1fe2f00fac49f1b9c79d705a522a
# Parent  40410e96c0a2de344edd5a25a7d996731124ee45
# Available At https://bitbucket.org/timeless/mercurial-crew
#              hg pull https://bitbucket.org/timeless/mercurial-crew -r 2ed8375eb6ca
help: move revsets.## documentation into infix section

diff -r 40410e96c0a2 -r 2ed8375eb6ca mercurial/help/revsets.txt
--- a/mercurial/help/revsets.txt	Wed Sep 21 16:33:37 2016 +0000
+++ b/mercurial/help/revsets.txt	Wed Sep 21 17:23:05 2016 +0000
@@ -55,6 +55,22 @@
 ``x~n``
   The nth first ancestor of x; ``x~0`` is x; ``x~3`` is ``x^^^``.
 
+``x ## y``
+  Concatenate strings and identifiers into one string.
+
+  All other prefix, infix and postfix operators have lower priority than
+  ``##``. For example, ``a1 ## a2~2`` is equivalent to ``(a1 ## a2)~2``.
+
+  For example::
+
+    [revsetalias]
+    issue(a1) = grep(r'\bissue[ :]?' ## a1 ## r'\b|\bbug\(' ## a1 ## r'\)')
+
+    ``issue(1234)`` is equivalent to
+    ``grep(r'\bissue[ :]?1234\b|\bbug\(1234\)')``
+    in this case. This matches against all of "issue 1234", "issue:1234",
+    "issue1234" and "bug(1234)".
+
 There is a single postfix operator:
 
 ``x^``
@@ -86,18 +102,6 @@
 defines three aliases, ``h``, ``d``, and ``rs``. ``rs(0:tip, author)`` is
 exactly equivalent to ``reverse(sort(0:tip, author))``.
 
-An infix operator ``##`` can concatenate strings and identifiers into
-one string. For example::
-
-  [revsetalias]
-  issue(a1) = grep(r'\bissue[ :]?' ## a1 ## r'\b|\bbug\(' ## a1 ## r'\)')
-
-``issue(1234)`` is equivalent to ``grep(r'\bissue[ :]?1234\b|\bbug\(1234\)')``
-in this case. This matches against all of "issue 1234", "issue:1234",
-"issue1234" and "bug(1234)".
-
-All other prefix, infix and postfix operators have lower priority than
-``##``. For example, ``a1 ## a2~2`` is equivalent to ``(a1 ## a2)~2``.
 
 Command line equivalents for :hg:`log`::
 


More information about the Mercurial-devel mailing list