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

cvs2svn fails with AttributeError: 'NoneType' object has no attribute 'get'

    XMLWordPrintableJSON

Details

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

    Description

      On one of my CVS repositories, cvs2svn.py (revision 6572) fails with
      the following traceback:
      finishing 'merged-from-openbox-2_1-2002-09-30' as tag
      Traceback (most recent call last):
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 2263,         in ?
          main()
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 2259,         in main
          convert(ctx, start_pass=start_pass)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 2138,         in convert
          _passes[i](ctx)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 2094,         in pass4
          sym_tracker.finish(dumper, ctx)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1716,         in finish
          self.fill_tag(dumper, ctx, name, [1])
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1663,         in fill_tag
          self.fill_name(dumper, ctx, tag, 1, jit_new_rev)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1634,         in fill_name
          is_tag, jit_new_rev)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1554,         in copy_descend
          next_src, next_dst, is_tag, jit_new_rev)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1554,         in copy_descend
          next_src, next_dst, is_tag, jit_new_rev)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1554,         in copy_descend
          next_src, next_dst, is_tag, jit_new_rev)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 1529,         in copy_descend
          dumper.copy_path(src_path, parent_rev, copy_dst, val)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 979, i        n copy_path
          entries)
        File "/home/woodblock/code/subversion/tools/cvs2svn/cvs2svn.py",
      line 673, i        n change_path
          approved_entries = new_val.get(self.approved_entries) or { }
      AttributeError: 'NoneType' object has no attribute 'get'
      
      I can provide a copy of the repository if it would be helpful, but I
      am not really sure the best way to trim it down so it still remains
      useful to the developers.
      

      Original issue reported by smoynes

      Attachments

        1. 1_bug1440.tar.gz
          0.8 kB
          Subversion Importer

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: