[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: <kfogel_at_collab.net>
Date: 2004-11-20 08:42:20 CET

Mark Grosberg <myg@gladesoft.com> writes:
> 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.

See property 'svn:mime-type'. That property is how Subversion knows a
file's mime-type. If the property is absent, Subversion doesn't know
the mime type.

> 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?

Wait, huh -- you clearly know about svn:mime-type...

> 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.

Now I'm totally confused :-). Did you just make up the name
"svn:mime-type", not knowing that it in fact exists?

Anyway, as for the idea: patch welcome. I think you'll find the issue
is considerably more complex than that, but hey, I'd love to be proven
wrong.

-K

---------------------------------------------------------------------
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:44:03 2004

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