--- a/mercurial/commands.py Tue Aug 09 22:31:38 2016 +0200
+++ b/mercurial/commands.py Tue Aug 09 17:00:38 2016 +0200
@@ -1412,9 +1412,10 @@
"a destination"))
common = [repo.lookup(rev) for rev in base]
heads = revs and map(repo.lookup, revs) or revs
- cg = changegroup.getchangegroup(repo, 'bundle', heads=heads,
- common=common, bundlecaps=bundlecaps,
- version=cgversion)
+ outgoing = discovery.outgoing(repo, common, heads)
+ cg = changegroup.getchangegroup(repo, 'bundle', outgoing,
+ bundlecaps=bundlecaps,
+ version=cgversion)
outgoing = None
else:
dest = ui.expandpath(dest or 'default-push', dest or 'default')