mercurial/debugcommands.py
changeset 35417 2105bdd9462a
parent 35401 cd3392cb5818
child 35418 c73d23cbb129
equal deleted inserted replaced
35416:417fa23017f9 35417:2105bdd9462a
   742     ] + cmdutil.remoteopts,
   742     ] + cmdutil.remoteopts,
   743     _('[-l REV] [-r REV] [-b BRANCH]... [OTHER]'))
   743     _('[-l REV] [-r REV] [-b BRANCH]... [OTHER]'))
   744 def debugdiscovery(ui, repo, remoteurl="default", **opts):
   744 def debugdiscovery(ui, repo, remoteurl="default", **opts):
   745     """runs the changeset discovery protocol in isolation"""
   745     """runs the changeset discovery protocol in isolation"""
   746     opts = pycompat.byteskwargs(opts)
   746     opts = pycompat.byteskwargs(opts)
   747     remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl),
   747     remoteurl, branches = hg.parseurl(ui.expandpath(remoteurl))
   748                                       opts.get('branch'))
       
   749     remote = hg.peer(repo, opts, remoteurl)
   748     remote = hg.peer(repo, opts, remoteurl)
   750     ui.status(_('comparing with %s\n') % util.hidepassword(remoteurl))
   749     ui.status(_('comparing with %s\n') % util.hidepassword(remoteurl))
   751 
   750 
   752     # make sure tests are repeatable
   751     # make sure tests are repeatable
   753     random.seed(12323)
   752     random.seed(12323)