changeset 4338:8b4d4f84b739

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Thu, 12 Apr 2007 12:42:22 -0500
parents f4a1eac52d43 (current diff) 35ad84669ca5 (diff)
children c593e502f7fd
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/util.py	Tue Apr 10 14:05:15 2007 -0500
+++ b/mercurial/util.py	Thu Apr 12 12:42:22 2007 -0500
@@ -807,6 +807,9 @@
         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 @@
 
 else:
     nulldev = '/dev/null'
-    _umask = os.umask(0)
-    os.umask(_umask)
 
     def rcfiles(path):
         rcs = [os.path.join(path, 'hgrc')]