[PATCH 2 of 2 STABLE] templatekw: fix {join(bookmarks, sep)} to always show associated bookmarks

Matt Mackall mpm at selenic.com
Mon Mar 2 06:42:58 UTC 2015


On Fri, 2015-02-20 at 10:06 -0500, Augie Fackler wrote:
> On Feb 20, 2015 8:24 AM, "Yuya Nishihara" <yuya at tcha.org> wrote:
> >
> > On Thu, 19 Feb 2015 15:22:31 -0500, Augie Fackler wrote:
> > > On Wed, Feb 18, 2015 at 09:46:05AM -0800, Sean Farley wrote:
> > > > Yuya Nishihara writes:
> > > > > # HG changeset patch
> > > > > # User Yuya Nishihara <yuya at tcha.org>
> > > > > # Date 1424265455 -32400
> > > > > #      Wed Feb 18 22:17:35 2015 +0900
> > > > > # Branch stable
> > > > > # Node ID 8bbf9cdf40f38454de6de510c51da6555b3d4917
> > > > > # Parent  7cd913864fd52bbd28236db7e47c871dd83f5737
> > > > > templatekw: fix {join(bookmarks, sep)} to always show associated
> bookmarks
> > > > >
> > > > > The default joinfmt, "x.values()[0]", can't be used here because it
> picks
> > > > > either 'bookmark' or 'current' randomly.
> > > > >
> > > > > I got wrong result with PYTHONHASHSEED=1 on my amd64 machine.
> > > >
> > > > This series looks good to me.
> > >
> > > I can't reproduce a failure, so I'm not sure if it's right for stable.
> >
> > It won't happen if hash randomization is off. So it will be no problem in
> > most cases.
> >
> >   % python -R -c "print {'bookmark': 'ok', 'current': 'ng'}.values()[0]"
> >
> > Regards,
> 
> Right, but I specified the hash seed you gave and didn't see a failure.
> I'll double check to make sure I didn't typo something.

Worked for me. These are queued for stable, thanks.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list