revsets: add docs for '%' operator stable
authorSean Farley <sean@farley.io>
Wed, 27 Apr 2016 14:02:18 -0700
branchstable
changeset 29030 18c1b107898e
parent 29029 224dd889ecd0
child 29031 e63dfbbdbd07
revsets: add docs for '%' operator
mercurial/help/revsets.txt
--- a/mercurial/help/revsets.txt	Wed Apr 27 19:24:31 2016 -0700
+++ b/mercurial/help/revsets.txt	Wed Apr 27 14:02:18 2016 -0700
@@ -42,6 +42,11 @@
 ``x - y``
   Changesets in x but not in y.
 
+``x % y``
+  Changesets that are ancestors of x but not ancestors of y (i.e. ::x - ::y).
+  This is shorthand notation for ``only(x, y)`` (see below). The second
+  argument is optional and, if left out, is equivalent to ``only(x)``.
+
 ``x^n``
   The nth parent of x, n == 0, 1, or 2.
   For n == 0, x; for n == 1, the first parent of each changeset in x;