mercurial/wireproto.py
changeset 22342 262c5cc126c1
parent 22341 2d16b39601b5
child 22351 7e6dd496d327
--- a/mercurial/wireproto.py	Mon Aug 25 19:17:06 2014 +0200
+++ b/mercurial/wireproto.py	Mon Aug 25 19:21:47 2014 +0200
@@ -609,7 +609,7 @@
         else:
             caps.append('streamreqs=%s' % ','.join(requiredformats))
     if repo.ui.configbool('experimental', 'bundle2-exp', False):
-        capsblob = bundle2.encodecaps(bundle2.capabilities)
+        capsblob = bundle2.encodecaps(bundle2.getrepocaps(repo))
         caps.append('bundle2-exp=' + urllib.quote(capsblob))
     caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
     caps.append('httpheader=1024')