mercurial/util.py
changeset 4068 5b1f663ef86d
parent 4059 431f3c1d3a37
parent 4067 c620376b8fd6
child 4069 3fef134832d8
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: