I assume there is a very good reason for many XML files having the
svn:mime-type set to "application/xml". If not, the size of many
commits could be drastically reduced and the FGAddon repository
backend size could be kept much smaller in the long term, as each
subversion revision for the XML files would be text diffs instead of
complete file exchanges (as binary files are treated as such). For
example Syd's r468 commit
(
https://sourceforge.net/p/flightgear/fgaddon/468/), although this XML
file does not have svn:mime-type set, if it did the size of r468 would
be the full 12k size of the XML file instead of that tiny diff. A
bulk addition of svn:mime-type set to "text/xml" to all FGAddon files
can be done simply with (I wouldn't recommend this change):
$ find -name "*.xml" -exec svn propset svn:mime-type text/xml {} \;
Or a complete bulk removal of this nasty property with:
$ find -name "*.xml" -exec svn propdel svn:mime-type {} \;
For some FGAddon statistics, the number of XML files with
svn:mime-type set to "application/xml" is:
$ find -name "*.xml" -exec svn propget svn:mime-type {} \; | grep
"application" | wc -l
1133
The number of XML files with svn:mime-type set to "text/xml" is:
$ find -name "*.xml" -exec svn propget svn:mime-type {} \; | grep "text" | wc -l
14
And the total number of XML files is:
$ find -name "*.xml" | wc -l
25547
I guess I'm now going to get flamed by some modellers for these
repository size suggestions
Regards,
Edward