mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
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-----
This commit is contained in:
parent
7ad3935fdb
commit
23c3e09d30
@ -388,7 +388,7 @@ def clone(ui, source, dest = None, **opts):
|
||||
other = hg.repository(ui, source)
|
||||
|
||||
if other.dev() != -1 and os.stat(dest).st_dev == other.dev():
|
||||
ui.status("cloning by hardlink\n")
|
||||
ui.note("cloning by hardlink\n")
|
||||
util.system("cp -al '%s'/.hg '%s'/.hg" % (source, dest))
|
||||
try:
|
||||
os.remove(os.path.join(dest, ".hg", "dirstate"))
|
||||
|
Loading…
Reference in New Issue
Block a user