mercurial/patch.py
changeset 3629 4cfb72bcb978
parent 3588 45574a225632
child 3673 eb0b4a2d70a9
--- a/mercurial/patch.py	Mon Nov 13 13:26:57 2006 -0600
+++ b/mercurial/patch.py	Mon Nov 13 13:26:57 2006 -0600
@@ -26,11 +26,8 @@
     targetdir = os.path.dirname(absdst)
     if not os.path.isdir(targetdir):
         os.makedirs(targetdir)
-    try:
-        shutil.copyfile(abssrc, absdst)
-        shutil.copymode(abssrc, absdst)
-    except shutil.Error, inst:
-        raise util.Abort(str(inst))
+
+    util.copyfile(abssrc, absdst)
 
 # public functions