##// END OF EJS Templates
cache os.umask even on windows
Alexis S. L. Carvalho -
r4327:aba90193 default
parent child Browse files
Show More
@@ -724,6 +724,9 b' def checkfolding(path):'
724 except:
724 except:
725 return True
725 return True
726
726
727 _umask = os.umask(0)
728 os.umask(_umask)
729
727 # Platform specific variants
730 # Platform specific variants
728 if os.name == 'nt':
731 if os.name == 'nt':
729 demandload(globals(), "msvcrt")
732 demandload(globals(), "msvcrt")
@@ -851,8 +854,6 b" if os.name == 'nt':"
851
854
852 else:
855 else:
853 nulldev = '/dev/null'
856 nulldev = '/dev/null'
854 _umask = os.umask(0)
855 os.umask(_umask)
856
857
857 def rcfiles(path):
858 def rcfiles(path):
858 rcs = [os.path.join(path, 'hgrc')]
859 rcs = [os.path.join(path, 'hgrc')]
General Comments 0
You need to be logged in to leave comments. Login now