Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
29029:224dd889ecd0 | 29030:18c1b107898e |
---|---|
39 The union of changesets in x and y. There are two alternative short | 39 The union of changesets in x and y. There are two alternative short |
40 forms: ``x | y`` and ``x + y``. | 40 forms: ``x | y`` and ``x + y``. |
41 | 41 |
42 ``x - y`` | 42 ``x - y`` |
43 Changesets in x but not in y. | 43 Changesets in x but not in y. |
44 | |
45 ``x % y`` | |
46 Changesets that are ancestors of x but not ancestors of y (i.e. ::x - ::y). | |
47 This is shorthand notation for ``only(x, y)`` (see below). The second | |
48 argument is optional and, if left out, is equivalent to ``only(x)``. | |
44 | 49 |
45 ``x^n`` | 50 ``x^n`` |
46 The nth parent of x, n == 0, 1, or 2. | 51 The nth parent of x, n == 0, 1, or 2. |
47 For n == 0, x; for n == 1, the first parent of each changeset in x; | 52 For n == 0, x; for n == 1, the first parent of each changeset in x; |
48 for n == 2, the second parent of changeset in x. | 53 for n == 2, the second parent of changeset in x. |