comparison mercurial/util.py @ 4068:5b1f663ef86d

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Tue, 06 Feb 2007 16:12:22 -0600
parents 431f3c1d3a37 c620376b8fd6
children 3fef134832d8
comparison
equal deleted inserted replaced
4062:516f883e3d79 4068:5b1f663ef86d
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: