Show More
@@ -1005,13 +1005,14 b' def getbundle(repo, source, heads=None, ' | |||||
1005 | keys = repo.listkeys(namespace).items() |
|
1005 | keys = repo.listkeys(namespace).items() | |
1006 | part.data = pushkey.encodekeys(keys) |
|
1006 | part.data = pushkey.encodekeys(keys) | |
1007 | _getbundleobsmarkerpart(bundler, repo, source, heads=heads, common=common, |
|
1007 | _getbundleobsmarkerpart(bundler, repo, source, heads=heads, common=common, | |
1008 | bundlecaps=bundlecaps, **kwargs) |
|
1008 | bundlecaps=bundlecaps, b2caps=b2caps, **kwargs) | |
1009 | _getbundleextrapart(bundler, repo, source, heads=heads, common=common, |
|
1009 | _getbundleextrapart(bundler, repo, source, heads=heads, common=common, | |
1010 | bundlecaps=bundlecaps, **kwargs) |
|
1010 | bundlecaps=bundlecaps, b2caps=b2caps, **kwargs) | |
1011 | return util.chunkbuffer(bundler.getchunks()) |
|
1011 | return util.chunkbuffer(bundler.getchunks()) | |
1012 |
|
1012 | |||
1013 | def _getbundleobsmarkerpart(bundler, repo, source, heads=None, common=None, |
|
1013 | def _getbundleobsmarkerpart(bundler, repo, source, heads=None, common=None, | |
1014 | bundlecaps=None, **kwargs): |
|
1014 | bundlecaps=None, b2caps=None, **kwargs): | |
|
1015 | """add an obsolescence markers part to the requested bundle""" | |||
1015 | if kwargs.get('obsmarkers', False): |
|
1016 | if kwargs.get('obsmarkers', False): | |
1016 | if heads is None: |
|
1017 | if heads is None: | |
1017 | heads = repo.heads() |
|
1018 | heads = repo.heads() | |
@@ -1020,7 +1021,7 b' def _getbundleobsmarkerpart(bundler, rep' | |||||
1020 | buildobsmarkerspart(bundler, markers) |
|
1021 | buildobsmarkerspart(bundler, markers) | |
1021 |
|
1022 | |||
1022 | def _getbundleextrapart(bundler, repo, source, heads=None, common=None, |
|
1023 | def _getbundleextrapart(bundler, repo, source, heads=None, common=None, | |
1023 | bundlecaps=None, **kwargs): |
|
1024 | bundlecaps=None, b2caps=None, **kwargs): | |
1024 | """hook function to let extensions add parts to the requested bundle""" |
|
1025 | """hook function to let extensions add parts to the requested bundle""" | |
1025 | pass |
|
1026 | pass | |
1026 |
|
1027 |
General Comments 0
You need to be logged in to leave comments.
Login now