changeset 7244 | 127a624406b4 |
parent 7200 | ca5ac40949dc |
child 7247 | c4461ea8b4c8 |
--- a/mercurial/patch.py Fri Oct 24 16:20:53 2008 +0200 +++ b/mercurial/patch.py Fri Oct 24 20:46:56 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)