Editing Mime-types
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
When a developer commits a new file to the repository, they may get an error about mime types not being set. This is because there is (intentionally) a commit hook set up that verifies that there are mime types set on all files being added to the repository. | When a developer commits a new file to the repository, they may get an error about mime types not being set. This is because there is (intentionally) a commit hook set up that verifies that there are mime types set on all files being added to the repository. | ||
Line 6: | Line 5: | ||
Sean provides a copy of his Subversion configuration that includes property settings for many file types. You can download and install it with this: | Sean provides a copy of his Subversion configuration that includes property settings for many file types. You can download and install it with this: | ||
− | '''curl | + | '''curl http://brlcad.org/~sean/subversion.config > ~/.subversion/config''' |
− | Once installed, run ''svn revert'' on your new file and then add it again. The properties should be set if the config file is installed properly and it's a recognized file type. | + | Once installed, run ''svn revert'' on your new file and then add it again. The properties should be set if the config file is installed properly and it's a recognized file type. (You might consider changing '*.xml = svn:mime-type=text/xml;svn:eol-style=native' to use application/xml instead, since text/xml is being [http://lists.xml.org/archives/xml-dev/200407/msg00208.html deprecated]) |
This problem usually looks like this: | This problem usually looks like this: | ||
Line 47: | Line 46: | ||
[sean@bz (Wed May 28 13:31:55) brlcad]$ svn commit some_new_file.c | [sean@bz (Wed May 28 13:31:55) brlcad]$ svn commit some_new_file.c | ||
... no mime type error ... | ... no mime type error ... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |