equal
deleted
inserted
replaced
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) |