mercurial/commands.py
changeset 541 abaea35387a8
parent 527 58790c83ce52
child 542 eda4c32c167a
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -281,7 +281,9 @@ def clone(ui, source, dest = None, **opt
 
     try:
         link = 0
-        if not source.startswith("http://"):
+        if not (source.startswith("http://") or
+                source.startswith("hg://") or
+                source.startswith("old-http://")):
             d1 = os.stat(dest).st_dev
             d2 = os.stat(source).st_dev
             if d1 == d2: link = 1