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 |