Show More
@@ -964,9 +964,7 b' def pull(repo, remote, heads=None, force' | |||
|
964 | 964 | lock = pullop.repo.lock() |
|
965 | 965 | try: |
|
966 | 966 | pullop.trmanager = transactionmanager(repo, 'pull', remote.url()) |
|
967 |
streamclone.maybeperformstreamclone(pullop |
|
|
968 | pullop.heads, | |
|
969 | pullop.streamclonerequested) | |
|
967 | streamclone.maybeperformstreamclone(pullop) | |
|
970 | 968 | _pulldiscovery(pullop) |
|
971 | 969 | if _canusebundle2(pullop): |
|
972 | 970 | _pullbundle2(pullop) |
@@ -66,9 +66,14 b' def canperformstreamclone(repo, remote, ' | |||
|
66 | 66 | |
|
67 | 67 | return True, requirements |
|
68 | 68 | |
|
69 |
def maybeperformstreamclone( |
|
|
70 | supported, requirements = canperformstreamclone(repo, remote, heads, | |
|
71 | streamrequested=stream) | |
|
69 | def maybeperformstreamclone(pullop): | |
|
70 | repo = pullop.repo | |
|
71 | remote = pullop.remote | |
|
72 | ||
|
73 | r = canperformstreamclone(repo, remote, pullop.heads, | |
|
74 | streamrequested=pullop.streamclonerequested) | |
|
75 | supported, requirements = r | |
|
76 | ||
|
72 | 77 | if not supported: |
|
73 | 78 | return |
|
74 | 79 |
General Comments 0
You need to be logged in to leave comments.
Login now