Show More
@@ -257,11 +257,11 b' def buildobsmarkerspart(bundler, markers' | |||
|
257 | 257 | return bundler.newpart('obsmarkers', data=stream) |
|
258 | 258 | return None |
|
259 | 259 | |
|
260 |
def _c |
|
|
261 |
"""return true if a pull/push |
|
|
260 | def _forcebundle1(op): | |
|
261 | """return true if a pull/push must use bundle1 | |
|
262 | 262 | |
|
263 | 263 | Feel free to nuke this function when we drop the experimental option""" |
|
264 | return (op.repo.ui.configbool('experimental', 'bundle2-exp', True) | |
|
264 | return not (op.repo.ui.configbool('experimental', 'bundle2-exp', True) | |
|
265 | 265 | and op.remote.capable('bundle2')) |
|
266 | 266 | |
|
267 | 267 | |
@@ -417,7 +417,7 b' def push(repo, remote, force=False, revs' | |||
|
417 | 417 | # bundle2 push may receive a reply bundle touching bookmarks or other |
|
418 | 418 | # things requiring the wlock. Take it now to ensure proper ordering. |
|
419 | 419 | maypushback = pushop.ui.configbool('experimental', 'bundle2.pushback') |
|
420 |
if _c |
|
|
420 | if (not _forcebundle1(pushop)) and maypushback: | |
|
421 | 421 | localwlock = pushop.repo.wlock() |
|
422 | 422 | locallock = pushop.repo.lock() |
|
423 | 423 | pushop.locallocked = True |
@@ -442,7 +442,7 b' def push(repo, remote, force=False, revs' | |||
|
442 | 442 | lock = pushop.remote.lock() |
|
443 | 443 | try: |
|
444 | 444 | _pushdiscovery(pushop) |
|
445 |
if _c |
|
|
445 | if not _forcebundle1(pushop): | |
|
446 | 446 | _pushbundle2(pushop) |
|
447 | 447 | _pushchangeset(pushop) |
|
448 | 448 | _pushsyncphase(pushop) |
@@ -1099,7 +1099,7 b' class pulloperation(object):' | |||
|
1099 | 1099 | |
|
1100 | 1100 | @util.propertycache |
|
1101 | 1101 | def canusebundle2(self): |
|
1102 |
return _c |
|
|
1102 | return not _forcebundle1(self) | |
|
1103 | 1103 | |
|
1104 | 1104 | @util.propertycache |
|
1105 | 1105 | def remotebundle2caps(self): |
General Comments 0
You need to be logged in to leave comments.
Login now