[RFC] per-branch umask
Aaron Bentley
aaron.bentley at utoronto.ca
Tue Dec 13 19:33:13 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> Now, I can write a wrapper which sets umask to 0002, and then runs bzr,
> but that only works locally, not over sftp.
Actually, the solution for Arch-over-sftp should also work for bzr. Of
course, we way decide we can do better.
http://wiki.gnuarch.org/Centralized_20Development (around "Using
multiple accounts, a group, and a conditionalized startup script for
setting umask")
> I could probably write a plugin, which would wrap around
> WorkingTree.commit() or something like that (though it is a branch
> property, not a working tree one).
The abstraction it would interact with is the lockable files that are
associated with that copy of the branch and repository data.
> I'm not sure when to set umask
Personally, I would reimplement umasks on top of AtomicFiles, and
specify the umask in BzrBranch.controlfile.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDnyH50F+nu1YWqI0RArqkAJ4qbnUK5u5sPW1KskWK4Z0PD9lBfwCeOV77
PC6gRQemBbHnB/UYQH7V368=
=L5y+
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list