# HG changeset patch # User Sean Farley # Date 1461790938 25200 # Node ID 18c1b107898e8d97dded6247cda2cecdec522c15 # Parent 224dd889ecd01034f0cce8afcaa917eb4b2915b6 revsets: add docs for '%' operator diff -r 224dd889ecd0 -r 18c1b107898e 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;