Thomas Scheffler wrote:
> As we have several of them in our repository it gets quiet anyoing, when you
> use some tools like viewvc which do not display "svn blame" outputs or
> svnnotify which refuses to print out the diffs (because svnlook is used).
Technically, speaking, XML files cannot always be treated as plain text
files (since not all XML documents have strictly ordered contents).
There are a number of XML diff utilities out there that try and provide
sensible diffs of XML documents, but Subversion doesn't [currently] have
a pluggable diff architecture that would allow you to selectively switch
to alternate diff programs for specific filetypes. It is something that
a fair number of people would be interested in, so I would expect it to
come along at some point. Patches welcome... ;-)
> What can I do to tell subversion that xml files are text files?
Remove the 'svn:mime-type' from the files; anything with a mime-type of
"application/*" is considered binary. Then use the --diff-cmd and
--extensions command line arguments to call your favorite XML diff
program (you can easily write some wrapper scripts that automate this to
a large extent).
HTH
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-01 15:11:45 CET