# HG changeset patch # User Thomas Arendsen Hein # Date 1120112165 -3600 # Node ID abaea35387a81b39dbb0532328a12508644dfb0b # Parent 58790c83ce52b9dc624d980584e7c75d429ac514 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----- diff -r 58790c83ce52 -r abaea35387a8 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