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

Re: svn commit: rev 5750 - branches/cvs2svn-kfogel/tools/cvs2svn

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2003-04-29 15:49:50 CEST

Branko Čibej <brane@xbc.nu> writes:
> >>+def get_md5(path):
> >>+ """Return the hex md5 digest of file PATH."""
> >>+ f = open(path, 'r')
>
> Crash!
>
> Read files in binary mode... Write files in binary mode...
> [repeat 50 times]
> :-)

Thanks! I forgot that Python makes that distinction by default.

Hmmm. I've fixed all the open calls where it's appropriate, except
for two cases where we're opening an RCS file, in visit_file() and in
RevInfoParser.parse_cvs_file(). In the RCS file format, all
whitespace outside strings is treated the same, which I suppose
technically means that an RCS file on Windows *could* have either LF
or CRLF, and could have either on Unix too. In practice, I don't know
whether CVS on different operating systems creates the RCS files
differently, and even if it did, I'm not sure the rcsparse module
would care, depending on how carefully it parses whitespace.

The easiest thing is probably just to try cvs2svn on Windows and see
what happens.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 29 16:36:39 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.