Show More
@@ -69,6 +69,10 b' def canperformstreamclone(pullop, bundle' | |||||
69 | repo = pullop.repo |
|
69 | repo = pullop.repo | |
70 | remote = pullop.remote |
|
70 | remote = pullop.remote | |
71 |
|
71 | |||
|
72 | # Streaming clone only works on an empty destination repository | |||
|
73 | if len(repo): | |||
|
74 | return False, None | |||
|
75 | ||||
72 | bundle2supported = False |
|
76 | bundle2supported = False | |
73 | if pullop.canusebundle2: |
|
77 | if pullop.canusebundle2: | |
74 | if b'v2' in pullop.remotebundle2caps.get(b'stream', []): |
|
78 | if b'v2' in pullop.remotebundle2caps.get(b'stream', []): | |
@@ -84,10 +88,6 b' def canperformstreamclone(pullop, bundle' | |||||
84 | elif bundle2 and not bundle2supported: |
|
88 | elif bundle2 and not bundle2supported: | |
85 | return False, None |
|
89 | return False, None | |
86 |
|
90 | |||
87 | # Streaming clone only works on empty repositories. |
|
|||
88 | if len(repo): |
|
|||
89 | return False, None |
|
|||
90 |
|
||||
91 | # Streaming clone only works if all data is being requested. |
|
91 | # Streaming clone only works if all data is being requested. | |
92 | if pullop.heads: |
|
92 | if pullop.heads: | |
93 | return False, None |
|
93 | return False, None |
General Comments 0
You need to be logged in to leave comments.
Login now