diff -r dcc56e10c23b -r e93036747902 mercurial/scmutil.py --- a/mercurial/scmutil.py Tue Jun 23 14:28:15 2015 -0700 +++ b/mercurial/scmutil.py Tue Jun 23 22:30:33 2015 -0700 @@ -450,7 +450,7 @@ def _fixfilemode(self, name): if self.createmode is None or not self._chmod: return - os.chmod(name, self.createmode & 0666) + os.chmod(name, self.createmode & 0o666) def __call__(self, path, mode="r", text=False, atomictemp=False, notindexed=False):