diff -r 4aeb8da68090 -r d8dd19e09ed4 mercurial/exchange.py --- a/mercurial/exchange.py Thu Apr 17 01:50:28 2014 -0400 +++ b/mercurial/exchange.py Thu Apr 17 01:49:20 2014 -0400 @@ -7,7 +7,7 @@ from i18n import _ from node import hex, nullid -import errno +import errno, urllib import util, scmutil, changegroup, base85 import discovery, phases, obsolete, bookmarks, bundle2 @@ -207,7 +207,9 @@ The only currently supported type of data is changegroup but this will evolve in the future.""" # Send known head to the server for race detection. - bundler = bundle2.bundle20(pushop.ui) + capsblob = urllib.unquote(pushop.remote.capable('bundle2')) + caps = bundle2.decodecaps(capsblob) + bundler = bundle2.bundle20(pushop.ui, caps) bundler.addpart(bundle2.bundlepart('replycaps')) if not pushop.force: part = bundle2.bundlepart('CHECK:HEADS', data=iter(pushop.remoteheads))