Change type of all .xml file in a SVN repository
How can I change the type of all the files in a repository SVN who have the extension .xml from the type binary to the type text.
It means, is no more necessary to change the type of each file, one by one, but all files with extension .xml in a repository.
If you want all new files having a filename ending in .xml be treated as text, you can try the following:
Edit your local svn config file (Typically located in ~/.subversion/config
Add the following to the [auto-props] section:
[auto-props]
*.xml = svn:mime-type=text/xml
First, do a svn proplist <file>
on the file to see what properties are there.
Then, depending on what you see, you will want to use svn propset
or svn propdel
to set, change, or remove properties to make things sane.
If you want to do this to more than one, you will want to do something like:
svn propset svn:mime-type text/xml *.xml
or
find . -name \*.xml | xargs svn propset svn:mime-type text/xml