Added support for hg:// and old-http:// to 'hg clone'.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 30 Jun 2005 07:16:05 +0100
changeset 541 abaea35387a8
parent 527 58790c83ce52
child 542 eda4c32c167a
Added support for hg:// and old-http:// to 'hg clone'. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Added support for hg:// and old-http:// to 'hg clone'. manifest hash: 4292cc7927afbec5663b5fff4317a238fb65cdec -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCw44lW7P1GVgWeRoRArWzAJ9AjiCF7poldqFxshV+lAyHZKy2PACgpCt1 KTdmdp+AL6m953NnYc5QNbo= =BWbr -----END PGP SIGNATURE-----
mercurial/commands.py
--- 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