# HG changeset patch # User Bartosz SKOWRON # Date 1224874016 -7200 # Node ID 127a624406b47e5862d7a22c7b014893a75add93 # Parent b9bf36905b553d588f994f35e41f8d020f0dc61b patch: remove double variables in copyfile() func diff -r b9bf36905b55 -r 127a624406b4 mercurial/patch.py --- 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)