util: move "default" makedir to posix.py
authorAdrian Buehlmann <adrian@cadifra.com>
Fri, 22 Jul 2011 09:53:15 +0200
changeset 14908 e2b5605501df
parent 14907 84af56cc673b
child 14909 c627fe32c923
util: move "default" makedir to posix.py makedir is already defined in win32.py, which gets imported into util.py via windows.py if we are running on Windows
mercurial/posix.py
mercurial/util.py
--- a/mercurial/posix.py	Thu Jul 21 15:52:08 2011 -0500
+++ b/mercurial/posix.py	Fri Jul 22 09:53:15 2011 +0200
@@ -325,3 +325,6 @@
     except ImportError:
         pass
     return 80
+
+def makedir(path, notindexed):
+    os.mkdir(path)
--- a/mercurial/util.py	Thu Jul 21 15:52:08 2011 -0500
+++ b/mercurial/util.py	Fri Jul 22 09:53:15 2011 +0200
@@ -390,9 +390,6 @@
 
     return check
 
-def makedir(path, notindexed):
-    os.mkdir(path)
-
 def unlinkpath(f):
     """unlink and remove the directory if it is empty"""
     os.unlink(f)