Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 47128:bea4717415c0
merge with stable
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 07 May 2021 22:06:25 -0400 |
parents | d55b71393907 f38bf44e077f |
children | bcafcd779d2e |
comparison
equal
deleted
inserted
replaced
47127:5ffc6c18fb96 | 47128:bea4717415c0 |
---|---|
142 username = platform.username | 142 username = platform.username |
143 | 143 |
144 | 144 |
145 def setumask(val): | 145 def setumask(val): |
146 # type: (int) -> None | 146 # type: (int) -> None |
147 ''' updates the umask. used by chg server ''' | 147 '''updates the umask. used by chg server''' |
148 if pycompat.iswindows: | 148 if pycompat.iswindows: |
149 return | 149 return |
150 os.umask(val) | 150 os.umask(val) |
151 global umask | 151 global umask |
152 platform.umask = umask = val & 0o777 | 152 platform.umask = umask = val & 0o777 |