Mercurial > public > mercurial-scm > hg
diff mercurial/wireproto.py @ 21144:7a20fe8dc080
bundle2: use HG2X in the header
The current implementation of bundle2 is still very experimental and the 3.0
freeze is yesterday. The current bundle2 format has never been field-tested, so
we rename the header to HG2X. This leaves the HG20 header available for real
usage as a stable format in Mercurial 3.1.
We won't guarantee that future mercurial versions will keep supporting this
`HG2X` format.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 17 Apr 2014 15:27:54 -0400 |
parents | d8dd19e09ed4 |
children | 0c5088be66af |
line wrap: on
line diff
--- 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')