patch: remove double variables in copyfile() func
authorBartosz SKOWRON <getxsick at gmail dot com>
Fri, 24 Oct 2008 20:46:56 +0200
changeset 7244 127a624406b4
parent 7237 b9bf36905b55
child 7245 37657dc5c65e
patch: remove double variables in copyfile() func
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)