author | Vadim Gelfer <vadim.gelfer@gmail.com> |
Tue, 18 Apr 2006 20:33:33 -0700 | |
changeset 2087 | 19fcc2889bad |
parent 2085 | f71e9656524f (current diff) |
parent 2086 | 8742352db413 (diff) |
child 2088 | f16435b45780 |
--- a/hgext/mq.py Tue Apr 18 19:50:12 2006 -0400 +++ b/hgext/mq.py Tue Apr 18 20:33:33 2006 -0700 @@ -625,7 +625,10 @@ try: repo.wfile(f, "w").write(t) except IOError: - os.makedirs(os.path.dirname(repo.wjoin(f))) + try: + os.makedirs(os.path.dirname(repo.wjoin(f))) + except OSError, err: + if err.errno != errno.EEXIST: raise repo.wfile(f, "w").write(t) if not wlock: