[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: Faller, Gyula <GFaller_at_Graphisoft.hu>
Date: 2003-09-29 22:13:44 CEST

        Hi,

 Another turn:

 Thanks for the tip, I updated the cvs2svn.py and I applied the patch mentioned in the issue. After it, I got the same error message at the same point of the script, but the different amount of the conversion:

c:\Program Files\Subversion\cvs2svn>"C:\Program Files\Subversion\cvs2svn\cvs2svn.py" -v --create -s c:\SVNRepo C:\CVSRepo-Test
[lots of messages]

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')

I printed out the parent_key and the parent variables: the parent_key was 2c36, and the parent was as small as 6 lines mixed folders and files. So this error is different from the previous one.

I investigated the databases built temporarily. I found this:

c:\Program Files\Subversion\cvs2svn>dir *.db
 Volume in drive C is Main

 Directory of c:\Program Files\Subversion\cvs2svn

2003. 09. 29. 22:01 10 503 680 cvs2svn-nodes.db
2003. 09. 29. 22:01 2 048 cvs2svn-revisions.db
2003. 09. 29. 22:01 5 335 552 cvs2svn-sym-names.db
2003. 09. 29. 22:01 715 264 cvs2svn-symroots.db
               4 File(s) 16 556 544 bytes
               0 Dir(s) 5 248 479 232 bytes free

After it I halved the files in the repository (keeping the folder where the script breaks down) and restarted the process. It is finished. The temporary files looks like it:

c:\Program Files\Subversion\cvs2svn>dir *.db
 Volume in drive C is Main

 Directory of c:\Program Files\Subversion\cvs2svn

2003. 09. 29. 20:49 6 127 104 cvs2svn-nodes.db
2003. 09. 29. 20:49 2 048 cvs2svn-revisions.db
2003. 09. 29. 20:49 5 324 800 cvs2svn-sym-names.db
2003. 09. 29. 20:49 708 096 cvs2svn-symroots.db
               4 File(s) 12 162 048 bytes
               0 Dir(s) 5 254 705 152 bytes free

 Is it possible that the used bsddb has a size 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

 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_!

 After it I examined the repository db folder. Its largest file was "strings" with 1.5 Mb, which is very small.
 What I do wrong? I cannot see any points... :((

        Thanks forward for your help:

                Gyula

> -----Original Message-----
> From: Max Bowsher [mailto:maxb@ukf.net]
> Sent: csütörtök 2003. szeptember 11. 14:04
> To: Faller, Gyula; dev@subversion.tigris.org
> Cc: Michael Wood; Branko Cibej
> Subject: Re: cvs2svn change_path crash
>
>
> Faller, Gyula wrote:
> > Hi,
> >
> > I examined the script and I found that the problem is with the

[..]

> > to os.sep. The other way (change all separators to '/') is
> not perfect
> > because on some operating system the '/' can be a valid
> filename element.
>
> See issue 1360.
>
> Max.
>
>
Received on Mon Sep 29 22:12:11 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.