changeset 2087:19fcc2889bad

merge with mainline.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 18 Apr 2006 20:33:33 -0700
parents f71e9656524f (current diff) 8742352db413 (diff)
children f16435b45780
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: