mercurial/wireproto.py
changeset 21141 d8dd19e09ed4
parent 21075 438803e4bd97
child 21144 7a20fe8dc080
--- a/mercurial/wireproto.py	Thu Apr 17 01:50:28 2014 -0400
+++ b/mercurial/wireproto.py	Thu Apr 17 01:49:20 2014 -0400
@@ -586,7 +586,8 @@
         else:
             caps.append('streamreqs=%s' % ','.join(requiredformats))
     if repo.ui.configbool('server', 'bundle2', False):
-        caps.append('bundle2')
+        capsblob = bundle2.encodecaps(repo.bundle2caps)
+        caps.append('bundle2=' + urllib.quote(capsblob))
     caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
     caps.append('httpheader=1024')
     return caps