# HG changeset patch # User Sean Farley # Date 2016-04-27 21:02:18 # Node ID 18c1b107898e8d97dded6247cda2cecdec522c15 # Parent 224dd889ecd01034f0cce8afcaa917eb4b2915b6 revsets: add docs for '%' operator diff --git a/mercurial/help/revsets.txt b/mercurial/help/revsets.txt --- a/mercurial/help/revsets.txt +++ b/mercurial/help/revsets.txt @@ -42,6 +42,11 @@ These are the supported infix operators: ``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;