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