Submitter | Sean Farley |
---|---|
Date | April 27, 2016, 8:08 p.m. |
Message ID | <e08a7fd47208aed37d6b.1461787710@laptop.office.atlassian.com> |
Download | mbox | patch |
Permalink | /patch/14814/ |
State | Superseded |
Commit | 18c1b107898e8d97dded6247cda2cecdec522c15 |
Headers | show |
Comments
Sean Farley <sean@farley.io> writes: > # HG changeset patch > # User Sean Farley <sean@farley.io> > # Date 1461787703 25200 > # Wed Apr 27 13:08:23 2016 -0700 > # Branch stable > # Node ID e08a7fd47208aed37d6b7d5a6414b444c61b6393 > # Parent cfcd065cae29673c180892ae692e986661a4adc6 > # EXP-Topic doc-only-revset > 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 > @@ -40,10 +40,14 @@ These are the supported infix operators: > forms: ``x | y`` and ``x + y``. > > ``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). I'll send a V2 with feedback gathered on #mercurial. Probably something like this: ``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. If y is not provided, then ``x %`` will mod out the ancestors of the other heads in the repo.
Patch
diff --git a/mercurial/help/revsets.txt b/mercurial/help/revsets.txt --- a/mercurial/help/revsets.txt +++ b/mercurial/help/revsets.txt @@ -40,10 +40,14 @@ These are the supported infix operators: forms: ``x | y`` and ``x + y``. ``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). + ``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; for n == 2, the second parent of changeset in x.