mercurial/util.py
branchstable
changeset 24164 07a92bbd02e5
parent 24155 e5ce49a30146
child 24188 5a7920c4d2ea
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