How do I tell Subversion (svn) to treat a file as a binary file?
If using tortoise svn in Windows, right click on the file and go to properties. Click on new and add a new property of type svn:mime-type. For the value put: application/octet-stream
If 'svn add' guesses the incorrect type and gives you an error like the following:
svn: E200009: File 'qt/examples/dialogs/configdialog/images/config.png' has inconsistent newlines
svn: E135000: Inconsistent line ending style
then the workaround is to add the file without properties and then set the properties in a second step:
svn add --no-auto-props qt/examples/dialogs/configdialog/images/config.png
svn propset svn:mime-type image/png qt/examples/dialogs/configdialog/images/config.png
As per the Subversion FAQ, you can use svn propset to change the svn:mime-type property to application/octet-stream
It usually does this by default for you, but if it isn't you need to look into file properties and propset.