Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 654:fafc16f705b6
Make cloning by hardlink quiet again
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Make cloning by hardlink quiet again
manifest hash: bd12b4deedb99e06415619f858b95b566a6d329e
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCzvGGywK+sNU5EO8RAiCzAJ9iCRbyijLT7PqkgCI9eFn+9pl+KQCfdcB1
yHxfvLCL39wAAcBo6Hebpvo=
=qne+
-----END PGP SIGNATURE-----
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 08 Jul 2005 13:35:02 -0800 |
parents | c9e159bb9a3d |
children | 31a9aa890016 |
comparison
equal
deleted
inserted
replaced
653:94cdd02792b5 | 654:fafc16f705b6 |
---|---|
386 abspath = source | 386 abspath = source |
387 source = ui.expandpath(source) | 387 source = ui.expandpath(source) |
388 other = hg.repository(ui, source) | 388 other = hg.repository(ui, source) |
389 | 389 |
390 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): | 390 if other.dev() != -1 and os.stat(dest).st_dev == other.dev(): |
391 ui.status("cloning by hardlink\n") | 391 ui.note("cloning by hardlink\n") |
392 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) | 392 util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest)) |
393 try: | 393 try: |
394 os.remove(os.path.join(dest, ".hg", "dirstate")) | 394 os.remove(os.path.join(dest, ".hg", "dirstate")) |
395 except: pass | 395 except: pass |
396 | 396 |