Show More
@@ -73,6 +73,10 b' def canperformstreamclone(pullop, bundle' | |||||
73 | if len(repo): |
|
73 | if len(repo): | |
74 | return False, None |
|
74 | return False, None | |
75 |
|
75 | |||
|
76 | # Streaming clone only works if all data is being requested. | |||
|
77 | if pullop.heads: | |||
|
78 | return False, None | |||
|
79 | ||||
76 | bundle2supported = False |
|
80 | bundle2supported = False | |
77 | if pullop.canusebundle2: |
|
81 | if pullop.canusebundle2: | |
78 | if b'v2' in pullop.remotebundle2caps.get(b'stream', []): |
|
82 | if b'v2' in pullop.remotebundle2caps.get(b'stream', []): | |
@@ -88,10 +92,6 b' def canperformstreamclone(pullop, bundle' | |||||
88 | elif bundle2 and not bundle2supported: |
|
92 | elif bundle2 and not bundle2supported: | |
89 | return False, None |
|
93 | return False, None | |
90 |
|
94 | |||
91 | # Streaming clone only works if all data is being requested. |
|
|||
92 | if pullop.heads: |
|
|||
93 | return False, None |
|
|||
94 |
|
||||
95 | streamrequested = pullop.streamclonerequested |
|
95 | streamrequested = pullop.streamclonerequested | |
96 |
|
96 | |||
97 | # If we don't have a preference, let the server decide for us. This |
|
97 | # If we don't have a preference, let the server decide for us. This |
General Comments 0
You need to be logged in to leave comments.
Login now