subversion and mime-types
Moin,
Subversion stores a mime-type with each file. You can check, edit and
set it using the propget, propedit and propset svn commands. So for
example to edit the mime-type of the file README you would use the
following command:
svn propedit svn:mime-type README
The change is done on your local repository and needs to be committed.
So it's safe to play around with this locally, changes can easily be
reverted.
Most of the files in the GIMP source tree have been set correctly during
the migration from CVS. Some have not, but we have corrected those
mistakes in the meantime and I think that the mime-types are all set
correctly now. Please make sure that you set the mime-type when adding
new files. You can automate this by putting the following lines into you
~/.subversion/config file:
[miscellany]
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.svg = svn:mime-type=image/svg+xml
*.xcf = svn:mime-type=image/x-xcf
*.xcf.gz = svn:mime-type=image/x-compressed-xcf
*.ico = svn:mime-type=image/x-ico
*.pdb = text/x-perl
Sven