##// END OF EJS Templates
bundle2: add a way to add parts during a `getbundle` request...
Pierre-Yves David -
r21158:8f6530b6 default
parent child Browse files
Show More
@@ -691,8 +691,15 b' def getbundle(repo, source, heads=None, '
691 bundler = bundle2.bundle20(repo.ui, b2caps)
691 bundler = bundle2.bundle20(repo.ui, b2caps)
692 part = bundle2.bundlepart('b2x:changegroup', data=cg.getchunks())
692 part = bundle2.bundlepart('b2x:changegroup', data=cg.getchunks())
693 bundler.addpart(part)
693 bundler.addpart(part)
694 _getbundleextrapart(bundler, repo, source, heads=None, common=None,
695 bundlecaps=None, **kwargs)
694 return util.chunkbuffer(bundler.getchunks())
696 return util.chunkbuffer(bundler.getchunks())
695
697
698 def _getbundleextrapart(bundler, repo, source, heads=None, common=None,
699 bundlecaps=None, **kwargs):
700 """hook function to let extensions add parts to the requested bundle"""
701 pass
702
696 class PushRaced(RuntimeError):
703 class PushRaced(RuntimeError):
697 """An exception raised during unbundling that indicate a push race"""
704 """An exception raised during unbundling that indicate a push race"""
698
705
General Comments 0
You need to be logged in to leave comments. Login now