[RFC] per-branch umask
John Arbash Meinel
john at arbash-meinel.com
Tue Dec 13 18:59:50 GMT 2005
John Arbash Meinel wrote:
...
> I'm not sure when to set umask, since if you pull from another branch,
> you should only use the local umask. I'm pretty sure we currently
> don't have any operations which write to 2 branches at the same time.
> So we probably could get away with only setting the umask once.
> Perhaps just when we call 'branch.lock_write()'. Is that sane?
I just realized that with bound branches, you have to be more careful
than this. Since you will update the bound branch, and the local one,
and the umask can definitely be different between them.
Anyone else have a better idea of when to set the umask? The best I have
right now is to set/unset it before each operation. Which seems like we
can do better than that.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051213/d95b9dcb/attachment.pgp
More information about the bazaar
mailing list