diff mercurial/util.py @ 13055:e2b8c7a6ff4d

merge with stable
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Wed, 01 Dec 2010 11:02:12 +0900
parents 44b26a87f73e 2649be11ab0b
children 8c6b7a5f38c4
line wrap: on
line diff
--- a/mercurial/util.py	Wed Dec 01 09:46:11 2010 +0900
+++ b/mercurial/util.py	Wed Dec 01 11:02:12 2010 +0900
@@ -841,7 +841,7 @@
     except OSError, err:
         if err.errno == errno.EEXIST:
             return
-        if err.errno != errno.ENOENT:
+        if not name or err.errno != errno.ENOENT:
             raise
     parent = os.path.abspath(os.path.dirname(name))
     makedirs(parent, mode)