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