Mercurial > hg
diff mercurial/chgserver.py @ 44629:d37975386798
chgserver: update the umask cache before each run
posix.py uses a global variable to store the umask value resulting in caching of
it when using chg. We need to update it before each command run as the umask can
change between commands.
This fixes test-inherit-mode.t with chg.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Tue, 31 Mar 2020 15:11:33 +0530 |
parents | bdc8a5944d44 |
children | 8e8fd938ca07 |
line wrap: on
line diff
--- a/mercurial/chgserver.py Thu Mar 26 10:09:17 2020 -0400 +++ b/mercurial/chgserver.py Tue Mar 31 15:11:33 2020 +0530 @@ -528,7 +528,7 @@ def _setumask(self, data): mask = struct.unpack(b'>I', data)[0] self.ui.log(b'chgserver', b'setumask %r\n', mask) - os.umask(mask) + util.setumask(mask) def runcommand(self): # pager may be attached within the runcommand session, which should