mercurial/hg.py
changeset 13795 43b5fe18ea6c
parent 13742 7abab875e647
child 13823 ad179644750f
--- a/mercurial/hg.py	Tue Mar 29 16:25:48 2011 +0200
+++ b/mercurial/hg.py	Mon Mar 28 15:54:22 2011 +0200
@@ -143,7 +143,7 @@
 
     if not os.path.isdir(root):
         os.mkdir(root)
-    os.mkdir(roothg)
+    util.makedir(roothg, notindexed=True)
 
     requirements = ''
     try:
@@ -281,7 +281,7 @@
                 dir_cleanup.dir_ = hgdir
             try:
                 dest_path = hgdir
-                os.mkdir(dest_path)
+                util.makedir(dest_path, notindexed=True)
             except OSError, inst:
                 if inst.errno == errno.EEXIST:
                     dir_cleanup.close()