Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 6065:53ed9b40cfc4
make the journal/undo files from transactions inherit the mode from .hg/store
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 09 Feb 2008 18:38:54 -0200 |
parents | 3c3b126e5619 |
children | f3a8b5360100 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sat Feb 09 18:38:54 2008 -0200 +++ b/mercurial/localrepo.py Sat Feb 09 18:38:54 2008 -0200 @@ -78,6 +78,7 @@ except OSError: mode = None + self._createmode = mode self.opener.createmode = mode sopener = util.opener(self.spath) sopener.createmode = mode @@ -563,8 +564,9 @@ (self.join("journal.dirstate"), self.join("undo.dirstate")), (self.join("journal.branch"), self.join("undo.branch"))] tr = transaction.transaction(self.ui.warn, self.sopener, - self.sjoin("journal"), - aftertrans(renames)) + self.sjoin("journal"), + aftertrans(renames), + self._createmode) self._transref = weakref.ref(tr) return tr