mercurial/localrepo.py
changeset 24686 e0e28e910fa3
parent 24641 60fecc5b14a4
child 24696 553dc2b094d9
--- a/mercurial/localrepo.py	Wed Apr 08 09:38:09 2015 -0700
+++ b/mercurial/localrepo.py	Thu Apr 09 16:25:48 2015 -0400
@@ -110,7 +110,7 @@
                   **kwargs):
         cg = exchange.getbundle(self._repo, source, heads=heads,
                                 common=common, bundlecaps=bundlecaps, **kwargs)
-        if bundlecaps is not None and 'HG2Y' in bundlecaps:
+        if bundlecaps is not None and 'HG20' in bundlecaps:
             # When requesting a bundle2, getbundle returns a stream to make the
             # wire level function happier. We need to build a proper object
             # from it in local peer.
@@ -317,7 +317,7 @@
         if self.ui.configbool('experimental', 'bundle2-exp', False):
             caps = set(caps)
             capsblob = bundle2.encodecaps(bundle2.getrepocaps(self))
-            caps.add('bundle2-exp=' + urllib.quote(capsblob))
+            caps.add('bundle2=' + urllib.quote(capsblob))
         return caps
 
     def _applyrequirements(self, requirements):