mercurial/commands.py
changeset 29969 b3100653bafd
parent 29954 80fef5251099
child 29975 e65d33182fd4
equal deleted inserted replaced
29968:40f845537dca 29969:b3100653bafd
  6026                 opts.setdefault('rev', []).append("null")
  6026                 opts.setdefault('rev', []).append("null")
  6027 
  6027 
  6028     path = ui.paths.getpath(dest, default=('default-push', 'default'))
  6028     path = ui.paths.getpath(dest, default=('default-push', 'default'))
  6029     if not path:
  6029     if not path:
  6030         raise error.Abort(_('default repository not configured!'),
  6030         raise error.Abort(_('default repository not configured!'),
  6031                          hint=_('see the "path" section in "hg help config"'))
  6031                          hint=_("see 'hg help config.paths'"))
  6032     dest = path.pushloc or path.loc
  6032     dest = path.pushloc or path.loc
  6033     branches = (path.branch, opts.get('branch') or [])
  6033     branches = (path.branch, opts.get('branch') or [])
  6034     ui.status(_('pushing to %s\n') % util.hidepassword(dest))
  6034     ui.status(_('pushing to %s\n') % util.hidepassword(dest))
  6035     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
  6035     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
  6036     other = hg.peer(repo, opts, dest)
  6036     other = hg.peer(repo, opts, dest)