mercurial/wireproto.py
changeset 23009 90f86ad3d4ff
parent 22390 e2806b8613ca
child 23139 e53f6b72a0e4
--- a/mercurial/wireproto.py	Tue Oct 14 02:32:26 2014 -0700
+++ b/mercurial/wireproto.py	Wed Oct 01 23:40:23 2014 -0500
@@ -359,7 +359,7 @@
             opts[key] = value
         f = self._callcompressable("getbundle", **opts)
         bundlecaps = kwargs.get('bundlecaps')
-        if bundlecaps is not None and 'HG2X' in bundlecaps:
+        if bundlecaps is not None and 'HG2Y' in bundlecaps:
             return bundle2.unbundle20(self.ui, f)
         else:
             return changegroupmod.cg1unpacker(f, 'UN')