mercurial/util.py
branchstable
changeset 47062 f38bf44e077f
parent 46926 9c3e84569071
child 47079 5b3513177f2b
child 47128 bea4717415c0
equal deleted inserted replaced
47061:bd2ed1032b4e 47062:f38bf44e077f
   141 username = platform.username
   141 username = platform.username
   142 
   142 
   143 
   143 
   144 def setumask(val):
   144 def setumask(val):
   145     # type: (int) -> None
   145     # type: (int) -> None
   146     ''' updates the umask. used by chg server '''
   146     '''updates the umask. used by chg server'''
   147     if pycompat.iswindows:
   147     if pycompat.iswindows:
   148         return
   148         return
   149     os.umask(val)
   149     os.umask(val)
   150     global umask
   150     global umask
   151     platform.umask = umask = val & 0o777
   151     platform.umask = umask = val & 0o777