##// END OF EJS Templates
bundle2: require both client and server to opt in...
Pierre-Yves David -
r21148:468cd774 default
parent child Browse files
Show More
@@ -132,7 +132,9 b' def push(repo, remote, force=False, revs'
132 pushop.repo.prepushoutgoinghooks(pushop.repo,
132 pushop.repo.prepushoutgoinghooks(pushop.repo,
133 pushop.remote,
133 pushop.remote,
134 pushop.outgoing)
134 pushop.outgoing)
135 if pushop.remote.capable('bundle2-exp'):
135 if (pushop.repo.ui.configbool('experimental', 'bundle2-exp',
136 False)
137 and pushop.remote.capable('bundle2-exp')):
136 _pushbundle2(pushop)
138 _pushbundle2(pushop)
137 else:
139 else:
138 _pushchangeset(pushop)
140 _pushchangeset(pushop)
@@ -516,7 +518,8 b' def pull(repo, remote, heads=None, force'
516 lock = pullop.repo.lock()
518 lock = pullop.repo.lock()
517 try:
519 try:
518 _pulldiscovery(pullop)
520 _pulldiscovery(pullop)
519 if pullop.remote.capable('bundle2-exp'):
521 if (pullop.repo.ui.configbool('server', 'bundle2', False)
522 and pullop.remote.capable('bundle2-exp')):
520 _pullbundle2(pullop)
523 _pullbundle2(pullop)
521 if 'changegroup' in pullop.todosteps:
524 if 'changegroup' in pullop.todosteps:
522 _pullchangeset(pullop)
525 _pullchangeset(pullop)
@@ -585,7 +585,7 b' def _capabilities(repo, proto):'
585 # otherwise, add 'streamreqs' detailing our local revlog format
585 # otherwise, add 'streamreqs' detailing our local revlog format
586 else:
586 else:
587 caps.append('streamreqs=%s' % ','.join(requiredformats))
587 caps.append('streamreqs=%s' % ','.join(requiredformats))
588 if self.ui.configbool('experimental', 'bundle2-exp', False):
588 if repo.ui.configbool('experimental', 'bundle2-exp', False):
589 capsblob = bundle2.encodecaps(repo.bundle2caps)
589 capsblob = bundle2.encodecaps(repo.bundle2caps)
590 caps.append('bundle2-exp=' + urllib.quote(capsblob))
590 caps.append('bundle2-exp=' + urllib.quote(capsblob))
591 caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
591 caps.append('unbundle=%s' % ','.join(changegroupmod.bundlepriority))
General Comments 0
You need to be logged in to leave comments. Login now