changeset 5653 | 1b35bc1c1968 |
parent 5652 | e90e72c6b4c7 |
child 5692 | 1127fe12202a |
--- a/mercurial/patch.py Mon Dec 17 23:42:46 2007 +0100 +++ b/mercurial/patch.py Mon Dec 17 23:42:48 2007 +0100 @@ -321,12 +321,7 @@ if not self.exists: dirname = os.path.dirname(fname) if dirname and not os.path.isdir(dirname): - dirs = dirname.split(os.path.sep) - d = "" - for x in dirs: - d = os.path.join(d, x) - if not os.path.isdir(d): - os.mkdir(d) + os.makedirs(dirname) self.hash = {} self.dirty = 0