Mercurial > hg > mercurial-crew-with-dirclash
changeset 4327:aba90193f4e4
cache os.umask even on windows
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 09 Apr 2007 04:24:17 -0300 |
parents | 5e3936eabe5d |
children | 1083ae4b5f0e |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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')]