Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-1488

cvs2svn not picky enough about choice of dbm

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: all
    • Fix Version/s: cvs2svn-1.0
    • Component/s: tools
    • Labels:
      None
    • Environment:

      Solaris

      Description

      When trying to convert a minimal CVS repository using the command
      
        cvs2svn.py --dump-only ~/Foorepos
      
      it bails out with a dbm error.  Entire output follows:
      
      --8<--
      
      ----- pass 1 -----
      /pike/home/marcus/Foorepos/fsort.c,v
      RESYNC: fsort.c,v (1.1) : old time="Sun Sep 22 21:40:01 1996" new time="Sun Sep 22 21:40:00 1996"
      ----- pass 2 -----
      RESYNC: fsort.c,v (1.1) : old time="Sun Sep 22 21:40:00 1996" new time="Sun Sep 22 21:40:00 1996"
      ----- pass 3 -----
      ----- pass 4 -----
      committing: Sun Sep 22 21:40:00 1996, over 0 seconds
          adding or changing 1.1 : trunk/fsort.c
          new revision: 1
      committing: Sun Sep 22 21:40:01 1996, over 0 seconds
          new revision: 2
      committing: Sun Sep 29 02:17:35 1996, over 0 seconds
      Traceback (most recent call last):
        File "./cvs2svn.py", line 2261, in ?
          main()
        File "./cvs2svn.py", line 2257, in main
          convert(ctx, start_pass=start_pass)
        File "./cvs2svn.py", line 2136, in convert
          _passes[i](ctx)
        File "./cvs2svn.py", line 2071, in pass4
          c.commit(dumper, ctx, sym_tracker)
        File "./cvs2svn.py", line 1819, in commit
          sym_tracker.enroot_tags(svn_path, svn_rev, tags)
        File "./cvs2svn.py", line 1368, in enroot_tags
          self.enroot_names(svn_path, svn_rev, tags, self.tags_opening_revs_key)
        File "./cvs2svn.py", line 1354, in enroot_names
          self.db[parent_key] = marshal.dumps(parent)
      dbm.error: cannot add item to database
      
      --8<--
      
      My Python version is
      
        Python 2.2 (#1, Jan 21 2002, 18:43:00)
        [GCC 3.0.3] on sunos5
      
      The co binary is from RCS 5.7.  All Subversion files are current to revision 6820.
      
      
        // Marcus
      

      Original issue reported by marcus_c

        Attachments

        1. 1_Foorepos.tar.gz
          5 kB
          Karl Fogel
        2. 2_cvs2svn.py.patch
          0.5 kB
          Subversion Importer

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              subversion-importer Subversion Importer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: