mercurial/util.py
branchstable
changeset 24155 e5ce49a30146
parent 23917 3cbb5bf4035d
child 24164 07a92bbd02e5
--- a/mercurial/util.py	Sun Mar 01 23:20:02 2015 -0600
+++ b/mercurial/util.py	Mon Mar 02 00:12:29 2015 -0600
@@ -720,7 +720,9 @@
     "copy a file, preserving mode and atime/mtime"
     if os.path.lexists(dest):
         unlink(dest)
-    if hardlink:
+    # hardlinks are problematic on CIFS, quietly ignore this flag
+    # until we find a way to work around it cleanly (issue4546)
+    if False or hardlink:
         try:
             oslink(src, dest)
             return