--- a/mercurial/localrepo.py Tue Oct 14 02:32:26 2014 -0700
+++ b/mercurial/localrepo.py Wed Oct 01 23:40:23 2014 -0500
@@ -109,7 +109,7 @@
format='HG10', **kwargs):
cg = exchange.getbundle(self._repo, source, heads=heads,
common=common, bundlecaps=bundlecaps, **kwargs)
- if bundlecaps is not None and 'HG2X' in bundlecaps:
+ if bundlecaps is not None and 'HG2Y' 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.