mercurial/commands.py
changeset 29807 d4e026341e16
parent 29795 142ae01820a3
child 29838 8540133f91a1
--- 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')