mercurial/util.py
changeset 4067 c620376b8fd6
parent 4057 3600b84656d3
child 4068 5b1f663ef86d
child 4086 cc8a52229620
equal deleted inserted replaced
4066:cff3e4b4a8de 4067:c620376b8fd6
   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: