diff hgext/mq.py @ 2087:19fcc2889bad

merge with mainline.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 18 Apr 2006 20:33:33 -0700
parents 8742352db413
children 4d2c2597876f
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: