Merge with crew
authorMatt Mackall <mpm@selenic.com>
Thu, 12 Apr 2007 12:42:22 -0500
changeset 4343 8b4d4f84b739
parent 4341 f4a1eac52d43 (current diff)
parent 4336 35ad84669ca5 (diff)
child 4346 c593e502f7fd
Merge with crew
mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -807,6 +807,9 @@ def linkfunc(path, fallback):
         return lambda x: os.path.islink(os.path.join(path, x))
     return fallback
 
+_umask = os.umask(0)
+os.umask(_umask)
+
 # Platform specific variants
 if os.name == 'nt':
     import msvcrt
@@ -933,8 +936,6 @@ if os.name == 'nt':
 
 else:
     nulldev = '/dev/null'
-    _umask = os.umask(0)
-    os.umask(_umask)
 
     def rcfiles(path):
         rcs = [os.path.join(path, 'hgrc')]