mercurial/wireproto.py
changeset 21144 7a20fe8dc080
parent 21141 d8dd19e09ed4
child 21145 0c5088be66af
--- a/mercurial/wireproto.py	Thu Apr 17 02:01:38 2014 -0400
+++ b/mercurial/wireproto.py	Thu Apr 17 15:27:54 2014 -0400
@@ -335,7 +335,7 @@
         if bundlecaps is not None:
             opts['bundlecaps'] = ','.join(bundlecaps)
         f = self._callcompressable("getbundle", **opts)
-        if bundlecaps is not None and 'HG20' in bundlecaps:
+        if bundlecaps is not None and 'HG2X' in bundlecaps:
             return bundle2.unbundle20(self.ui, f)
         else:
             return changegroupmod.unbundle10(f, 'UN')