Node: I need to move files around without losing revision history, Next: , Previous: I just committed some files with the wrong log message, Up: Some Real Life Problems (With Solutions)



I need to move files around without losing revision history

リビジョン履歴をなくさないでファイルを移動したいんですが。

リポジトリ内で、プロジェクトの中のお望みの新しい場所に RCS ファイル をコピーしてください(移動はしないで下さい)。古いほうの場所にも残して おかなければだめです。次に、作業コピー中でこのようにしてください:

     floss$ rm oldfile1 oldfile2 ...
     floss$ cvs remove oldfile1 oldfile2 ...
     floss$ cvs commit -m "removed from here" oldfile1 oldfile2 ...
     

これ以降にアップデートをすると、CVS は古いファイルを消し、通常の方法 でリポジトリに加えた時と同じように、新しいファイルを作業コピー中に持っ てきます(普通よりリビジョン番号が高いところは、新しいファイルを加え た時と違います)。