hgext/mq.py
changeset 2086 8742352db413
parent 2047 ebf1ecb5f4e8
child 2097 4d2c2597876f
--- a/hgext/mq.py	Thu Apr 13 17:42:49 2006 -0700
+++ b/hgext/mq.py	Tue Apr 18 14:56:54 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: