2007/7/2, Daniel Noll <daniel@nuix.com>:
> On Saturday 30 June 2007 09:31:36 Vineet Kumar wrote:
> > Afaik, cvs2svn looks at the only clue it has, which is whether the file
> > has "-kb" in the CVS repository. Probably (some of) these PNGs didn't,
> > and so cvs2svn imported them as text (since that's what they were in the
> > CVS repository). You might not notice the corruption on CVS if you were
> > working in an all LF environment, but once you tried to do a checkout on
> > windows, you'd have seen the CRLF corruption there too.
> >
> > Were you using subversion with mixed LF/CRLF clients? What was the
> > svn:eol-style set to? Same as with CVS: if you were working in an
> > all-LF environment you probably wouldn't notice the corruption.
I personally used an options file with the following setting:
<<
(...)
ctx.svn_property_setters = [
(...)
BinaryFileEOLStyleSetter(),
AutoPropsPropertySetter(
'<path to svn config file>',
True,
),
BinaryFileDefaultMimeTypeSetter(),
DefaultEOLStyleSetter('native'),
(...)
]
And my svn config file decides which are the binary files, through the
mime-type defined based on the file extension.
E.g. *.gif = svn:mime-type=image/gif;svn:needs-lock=true
and 'image/gif' is considered binary by svn because it does not start
with 'text/' (cf. SVN book, appendix B "Binary Files and Translation")
Yours faithfully,
--
Ir. Arnauld Van Muysewinkel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 3 09:57:45 2007