# HG changeset patch # User timeless # Date 1474478585 0 # Node ID 96358865edb30824ed1f2d35e3037830176a3f3c # Parent d532ef155b0e5b8427a520191fcf6e591d766625 help: move revsets.## documentation into infix section diff -r d532ef155b0e -r 96358865edb3 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`::