changeset 38216: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 f715faeaceee
children 16f93a3b8b05
files mercurial/commands.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Mon May 14 12:38:05 2018 +0200
+++ b/mercurial/commands.py	Fri Jun 01 23:33:17 2018 -0400
@@ -3736,7 +3736,6 @@
 
     if opts.get('bookmarks'):
         dest = path.pushloc or path.loc
-        dest, branches = hg.parseurl(dest, opts.get('branch'))
         other = hg.peer(repo, opts, dest)
         if 'bookmarks' not in other.listkeys('namespaces'):
             ui.warn(_("remote doesn't support bookmarks\n"))