equal
deleted
inserted
replaced
1127 if dest: |
1127 if dest: |
1128 raise util.Abort(_("--base is incompatible with specifying " |
1128 raise util.Abort(_("--base is incompatible with specifying " |
1129 "a destination")) |
1129 "a destination")) |
1130 common = [repo.lookup(rev) for rev in base] |
1130 common = [repo.lookup(rev) for rev in base] |
1131 heads = revs and map(repo.lookup, revs) or revs |
1131 heads = revs and map(repo.lookup, revs) or revs |
1132 cg = repo.getbundle('bundle', heads=heads, common=common, |
1132 cg = changegroup.getbundle(repo, 'bundle', heads=heads, common=common, |
1133 bundlecaps=bundlecaps) |
1133 bundlecaps=bundlecaps) |
1134 outgoing = None |
1134 outgoing = None |
1135 else: |
1135 else: |
1136 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
1136 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
1137 dest, branches = hg.parseurl(dest, opts.get('branch')) |
1137 dest, branches = hg.parseurl(dest, opts.get('branch')) |
1138 other = hg.peer(repo, opts, dest) |
1138 other = hg.peer(repo, opts, dest) |