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

Re: svn diff with binary files

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-11-20 08:54:09 CET

Mark Grosberg wrote:

> What about storing the mime type of an object in the working copy
> somewhere. I did a quick check on some of my working copies and found
> that the svn:eol-stlye propery is stored in the WC but the mime type is
> not. If it were then the client could make the decision quickly.
>
> This wouldn't even require that we make the WC format incompatible. If
> the svn:mime-type property is available in the prop-base then we can
> determine if we need to do any further processing for diff at all;
> otherwise we do the normal path. Or am I (most likely) missing something?
>
> I would think storing the mime type in the WC (as a prop) would be
> useful for the (eventual) pluggable diff support. This way the SVN
> configuration area can point to a particular diff program for a
> specified MIME type which is easily obtained from libsvn_wc.

Umm, it is stored as a property. svn:mime-type. It's just not there
for files that haven't had it set (either automatically if the file is
determined to be binary or manually otherwise).

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Nov 20 08:56:01 2004

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