##// END OF EJS Templates
bundle2: allow extensions to extend the getbundle request...
Pierre-Yves David -
r21159:024f38f6 default
parent child Browse files
Show More
@@ -578,6 +578,7 b' def _pullbundle2(pullop):'
578 kwargs['heads'] = pullop.heads or pullop.rheads
578 kwargs['heads'] = pullop.heads or pullop.rheads
579 if pullop.heads is None and list(pullop.common) == [nullid]:
579 if pullop.heads is None and list(pullop.common) == [nullid]:
580 pullop.repo.ui.status(_("requesting all changes\n"))
580 pullop.repo.ui.status(_("requesting all changes\n"))
581 _pullbundle2extraprepare(pullop, kwargs)
581 if kwargs.keys() == ['format']:
582 if kwargs.keys() == ['format']:
582 return # nothing to pull
583 return # nothing to pull
583 bundle = pullop.remote.getbundle('pull', **kwargs)
584 bundle = pullop.remote.getbundle('pull', **kwargs)
@@ -588,6 +589,10 b' def _pullbundle2(pullop):'
588 assert len(op.records['changegroup']) == 1
589 assert len(op.records['changegroup']) == 1
589 pullop.cgresult = op.records['changegroup'][0]['return']
590 pullop.cgresult = op.records['changegroup'][0]['return']
590
591
592 def _pullbundle2extraprepare(pullop, kwargs):
593 """hook function so that extensions can extend the getbundle call"""
594 pass
595
591 def _pullchangeset(pullop):
596 def _pullchangeset(pullop):
592 """pull changeset from unbundle into the local repo"""
597 """pull changeset from unbundle into the local repo"""
593 # We delay the open of the transaction as late as possible so we
598 # We delay the open of the transaction as late as possible so we
General Comments 0
You need to be logged in to leave comments. Login now