mercurial/commands.py
changeset 541 abaea35387a8
parent 527 58790c83ce52
child 542 eda4c32c167a
--- a/mercurial/commands.py	Wed Jun 29 14:20:54 2005 -0800
+++ b/mercurial/commands.py	Thu Jun 30 07:16:05 2005 +0100
@@ -281,7 +281,9 @@
 
     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