equal
deleted
inserted
replaced
577 "copy a file, preserving mode" |
577 "copy a file, preserving mode" |
578 try: |
578 try: |
579 shutil.copyfile(src, dest) |
579 shutil.copyfile(src, dest) |
580 shutil.copymode(src, dest) |
580 shutil.copymode(src, dest) |
581 except shutil.Error, inst: |
581 except shutil.Error, inst: |
582 raise util.Abort(str(inst)) |
582 raise Abort(str(inst)) |
583 |
583 |
584 def copyfiles(src, dst, hardlink=None): |
584 def copyfiles(src, dst, hardlink=None): |
585 """Copy a directory tree using hardlinks if possible""" |
585 """Copy a directory tree using hardlinks if possible""" |
586 |
586 |
587 if hardlink is None: |
587 if hardlink is None: |