[PATCH 2 of 2] templatekw: introduce the changessincelatesttag keyword

Yuya Nishihara yuya at tcha.org
Mon Jun 29 08:15:44 CDT 2015


On Mon, 29 Jun 2015 02:15:20 -0700, Pierre-Yves David wrote:
> On 06/28/2015 02:00 PM, Matt Harbison wrote:
> > On Sun, 28 Jun 2015 12:51:38 -0400, Matt Harbison
> > <mharbison72 at gmail.com> wrote:
> >> $ ../hg log -r 'first(. + wdir() & file("**"))'
> >> changeset:   27772:d8cc3dd1acc6
> >> tag:         tip
> >> user:        Matt Harbison <matt_harbison at yahoo.com>
> >> date:        Sat Jun 27 13:00:11 2015 -0400
> >> summary:     revset: Yuya's patch to support kwargs
> >
> > I did a little more digging here, and there are two causes:
> >
> > 1) inside revset.last(), the line 'y = next(it, None)' returns None for
> > wdir().  Using -2 as the default and checking against that causes the
> > elif path to be taken.
> 
> Fixing thing in this direction looks like an hopeless battle. None will 
> be used as "no value" all arounds. We should settle for a special value 
> for wdir and check them. I think the latest state is:
> 
> rev = maxint
> hex = 'f' * 40 (and related node)

Yes, I'm playing with wdirrev = 0x7fffffff. It isn't bad though we'll have
to work around x:y range where x or y is wdir().


More information about the Mercurial-devel mailing list