[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion and binary files

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Fri, 01 Feb 2008 09:11:23 -0500

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

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.