mercurial/commands.py
changeset 38228 22edd5321489
parent 38211 aea29e81753a
child 38229 16f93a3b8b05
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))