mercurial/commands.py
branchstable
changeset 13693 adf3c4401c5d
parent 13620 8ee4b00ddfd8
child 13694 4f5ed2bd1724
child 13952 1416b9118540
equal deleted inserted replaced
13692:a7c9735307bd 13693:adf3c4401c5d
  2997                 # this lets simultaneous -r, -b options continue working
  2997                 # this lets simultaneous -r, -b options continue working
  2998                 opts.setdefault('rev', []).append("null")
  2998                 opts.setdefault('rev', []).append("null")
  2999 
  2999 
  3000     dest = ui.expandpath(dest or 'default-push', dest or 'default')
  3000     dest = ui.expandpath(dest or 'default-push', dest or 'default')
  3001     dest, branches = hg.parseurl(dest, opts.get('branch'))
  3001     dest, branches = hg.parseurl(dest, opts.get('branch'))
       
  3002     ui.status(_('pushing to %s\n') % url.hidepassword(dest))
  3002     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
  3003     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
  3003     other = hg.repository(hg.remoteui(repo, opts), dest)
  3004     other = hg.repository(hg.remoteui(repo, opts), dest)
  3004     ui.status(_('pushing to %s\n') % url.hidepassword(dest))
       
  3005     if revs:
  3005     if revs:
  3006         revs = [repo.lookup(rev) for rev in revs]
  3006         revs = [repo.lookup(rev) for rev in revs]
  3007 
  3007 
  3008     repo._subtoppath = dest
  3008     repo._subtoppath = dest
  3009     try:
  3009     try: