mercurial/transaction.py
changeset 25658 e93036747902
parent 25302 bcb17d7dbec2
child 25660 328739ea70c3
--- a/mercurial/transaction.py	Tue Jun 23 14:28:15 2015 -0700
+++ b/mercurial/transaction.py	Tue Jun 23 22:30:33 2015 -0700
@@ -130,8 +130,8 @@
         self._backupsfile.write('%d\n' % version)
 
         if createmode is not None:
-            opener.chmod(self.journal, createmode & 0666)
-            opener.chmod(self._backupjournal, createmode & 0666)
+            opener.chmod(self.journal, createmode & 0o666)
+            opener.chmod(self._backupjournal, createmode & 0o666)
 
         # hold file generations to be performed on commit
         self._filegenerators = {}