changeset 29030:18c1b107898e stable

revsets: add docs for '%' operator
author Sean Farley <sean@farley.io>
date Wed, 27 Apr 2016 14:02:18 -0700
parents 224dd889ecd0
children e63dfbbdbd07
files mercurial/help/revsets.txt
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;