author | Patrick Mezard <pmezard@gmail.com> |
Mon, 17 Dec 2007 23:42:48 +0100 | |
changeset 5653 | 1b35bc1c1968 |
parent 5652 | e90e72c6b4c7 |
child 5654 | 831e34e17f4f |
child 5673 | dd3ce7515f4d |
--- 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