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

Re: MIME type meta-data

From: William Uther <willu_at_cse.unsw.edu.au>
Date: 2003-03-07 00:58:40 CET

On Thursday, March 6, 2003, at 11:46 PM, Branko Èibej wrote:

> Paul Lussier wrote:
>
>> In a message dated: Wed, 05 Mar 2003 00:05:10 +0100
>> =?UTF-8?B?QnJhbmtvIMSMaWJlag==?= said:

The weird string speaks.... :)

>> Well, yeah, but would they necessarilly act differently upon the same
>> files being committed to the same repository?
>>
> I *hope* not, at least for the most common types. But I've seen so many
> cases of contents tagged with an invalid or unregistered mime type...

My reading of the original comment was that a distinction was being
drawn between "svn add" and "svn commit". If the client dependant
property setting was only happening on "add" (and "import") then it is
ok if it is not perfect (same as current binaryness detection). If it
is happening upon "commit" then... er, that is not going to work unless
it can read my mind perfectly.

> Well, given that one can always fix the property retroactively without
> having to check out a working copy (svn propset URL, remember) and that
> the server doesn't give a bent farthing about the mime type, let's see
> what can be done clent-side only.

Given that the setting is happening upon 'add', I would expect that
'add' is going to print out the auto-set mime-types. If any are
incorrect, you could correct them before the first commit.

>>> So I think this sort of mime type configuration should be
>>> a feature of the repository, with the clients just using the
>>> configuration from the repo. We've talked before about server-side
>>> configuration for clients, and haven't come up with a sane design,
>>> yet.
>>
>> But wouldn't having this as a repo feature cause a performance hit?
>>
> Depends on the design, doesn't it? :-)

Forget performance hit, the server simply doesn't have all the
information the client has. What type is the following file from my
repository: "Robot-Learning"? My local file system knows that this is
a powerpoint file. Sure, you might use a magic-number approach to get
this 80% right on the server, but the client already has the
information.

Will :-}

--
Dr William Uther                            National ICT Australia
Phone: +61 2 9385 6926             School of Computer Science and 
Engineering
Email: willu@cse.unsw.edu.au             University of New South Wales
Jabber: willu@jabber.cse.unsw.edu.au          Sydney, Australia
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 7 00:59:34 2003

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

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