diff -r 24a443948627 -r 91b47139d0cb mercurial/exchange.py --- a/mercurial/exchange.py Tue Apr 01 14:25:03 2014 -0700 +++ b/mercurial/exchange.py Tue Apr 01 14:33:23 2014 -0700 @@ -187,7 +187,8 @@ 'push', fastpath=True) else: - cg = pushop.repo.getlocalbundle('push', outgoing, bundlecaps) + cg = changegroup.getlocalbundle(pushop.repo, 'push', outgoing, + bundlecaps) # apply changegroup to remote if unbundle: