equal
deleted
inserted
replaced
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 |