# HG changeset patch # User Benoit Boissinot # Date 1224941698 -7200 # Node ID 37657dc5c65ee40020ab553752c99714e797394c # Parent 127a624406b47e5862d7a22c7b014893a75add93# Parent a8e4e599e17f9c84921a70dee021c942c2b65886 merge with crew diff -r a8e4e599e17f -r 37657dc5c65e mercurial/patch.py --- 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)