mercurial/commands.py
changeset 35827 56891a790012
parent 35826 555bc4ab37ad
child 35859 1bf5263fe5cc
equal deleted inserted replaced
35826:555bc4ab37ad 35827:56891a790012
  1217     if base:
  1217     if base:
  1218         if dest:
  1218         if dest:
  1219             raise error.Abort(_("--base is incompatible with specifying "
  1219             raise error.Abort(_("--base is incompatible with specifying "
  1220                                "a destination"))
  1220                                "a destination"))
  1221         common = [repo.lookup(rev) for rev in base]
  1221         common = [repo.lookup(rev) for rev in base]
  1222         heads = map(repo.lookup, revs) if revs else None
  1222         heads = [repo.lookup(r) for r in revs] if revs else None
  1223         outgoing = discovery.outgoing(repo, common, heads)
  1223         outgoing = discovery.outgoing(repo, common, heads)
  1224     else:
  1224     else:
  1225         dest = ui.expandpath(dest or 'default-push', dest or 'default')
  1225         dest = ui.expandpath(dest or 'default-push', dest or 'default')
  1226         dest, branches = hg.parseurl(dest, opts.get('branch'))
  1226         dest, branches = hg.parseurl(dest, opts.get('branch'))
  1227         other = hg.peer(repo, opts, dest)
  1227         other = hg.peer(repo, opts, dest)