Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.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/localrepo.py Thu Apr 17 02:01:38 2014 -0400 +++ b/mercurial/localrepo.py Thu Apr 17 15:27:54 2014 -0400 @@ -109,7 +109,7 @@ format='HG10'): cg = exchange.getbundle(self._repo, source, heads=heads, common=common, bundlecaps=bundlecaps) - if bundlecaps is not None and 'HG20' in bundlecaps: + if bundlecaps is not None and 'HG2X' 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. @@ -180,7 +180,7 @@ requirements = ['revlogv1'] filtername = None - bundle2caps = {'HG20': ()} + bundle2caps = {'HG2X': ()} # a list of (ui, featureset) functions. # only functions defined in module of enabled extensions are invoked