comparison 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
comparison
equal deleted inserted replaced
21143:5bb5d4ba14e5 21144:7a20fe8dc080
333 if common is not None: 333 if common is not None:
334 opts['common'] = encodelist(common) 334 opts['common'] = encodelist(common)
335 if bundlecaps is not None: 335 if bundlecaps is not None:
336 opts['bundlecaps'] = ','.join(bundlecaps) 336 opts['bundlecaps'] = ','.join(bundlecaps)
337 f = self._callcompressable("getbundle", **opts) 337 f = self._callcompressable("getbundle", **opts)
338 if bundlecaps is not None and 'HG20' in bundlecaps: 338 if bundlecaps is not None and 'HG2X' in bundlecaps:
339 return bundle2.unbundle20(self.ui, f) 339 return bundle2.unbundle20(self.ui, f)
340 else: 340 else:
341 return changegroupmod.unbundle10(f, 'UN') 341 return changegroupmod.unbundle10(f, 'UN')
342 342
343 def unbundle(self, cg, heads, source): 343 def unbundle(self, cg, heads, source):