TypeError: int argument required

Craig Kelley <[email protected]>
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
Hello cvs2svn users;

I'm trying to convert a CVS repository to a git repository with this
command (version 2.3.0):

cvs2git --dry-run --use-cvs --dumpfile=/tmp/cvs2git.dump
--username=cvs2git cvsroot

It makes it all the way to pass 16 (OutputPass) until it hits this stacktrace:

Traceback (most recent call last):
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2git", line 70, in ?
    git_main(os.path.basename(sys.argv[0]), sys.argv[1:])
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/main.py", line 109, in git_main
    main(progname, run_options, pass_manager)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/main.py", line 86, in main
    pass_manager.run(run_options)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/pass_manager.py", line
181, in run
    the_pass.run(run_options, stats_keeper)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/passes.py", line 1803, in run
    svn_commit.output(Ctx().output_option)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/svn_commit.py", line
243, in output
    output_option.process_primary_commit(self)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/git_output_option.py",
line 434, in process_primary_commit
    self.revision_writer.process_revision(cvs_rev, post_commit=False)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/git_output_option.py",
line 142, in process_revision
    self.add_file(cvs_rev, post_commit)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/git_output_option.py",
line 110, in add_file
    self._modify_file(cvs_rev, post_commit)
  File "/root/cvs2svn/cvs2svn-2.3.0/cvs2svn_lib/git_output_option.py",
line 170, in _modify_file
    self.f.write(
TypeError: int argument required

Which corresponds to this line:

    self.f.write(
        'M %s :%d %s\n'
        % (mode, cvs_item.revision_recorder_token,
           cvs_item.cvs_file.cvs_path,)
        )

After a bit of debugging, it seems that
cvs_item.revision_recorder_token is set to None (mode is 100755 and
cvs_path is "CVSROOT/checkoutlist").

Am I using it incorrectly?

Thanks,

  -Craig
-- 
http://inconnu.islug.org/~ink finger  [email protected] for PGP block

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=2686824

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.