mercurial/commands.py
changeset 38597 afef1e362d65
parent 38545 85e3aa21bcdc
child 38631 9ef10437bb88
equal deleted inserted replaced
38596:1fad808f2a6b 38597:afef1e362d65
  1218         dest = ui.expandpath(dest or 'default-push', dest or 'default')
  1218         dest = ui.expandpath(dest or 'default-push', dest or 'default')
  1219         dest, branches = hg.parseurl(dest, opts.get('branch'))
  1219         dest, branches = hg.parseurl(dest, opts.get('branch'))
  1220         other = hg.peer(repo, opts, dest)
  1220         other = hg.peer(repo, opts, dest)
  1221         revs = [repo[r].hex() for r in revs]
  1221         revs = [repo[r].hex() for r in revs]
  1222         revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
  1222         revs, checkout = hg.addbranchrevs(repo, repo, branches, revs)
  1223         heads = revs and map(repo.lookup, revs) or revs
  1223         heads = revs and pycompat.maplist(repo.lookup, revs) or revs
  1224         outgoing = discovery.findcommonoutgoing(repo, other,
  1224         outgoing = discovery.findcommonoutgoing(repo, other,
  1225                                                 onlyheads=heads,
  1225                                                 onlyheads=heads,
  1226                                                 force=opts.get('force'),
  1226                                                 force=opts.get('force'),
  1227                                                 portable=True)
  1227                                                 portable=True)
  1228 
  1228