mercurial/commands.py
changeset 46917 efadec3ea8e2
parent 46915 efc6f6a794bd
child 46930 0afe96e374a7
equal deleted inserted replaced
46916:7061eee84151 46917:efadec3ea8e2
  5701                 opts.setdefault(b'rev', []).append(b"null")
  5701                 opts.setdefault(b'rev', []).append(b"null")
  5702 
  5702 
  5703     some_pushed = False
  5703     some_pushed = False
  5704     result = 0
  5704     result = 0
  5705     for path in urlutil.get_push_paths(repo, ui, dests):
  5705     for path in urlutil.get_push_paths(repo, ui, dests):
  5706         if not path:
       
  5707             raise error.ConfigError(
       
  5708                 _(b'default repository not configured!'),
       
  5709                 hint=_(b"see 'hg help config.paths'"),
       
  5710             )
       
  5711         dest = path.pushloc or path.loc
  5706         dest = path.pushloc or path.loc
  5712         branches = (path.branch, opts.get(b'branch') or [])
  5707         branches = (path.branch, opts.get(b'branch') or [])
  5713         ui.status(_(b'pushing to %s\n') % urlutil.hidepassword(dest))
  5708         ui.status(_(b'pushing to %s\n') % urlutil.hidepassword(dest))
  5714         revs, checkout = hg.addbranchrevs(
  5709         revs, checkout = hg.addbranchrevs(
  5715             repo, repo, branches, opts.get(b'rev')
  5710             repo, repo, branches, opts.get(b'rev')