--- a/mercurial/wireproto.py Mon Aug 25 18:35:39 2014 +0200
+++ b/mercurial/wireproto.py Mon Aug 25 19:17:06 2014 +0200
@@ -609,7 +609,7 @@
else:
caps.append('streamreqs=%s' % ','.join(requiredformats))
if repo.ui.configbool('experimental', 'bundle2-exp', False):
- capsblob = bundle2.encodecaps(repo.bundle2caps)
+ capsblob = bundle2.encodecaps(bundle2.capabilities)
caps.append('bundle2-exp=' + urllib.quote(capsblob))
caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
caps.append('httpheader=1024')