# HG changeset patch # User Alexis S. L. Carvalho # Date 1176103457 10800 # Node ID aba90193f4e40e592aa29765ffa62053e87e483d # Parent 5e3936eabe5df26f3d9fab26e3647220367beb7a cache os.umask even on windows diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -724,6 +724,9 @@ def checkfolding(path): except: return True +_umask = os.umask(0) +os.umask(_umask) + # Platform specific variants if os.name == 'nt': demandload(globals(), "msvcrt") @@ -851,8 +854,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')]