Show More
@@ -1747,6 +1747,19 b' def getbundlechunks(repo, source, heads=' | |||||
1747 |
|
1747 | |||
1748 | return bundler.getchunks() |
|
1748 | return bundler.getchunks() | |
1749 |
|
1749 | |||
|
1750 | @getbundle2partsgenerator('stream') | |||
|
1751 | def _getbundlestream(bundler, repo, source, bundlecaps=None, | |||
|
1752 | b2caps=None, heads=None, common=None, **kwargs): | |||
|
1753 | if not kwargs.get('stream', False): | |||
|
1754 | return | |||
|
1755 | filecount, bytecount, it = streamclone.generatev2(repo) | |||
|
1756 | requirements = ' '.join(repo.requirements) | |||
|
1757 | part = bundler.newpart('stream', data=it) | |||
|
1758 | part.addparam('bytecount', '%d' % bytecount, mandatory=True) | |||
|
1759 | part.addparam('filecount', '%d' % filecount, mandatory=True) | |||
|
1760 | part.addparam('requirements', requirements, mandatory=True) | |||
|
1761 | part.addparam('version', 'v2', mandatory=True) | |||
|
1762 | ||||
1750 | @getbundle2partsgenerator('changegroup') |
|
1763 | @getbundle2partsgenerator('changegroup') | |
1751 | def _getbundlechangegrouppart(bundler, repo, source, bundlecaps=None, |
|
1764 | def _getbundlechangegrouppart(bundler, repo, source, bundlecaps=None, | |
1752 | b2caps=None, heads=None, common=None, **kwargs): |
|
1765 | b2caps=None, heads=None, common=None, **kwargs): |
@@ -212,7 +212,9 b" gboptsmap = {'heads': 'nodes'," | |||||
212 | 'bundlecaps': 'scsv', |
|
212 | 'bundlecaps': 'scsv', | |
213 | 'listkeys': 'csv', |
|
213 | 'listkeys': 'csv', | |
214 | 'cg': 'boolean', |
|
214 | 'cg': 'boolean', | |
215 |
'cbattempted': 'boolean' |
|
215 | 'cbattempted': 'boolean', | |
|
216 | 'stream': 'boolean', | |||
|
217 | } | |||
216 |
|
218 | |||
217 | # client side |
|
219 | # client side | |
218 |
|
220 |
General Comments 0
You need to be logged in to leave comments.
Login now