##// END OF EJS Templates
streamclone: add explicit check for empty local repo...
Gregory Szorc -
r26447:591088f7 default
parent child Browse files
Show More
@@ -25,6 +25,10 b' def canperformstreamclone(repo, remote, '
25 a set of repo requirements from the remote, or ``None`` if stream clone
25 a set of repo requirements from the remote, or ``None`` if stream clone
26 isn't supported.
26 isn't supported.
27 """
27 """
28 # Streaming clone only works on empty repositories.
29 if len(repo):
30 return False, None
31
28 # Streaming clone only works if all data is being requested.
32 # Streaming clone only works if all data is being requested.
29 if heads:
33 if heads:
30 return False, None
34 return False, None
General Comments 0
You need to be logged in to leave comments. Login now