mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
patch: remove double variables in copyfile() func
This commit is contained in:
parent
566c5d9e55
commit
6ad08c06ee
@ -31,9 +31,8 @@ def copyfile(src, dst, basedir=None):
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user