0

私はgitを使用しており、フォローしようとしているcvsリポジトリを使用しています

Mercurial または git から cvs にリビジョン履歴をエクスポートするには?

ただし、-w local cvs repo の代わりに -d pserver を使用しています

私は git cvsimport を実行しましたが、それは良いようです。現在、単一のテスト変更を csv リポジトリにエクスポートしようとしていますが、失敗しています

次のコマンドを試してみましたが、次の結果が得られました

指図:

export $GIT_DIR=~/project/.git
git cvsexportcommit -d :pserver:username:password@someserver/cvsrepo -u -p -c ORIG_HEAD HEAD

Did not find COMMITID in the parents for the commit! at /usr/lib/git-cvsexportcommit line 125.

指図:

export $GIT_DIR=~/project/.git
git cvsexportcommit -d :pserver:username:password@someserver/cvsrepo -u -p -c COMMITID

checking if patch will apply
cvs update: cannot open CVS/Entries for reading: No such file or directory
cvs [update aborted]: no repository
cvs -d :pserver:username:password@someserver/cvsrepo update /path/file.java: 256 at /usr/lib/git-core/git-vcxexportcommit line 436.

注:GIT_DIRもレベルを上げたり下げたりしてみました。

4

1 に答える 1

1

残念ながら、引数git cvsexportcommitで指定された実際の CVS チェックアウトが必要です。-wこれは、必要なcvs commitコマンドを発行するだけで、CVS サーバーと直接対話しないためです。

于 2012-07-13T21:08:49.063 に答える