Show More
@@ -772,6 +772,7 b' def debugstate(ui, repo, **opts):' | |||
|
772 | 772 | ('', 'nonheads', None, |
|
773 | 773 | _('use old-style discovery with non-heads included')), |
|
774 | 774 | ('', 'rev', [], 'restrict discovery to this set of revs'), |
|
775 | ('', 'seed', '12323', 'specify the random seed use for discovery'), | |
|
775 | 776 | ] + cmdutil.remoteopts, |
|
776 | 777 | _('[--rev REV] [OTHER]')) |
|
777 | 778 | def debugdiscovery(ui, repo, remoteurl="default", **opts): |
@@ -782,7 +783,7 b' def debugdiscovery(ui, repo, remoteurl="' | |||
|
782 | 783 | ui.status(_('comparing with %s\n') % util.hidepassword(remoteurl)) |
|
783 | 784 | |
|
784 | 785 | # make sure tests are repeatable |
|
785 |
random.seed( |
|
|
786 | random.seed(int(opts['seed'])) | |
|
786 | 787 | |
|
787 | 788 | def doit(pushedrevs, remoteheads, remote=remote): |
|
788 | 789 | if opts.get('old'): |
@@ -263,7 +263,7 b' Show all commands + options' | |||
|
263 | 263 | debugdate: extended |
|
264 | 264 | debugdeltachain: changelog, manifest, dir, template |
|
265 | 265 | debugdirstate: nodates, dates, datesort |
|
266 | debugdiscovery: old, nonheads, rev, ssh, remotecmd, insecure | |
|
266 | debugdiscovery: old, nonheads, rev, seed, ssh, remotecmd, insecure | |
|
267 | 267 | debugdownload: output |
|
268 | 268 | debugextensions: template |
|
269 | 269 | debugfileset: rev, all-files, show-matcher, show-stage |
General Comments 0
You need to be logged in to leave comments.
Login now