equal
deleted
inserted
replaced
526 self._setumask(data) |
526 self._setumask(data) |
527 |
527 |
528 def _setumask(self, data): |
528 def _setumask(self, data): |
529 mask = struct.unpack(b'>I', data)[0] |
529 mask = struct.unpack(b'>I', data)[0] |
530 self.ui.log(b'chgserver', b'setumask %r\n', mask) |
530 self.ui.log(b'chgserver', b'setumask %r\n', mask) |
531 os.umask(mask) |
531 util.setumask(mask) |
532 |
532 |
533 def runcommand(self): |
533 def runcommand(self): |
534 # pager may be attached within the runcommand session, which should |
534 # pager may be attached within the runcommand session, which should |
535 # be detached at the end of the session. otherwise the pager wouldn't |
535 # be detached at the end of the session. otherwise the pager wouldn't |
536 # receive EOF. |
536 # receive EOF. |