Mercurial > hg
diff mercurial/help/revsets.txt @ 29030:18c1b107898e stable
revsets: add docs for '%' operator
author | Sean Farley <sean@farley.io> |
---|---|
date | Wed, 27 Apr 2016 14:02:18 -0700 |
parents | 97811ff79647 |
children | 96358865edb3 |
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;