# HG changeset patch # User Matt Mackall # Date 1425276749 21600 # Node ID e5ce49a30146e7c2211c570e764e9f9ed5dc5340 # Parent a41902aac76dabcec39c5d96694e8c4f74225408 transaction: disable hardlink backups (issue4546) Causing troubles, simplest fix. diff -r a41902aac76d -r e5ce49a30146 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