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

Augie Fackler raf at durin42.com
Fri Feb 20 09:06:06 CST 2015


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20150220/db45c079/attachment.html>


More information about the Mercurial-devel mailing list