You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Robert Pluim <rp...@bigfoot.com> on 2003/05/14 22:15:32 UTC

cvs2svn, anydbm, FreeBSD

So, during the resolution of issue 1302, I sent my copy of the FreeBSD
cvs repository to Karl, because I was getting the following error when
running cvs2svn against it:

     adding or changing 1.1 : trunk/src/lib/libc/locale/Makefile.inc  
  Traceback (most recent call last):  
    File "./cvs2svn/cvs2svn.py", line 1161, in ?  
      main()  
    File "./cvs2svn/cvs2svn.py", line 1158, in main  
      convert(ctx, start_pass=start_pass)  
    File "./cvs2svn/cvs2svn.py", line 1077, in convert  
      _passes[i](ctx)  
    File "./cvs2svn/cvs2svn.py", line 1026, in pass4  
      c.commit(dump, ctx)  
    File "./cvs2svn/cvs2svn.py", line 707, in commit  
      dump.add_or_change_path(cvs_path, svn_path, cvs_rev, rcs_file)  
    File "./cvs2svn/cvs2svn.py", line 531, in add_or_change_path  
      if self.head_mirror.ensure_path(svn_path, self.add_dir):  
    File "./cvs2svn/cvs2svn.py", line 315, in ensure_path  
      parent_dir = marshal.loads(self.db[parent_dir_key])  
  KeyError: aa9

Karl ran cvs2svn, and got:

   Traceback (most recent call last):
     File "cvs2svn.py", line 1183, in ?
       main()
     File "cvs2svn.py", line 1180, in main
       convert(ctx, start_pass=start_pass)
     File "cvs2svn.py", line 1099, in convert
       _passes[i](ctx)
     File "cvs2svn.py", line 1047, in pass4
       c.commit(dump, ctx)
     File "cvs2svn.py", line 732, in commit
       dump.delete_path(svn_path)
     File "cvs2svn.py", line 588, in delete_path
       deleted_path = self.head_mirror.delete_path(svn_path, 1) \
         # 1 means prune
     File "cvs2svn.py", line 375, in delete_path
       parent_dir_key = parent_dir[component]
   KeyError: ypxfr

which disturbed me slightly, since he managed to convert
src/lib/libc/locale/Makefile.inc successfully.  After installing the
python gdbm bindings, and making anydbm.py use them, I can now get the
same error as Karl (which is good, since he has a fix for it).
Unfortunately, using either dbhash or dbm fails for me with the aa9
KeyError.

I'm assuming that this means that there is a bug in both the db and
the dbm routines on FreeBSD, and also that Karl's installation of
python is using gdbm.  I'm not sure what should be done about it,
though.  Has anyone else had problems running cvs2svn on FreeBSD?

Robert

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: cvs2svn, anydbm, FreeBSD

Posted by kf...@collab.net.
Robert Pluim <rp...@bigfoot.com> writes:
> I'm assuming that this means that there is a bug in both the db and
> the dbm routines on FreeBSD, and also that Karl's installation of
> python is using gdbm.  I'm not sure what should be done about it,
> though.  Has anyone else had problems running cvs2svn on FreeBSD?

Just a note: I've confirmed that my Python defaults to gdbm for
anydbm.  This has nothing to do with the Subversion repository db, of
course, which still uses Berkeley DB; this is about the temporary db
created by cvs2svn.py for some its own bookeeping.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org