2009-07-06 5 views
0

cvsexportcommitを使用してgitからcvsへの一連のコミットを報告しています。私は手動で「VERSION」ファイルを追加しようと"version"という名前のファイルをCVSに追加できません

 
Applying to CVS commit f6ce403e6e1d57b61661527969ac97c52bcbe41f from parent 076d1fb72d8498670582561b7318939bf209c1f4 
Checking if patch will apply 
cvs status: Examining prometeo/VERSION 
Applying 
fatal: unable to write file prometeo/VERSION mode 100644 
Patch applied successfully. Adding new files and directories to CVS 
cvs [add aborted]: there is a version in prometeo/VERSION already 
Failed to cvs add prometeo/VERSION -- you may need to do it manually at /usr/local/git/libexec/git-core/git-cvsexportcommit line 314. 
cvs remove: scheduling `prometeo/version/version.txt' for removal 
cvs remove: use 'cvs commit' to remove this file permanently 
Commit to CVS 
Patch title (first comment line): Moved tmtc-prometeo version number to prometeo/VERSION 
NOTE: One or more hunks failed to apply cleanly. 
You'll need to apply the patch in .cvsexportcommit.diff manually 
using a patch program. After applying the patch and resolving the 
problems you may commit using: 
    cd "/Users/elia/Code/linux-tmtc/" 
    cvs -d :ext:[email protected]********:/cvshome/ground commit -F .msg 'prometeo/VERSION' 'prometeo/tool/bin/tmtc_info' 'prometeo/version/version.txt' 

:私が手出力は以下のとおりです。次のコンテキストでは、VERSIONファイルを追加することは不可能だということ

 
| 
\_version/ 
| | 
| \_version.txt (to be removed) 
| 
\_VERSION (to be added) 

を私を見つけました私は得る:

> cvs add prometeo/VERSION 
cvs [add aborted]: there is a version in prometeo/VERSION already 

アイデア?

答えて

3

あなたのCVSサーバーはどのプラットフォームで動作していますか? AFAIK、CVSのいくつかのバージョン(少なくともWindows NT上)は、大文字と小文字を区別しないファイル名の扱いをいくつかの場所で持っているので、名前が大文字と小文字だけ異なる2つのファイルを受け付けません。

いずれにしても、私は非常にの場合にのみ異なるファイル名を使用することを強く推奨します。完全に大文字と小文字を区別しないファイルシステム(MS Windowsのいくつかのバージョン、MacOSのいくつかのバージョンなど)にチェックアウトしたいのであれば、悪夢になる可能性があります。また、混乱します( "ファイルfooを編集する必要がありますたぶん、そうではなく、大文字のF "...)。

ので:あなたがする必要が感じる場合

  1. はそれを
  2. をしないでください、
0

:-) Linux上のホストが原因を見つけることができませんでしたが、解決策はあります2つの異なるコミットを行います:1つはフォルダーの削除用で、もう1つは追加されたファイル用です。

ところで、私はチェックアウトや更新のたびに(古い)フォルダを見つけられないとCOSは嘆いています...