changeset 7244:127a624406b4

patch: remove double variables in copyfile() func
author Bartosz SKOWRON <getxsick at gmail dot com>
date Fri, 24 Oct 2008 20:46:56 +0200
parents b9bf36905b55
children 37657dc5c65e
files mercurial/patch.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)