transaction: disable hardlink backups (issue4546) stable
authorMatt Mackall <mpm@selenic.com>
Mon, 02 Mar 2015 00:12:29 -0600
branchstable
changeset 24155 e5ce49a30146
parent 24154 a41902aac76d
child 24156 75a2df2bbde8
transaction: disable hardlink backups (issue4546) Causing troubles, simplest fix.
mercurial/util.py
--- 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