comparison mercurial/commands.py @ 38228:22edd5321489

outgoing: drop an extraneous URL parse This was left over from dfb888aae17a. 'branches' wasn't used, and the only thing parseurl() would do is slice any branch fragment off 'dest'. But path.loc and path.pushloc already have the fragment removed.
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 01 Jun 2018 23:33:17 -0400
parents aea29e81753a
children 16f93a3b8b05
comparison
equal deleted inserted replaced
38227:f715faeaceee 38228:22edd5321489
3734 cmdutil.outgoinghooks(ui, repo, other, opts, o) 3734 cmdutil.outgoinghooks(ui, repo, other, opts, o)
3735 return 0 3735 return 0
3736 3736
3737 if opts.get('bookmarks'): 3737 if opts.get('bookmarks'):
3738 dest = path.pushloc or path.loc 3738 dest = path.pushloc or path.loc
3739 dest, branches = hg.parseurl(dest, opts.get('branch'))
3740 other = hg.peer(repo, opts, dest) 3739 other = hg.peer(repo, opts, dest)
3741 if 'bookmarks' not in other.listkeys('namespaces'): 3740 if 'bookmarks' not in other.listkeys('namespaces'):
3742 ui.warn(_("remote doesn't support bookmarks\n")) 3741 ui.warn(_("remote doesn't support bookmarks\n"))
3743 return 0 3742 return 0
3744 ui.status(_('comparing with %s\n') % util.hidepassword(dest)) 3743 ui.status(_('comparing with %s\n') % util.hidepassword(dest))