How to import CVS to git scm?

后端 未结 4 1126
感情败类
感情败类 2020-12-18 09:09

In order to import a revision of a CVS module, I am using:

/usr/lib/git-core/git-cvsimport -a -i -p r,revisionname -k -v -d :pserver:user@xxx.com:2401/srv/cv         


        
4条回答
  •  天命终不由人
    2020-12-18 09:49

    From http://git-scm.com/docs/git-cvsimport

    WARNING: git cvsimport uses cvsps version 2, which is considered deprecated; it does not work with cvsps version 3 and later. If you are performing a one-shot import of a CVS repository consider using cvs2git or parsecvs.

    Check if you have a cvsps version 3 or later

    $ cvsps --version
    

    If you can downgrade it to cvsps version 2 you are done.

    Main difference is cvs2git is not incremental (except using this workaround), so it's targeted to one-shot checkout. With cvsimport you can do incremental updates, and stay up to date to cvs repo.

提交回复
热议问题