equal
deleted
inserted
replaced
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 = revs and map(repo.lookup, revs) or None |
1222 heads = map(repo.lookup, 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) |