[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 3941 - branches/cvs2svn-mmacek

From: Branko Čibej <brane_at_xbc.nu>
Date: 2002-12-01 01:24:16 CET

mmacek@tigris.org wrote:

>Author: mmacek
>Date: 2002-11-30 12:43:24 -0600 (Sat, 30 Nov 2002)
>New Revision: 3941
>
>Modified:
> branches/cvs2svn-mmacek/cvs2svn.py
>Log:
>* cvs2svn.py:
> - parse_revs_line: simplify parsing (use split)
> - Add write_revs_line function for writing the revs data.
> Update two call sites to use it.
>
[snip]

>+ data = line.split(' ', 4)
>+ timestamp = int(data[0], 16)
>+ id = data[1]
>+ op = data[2]
>+ rev = data[3]
>+ fname = data[4][:-1] # strip \n
>
Can you be sure it's a \n, not \r\n? I'd just like to be on the safe side...

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 1 01:24:59 2002

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