changeset 7245:37657dc5c65e

merge with crew
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 25 Oct 2008 15:34:58 +0200
parents 127a624406b4 (diff) a8e4e599e17f (current diff)
children 2fef3051ebb3
files
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Oct 19 00:32:23 2008 +0200
+++ b/mercurial/patch.py	Sat Oct 25 15:34:58 2008 +0200
@@ -31,9 +31,8 @@
         raise util.Abort(_("cannot create %s: destination already exists") %
                          dst)
 
-    targetdir = os.path.dirname(absdst)
-    if not os.path.isdir(targetdir):
-        os.makedirs(targetdir)
+    if not os.path.isdir(basedir):
+        os.makedirs(basedir)
 
     util.copyfile(abssrc, absdst)