[PATCH] revset: add partial support for ancestor(wdir())
Pulkit Goyal
7895pulkit at gmail.com
Tue Jul 3 12:36:26 UTC 2018
On Sun, Jul 1, 2018 at 7:06 AM Yuya Nishihara <yuya at tcha.org> wrote:
> On Sat, 30 Jun 2018 23:49:55 +0530, Pulkit Goyal wrote:
> > On Sat, Jun 30, 2018 at 8:24 AM Yuya Nishihara <yuya at tcha.org> wrote:
> >
> > > # HG changeset patch
> > > # User Yuya Nishihara <yuya at tcha.org>
> > > # Date 1530281603 -32400
> > > # Fri Jun 29 23:13:23 2018 +0900
> > > # Node ID 1a8d711aa48c9f42fdb6b66886685b5d035e7d1e
> > > # Parent 70f7552b82e5f30f9016de57bcd217dc8061c859
> > > revset: add partial support for ancestor(wdir())
> > >
> > > It's easy, so let's make it happen. I'm not certain if 'wdir() &'
> should
> > > be required.
> >
> > ancestors(wdir()) works without it, but ancestor(wdir()) doesn't
> > > as of now.
> >
> >
> > âDid you mean ancestor(wdir()) works and ancestors(wdir()) does not?
>
> No.
>
> 'wdir() & ancestor(wdir())' => [wdir()]
> 'wdir() & ancestors(wdir())' => [wdir()]
> 'ancestors(wdir())' => [... wdir()]
>
> but
>
> 'ancestor(wdir())' => []
>
âOh, thanks for the explanation. Queued this, many thanks!â
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20180703/6d801c8c/attachment.html>
More information about the Mercurial-devel
mailing list