mercurial/patch.py
branchstable
changeset 12341 aca8b10bca6e
parent 12340 b0bb72460c44
child 12344 b6173aee4a47
--- a/mercurial/patch.py	Mon Sep 20 21:42:11 2010 +0200
+++ b/mercurial/patch.py	Mon Sep 20 21:42:11 2010 +0200
@@ -25,7 +25,7 @@
 
 def copyfile(src, dst, basedir):
     abssrc, absdst = [util.canonpath(basedir, basedir, x) for x in [src, dst]]
-    if os.path.exists(absdst):
+    if os.path.lexists(absdst):
         raise util.Abort(_("cannot create %s: destination already exists") %
                          dst)