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