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

stack trace on "empty" RCS file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • cvs2svn-1.0
    • tools
    • None
    • Linux

    Description

      I'm not sure how it ended up in our repository, but a small file with
      zero revisions and zero content causes cvs2svn.py to barf with:
      
      chuckles:~/svn/trunk/tools/cvs2svn$ ./cvs2svn.py -n ~/c 
      ----- pass 1 -----
      /home/danpat/c/file.txt,v
      Traceback (most recent call last):
        File "./cvs2svn.py", line 1351, in ?
          main()
        File "./cvs2svn.py", line 1348, in main
          convert(ctx, start_pass=start_pass)
        File "./cvs2svn.py", line 1262, in convert
          _passes[i](ctx)
        File "./cvs2svn.py", line 1088, in pass1
          os.path.walk(ctx.cvsroot, visit_file, (cd, p, stats))
        File "/usr/lib/python2.2/posixpath.py", line 279, in walk
          func(arg, top, names)
        File "./cvs2svn.py", line 299, in visit_file
          p.parse(open(pathname), cd)
        File "./rcsparse/common.py", line 231, in parse
          self.parse_rcs_admin()
        File "./rcsparse/default.py", line 191, in parse_rcs_admin
          raise common.RCSExpected(semi, ';')
      rcsparse.common.RCSExpected: ('access', ';')
      
      
      I'll attach the (small) offending file.  Using this file as a CVS
      repository on its own causes the crash as well.
      

      Original issue reported by danpat

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: