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

Re: mime-types

From: Ed Hillmann <edhillmann_at_yahoo.com>
Date: 2005-02-08 02:53:23 CET

> I think svn assumes the file to be text based unless
> otherwise
> specified by mime-type. So if during the cvs2svn
> conversion, if
> eol-style and mime-type are set to nothing (as it
> will do if
> --no-default-eol and --keywords-off are used), then
> wouldn't binary
> files be considered text while merging as explained
> by the above
> paragraph? Is that a problem? While it may not be a
> problem, I assumed
> it is.

I don't think this is quite accurate. I used cvs2svn
with some JAR files which were entered as text in the
SVN repository (and they weren't corrupt in CVS...
possibly not defined correctly, but they worked). I
did not use any flags when I executed cvs2svn, which
I've come to accept as my fault (I didn't provide
cvs2svn with any mime-types definition, so it couldn't
really check).

However, when I exported the files out of CVS and
Imported them into SVN, the JAR files (and other
binary files) were added correctly (SVN even denoted
when it thought it was dealing with a binary file).

From what I've seen, SVN attempts to figure out what
type of file it is (I had a peek at the code and its
add/import functionalty has something like that in

I'm guessing that if you don't give cvs2svn the
definitions it needs to figure out the type, it
assumes that the file is text. I will qualify this
statement by saying that I have not seen one line of
cvs2svn code, and someone far more qualified would be
able to say I'm right or wrong. :)

Find local movie times and trailers on Yahoo! Movies.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Feb 8 02:55:36 2005

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.