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

Re: cvs2svn change_path crash

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-09-30 14:57:26 CEST

On Mon, Sep 29, 2003 at 10:13:44PM +0200, Faller, Gyula wrote:
[snip]
> Traceback (most recent call last):
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 2267, in ?
> main()
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 2263, in main
> convert(ctx, start_pass=start_pass)
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 2135, in convert
> _passes[i](ctx)
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 2070, in pass4
> c.commit(dumper, ctx, sym_tracker)
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 1845, in commit
> branches)
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 1041, in add_or_change_path
> self.add_dir)
> File "C:\PROGRA~1\SUBVER~1\cvs2svn\cvs2svn.py", line 637, in change_path
> self.nodes_db[parent_key] = marshal.dumps(parent)
> bsddb.error: (0, 'Error')
>
[snip]
> Is it possible that the used bsddb has a size limit?

I think it might be possible that the Windows version of Berkeley DB has
some sort of limit.

> My python version is:
>
> c:\Program Files\Subversion\cvs2svn>python
> ActivePython 2.2.1 Build 222 (ActiveState Corp.) based on
> Python 2.2.1 (#34, Apr 15 2002, 09:51:39) [MSC 32 bit (Intel)] on win32

Maybe this version of Python uses an old version of Berkeley DB? Maybe
you could get pybsddb from http://pybsddb.sourceforge.net/? You might
need to make changes to cvs2svn.py in order for it to use the updated
bsddb module, though.

> After it I checked out my new repository:
>
> svn co file:///c:/SVNRepo newtest
>
> The result was not satisfying: the directory hierarchy was perfect,
> _but all the files were 0 byte long_!

Do you have "co" installed? It comes with RCS. A while ago I noticed
that if you don't have a "co" command the conversion seems to work, but
the files are all zero length. I thought cvs2svn.py was patched to
watch out for this, though.

Of course there's always the option of installing Linux/FreeBSD etc. and
using that for the conversion :)

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 30 14:58:35 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.