[PATCH 1 of 5 V2] util: move "default" makedir to posix.py
Adrian Buehlmann
adrian at cadifra.com
Fri Jul 22 05:15:28 CDT 2011
# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1311321195 -7200
# Node ID ea1a824b0e33879340f9186fb72add9969fdf55a
# Parent 96a72cbc6c292554b4e48a39a4c4741668c33211
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
diff --git a/mercurial/posix.py b/mercurial/posix.py
--- a/mercurial/posix.py
+++ b/mercurial/posix.py
@@ -325,3 +325,6 @@
except ImportError:
pass
return 80
+
+def makedir(path, notindexed):
+ os.mkdir(path)
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -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)
More information about the Mercurial-devel
mailing list