mercurial/streamclone.py
changeset 26447 591088f7028a
parent 26446 3ea10bb761ce
child 26458 362793295640
--- a/mercurial/streamclone.py	Fri Oct 02 22:22:11 2015 -0700
+++ b/mercurial/streamclone.py	Fri Oct 02 21:53:25 2015 -0700
@@ -25,6 +25,10 @@
     a set of repo requirements from the remote, or ``None`` if stream clone
     isn't supported.
     """
+    # Streaming clone only works on empty repositories.
+    if len(repo):
+        return False, None
+
     # Streaming clone only works if all data is being requested.
     if heads:
         return False, None