[PATCH 1 of 2 stable] discovery: limit 'all local heads known remotely' to real 'all' (issue4438)

Matt Mackall mpm at selenic.com
Wed Nov 5 11:07:12 CST 2014


On Wed, 2014-11-05 at 16:48 +0000, Martin von Zweigbergk wrote:
> On Wed Nov 05 2014 at 4:07:26 AM Mads Kiilerich <mads at kiilerich.com> wrote:
> >
> > Note: the randomness in the discovery protocol can make this problem hard
> > to
> > reproduce.
> >
> 
> A little off-topic, but is there a way to reduce the randomness? Would
> simply always using the same random seed be okay? Or basing it on some
> repository state?

We've actually got this tidbit in commands:debugsetdiscovery:

    # make sure tests are repeatable
    random.seed(12323)

One of the benefits of NOT having such a seed is that we sometimes
discover bugs when the RNG takes us somewhere new.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list