# HG changeset patch # User Matt Mackall # Date 1176399742 18000 # Node ID 8b4d4f84b73972e48d1c6272963c4aa5f236c801 # Parent f4a1eac52d43b223658e6ccd092b3b7c521facb3# Parent 35ad84669ca57b75ce3c567cffe0bd8fd702dfa1 Merge with crew diff --git a/mercurial/util.py b/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')]