comparison mercurial/debugcommands.py @ 35417:2105bdd9462a

debugdiscovery: drop reference to invalid --branch option It seems like it didn't even exist when debugdiscovery was introduced in cb98fed52495 (discovery: add new set-based discovery, 2011-05-02). Differential Revision: https://phab.mercurial-scm.org/D1691
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 13 Dec 2017 11:19:24 -0800
parents cd3392cb5818
children c73d23cbb129
comparison
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)