Readonly bit use case

Aaron Bentley aaron.bentley at utoronto.ca
Tue Sep 25 16:30:07 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I've just encountered a use case for the read-only bit.

If you have files that are generated files, but you want to version
them, you still don't want people hand-editing them.  So you can mark
them read-only, and have the script that generates the file work around
the fact that it's read-only.

This is obviously somewhat questionable-- a more correct approach would
be to avoid versioning generated files.  But for various reasons, it is
sometimes desirable.

In the case of the files we have at PanoMetrics, there is a cpp file
that is generated, (in a mostly-cpp tree) and it's nice to be able to
update the source file, generate the cpp, and see that the cpp has been
updated correctly in the diff.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+Sl/0F+nu1YWqI0RAks2AJ9z3R/0EzCModZI3UYFezIhePC9NgCfYpw2
dvD1vH1ocD9kzfS38v8N3Go=
=Mtul
-----END PGP SIGNATURE-----



More information about the bazaar mailing list