mercurial/commands.py
changeset 1241 3b4f05ff3130
parent 1238 6a4f181497c9
child 1242 4a6efec8b698
child 1247 7a70dafbf4b9
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -620,10 +620,6 @@ def clone(ui, source, dest=None, **opts)
 
     if other.dev() != -1:
         abspath = os.path.abspath(source)
-        copyfile = (os.stat(dest).st_dev == other.dev()
-                    and getattr(os, 'link', None) or shutil.copy2)
-        if copyfile is not shutil.copy2:
-            ui.note("cloning by hardlink\n")
 
         # we use a lock here because if we race with commit, we can
         # end up with extra data in the cloned revlogs that's not
@@ -638,7 +634,7 @@ def clone(ui, source, dest=None, **opts)
         for f in files.split():
             src = os.path.join(source, ".hg", f)
             dst = os.path.join(dest, ".hg", f)
-            util.copyfiles(src, dst, copyfile)
+            util.copyfiles(src, dst)
 
         repo = hg.repository(ui, dest)