mercurial/commands.py
changeset 20930 4a987060d97e
parent 20928 91b47139d0cb
child 20933 d3775db748a0
--- a/mercurial/commands.py	Thu Apr 03 12:59:12 2014 -0500
+++ b/mercurial/commands.py	Tue Apr 01 14:40:35 2014 -0700
@@ -1129,8 +1129,8 @@
                                "a destination"))
         common = [repo.lookup(rev) for rev in base]
         heads = revs and map(repo.lookup, revs) or revs
-        cg = repo.getbundle('bundle', heads=heads, common=common,
-                            bundlecaps=bundlecaps)
+        cg = changegroup.getbundle(repo, 'bundle', heads=heads, common=common,
+                                   bundlecaps=bundlecaps)
         outgoing = None
     else:
         dest = ui.expandpath(dest or 'default-push', dest or 'default')