comparison mercurial/commands.py @ 541:abaea35387a8

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-----
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 30 Jun 2005 07:16:05 +0100
parents 58790c83ce52
children eda4c32c167a
comparison
equal deleted inserted replaced
527:58790c83ce52 541:abaea35387a8
279 279
280 os.mkdir(dest) 280 os.mkdir(dest)
281 281
282 try: 282 try:
283 link = 0 283 link = 0
284 if not source.startswith("http://"): 284 if not (source.startswith("http://") or
285 source.startswith("hg://") or
286 source.startswith("old-http://")):
285 d1 = os.stat(dest).st_dev 287 d1 = os.stat(dest).st_dev
286 d2 = os.stat(source).st_dev 288 d2 = os.stat(source).st_dev
287 if d1 == d2: link = 1 289 if d1 == d2: link = 1
288 290
289 if link: 291 if link: