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

cvs2svn, anydbm, FreeBSD

From: Robert Pluim <rpluim_at_bigfoot.com>
Date: 2003-05-15 00:15:32 CEST

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
Received on Thu May 15 00:13:59 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.