diff -r 19ccc6788a27 -r 6ae1a776dd1a mercurial/debugcommands.py --- a/mercurial/debugcommands.py Sun Mar 17 18:45:53 2019 +0300 +++ b/mercurial/debugcommands.py Tue Mar 26 14:02:40 2019 +0100 @@ -772,6 +772,7 @@ ('', 'nonheads', None, _('use old-style discovery with non-heads included')), ('', 'rev', [], 'restrict discovery to this set of revs'), + ('', 'seed', '12323', 'specify the random seed use for discovery'), ] + cmdutil.remoteopts, _('[--rev REV] [OTHER]')) def debugdiscovery(ui, repo, remoteurl="default", **opts): @@ -782,7 +783,7 @@ ui.status(_('comparing with %s\n') % util.hidepassword(remoteurl)) # make sure tests are repeatable - random.seed(12323) + random.seed(int(opts['seed'])) def doit(pushedrevs, remoteheads, remote=remote): if opts.get('old'):