comparison mercurial/util.py @ 24164:07a92bbd02e5 stable 3.3.2

transaction: really disable hardlink backups (issue4546)
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 02 Mar 2015 10:31:22 -0500
parents e5ce49a30146
children 5a7920c4d2ea
comparison
equal deleted inserted replaced
24161:80af610c4ffb 24164:07a92bbd02e5
720 "copy a file, preserving mode and atime/mtime" 720 "copy a file, preserving mode and atime/mtime"
721 if os.path.lexists(dest): 721 if os.path.lexists(dest):
722 unlink(dest) 722 unlink(dest)
723 # hardlinks are problematic on CIFS, quietly ignore this flag 723 # hardlinks are problematic on CIFS, quietly ignore this flag
724 # until we find a way to work around it cleanly (issue4546) 724 # until we find a way to work around it cleanly (issue4546)
725 if False or hardlink: 725 if False and hardlink:
726 try: 726 try:
727 oslink(src, dest) 727 oslink(src, dest)
728 return 728 return
729 except (IOError, OSError): 729 except (IOError, OSError):
730 pass # fall back to normal copy 730 pass # fall back to normal copy