Mercurial > hg-stable
changeset 24155:e5ce49a30146 stable
transaction: disable hardlink backups (issue4546)
Causing troubles, simplest fix.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 02 Mar 2015 00:12:29 -0600 |
parents | a41902aac76d |
children | 75a2df2bbde8 |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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