SSHでのWinCVS設定メモ

以下、[...タブ]は、メニュー選択時に表示されるダイアログ内のタブを示す


Puttyのインストールと設定

下記URLを参考にして、インストールと鍵設定を行う。


WinCVSのインストールと設定

インストール

  • version1.2(Original)で確認。探してください
  • ごった煮版は、サーバによっては動作に不具合があった。

設定
Admin>Preferenceメニュー
[Preferensesタブ]
・CVSROOT=:extssh:ログイン名@ホスト名:/aaa/bbb
・Authentication=SSH server
RSA identityはputtyで作成した秘密鍵を指定(フルパス)
[Portsタブ]
・Chech for an alternate rsh name : plink.exe(フルパス)
[Proxyタブ]
必要に応じて。
[Globalsタブ]
以下をチェック
・Supply control when adding files(不要かも?)
・Dirty files support (CodeWarrior Pro 2)(不要かも?)
・Prune (remove) empty directories (←必須)
・Checkout text files with Unix JF (0xa) (←必須)
[WinCVSタブ]
以下はお好みで。
・Default viewer userd to open files=エディタ指定
・External diff program=外部diff指定


実行

  • login

不要。

  • checkout

Create>Checkout moduleメニュー
[Checkout settingsタブ]
・Enter the module name and path on the server:=ccc等。
・Local folder to checkout to:=ローカルの場所を指定する
[Checkout options]
メイン以外のブランチを取得したい場合
・By revision/tag/branch:=ccc-branch等。

  • add

・Modify>Add selectionメニュー(テキスト)
・Modify>Add selection binaryメニュー(バイナリ)

  • commit

Modify>Commit selectionメニュー
[Commit settingsタブ]
・Enter the log message:=リリースの説明などを入力

  • update

Modify>Update selectionメニュー
以下のチェックは必須
[Update Settingsタブ]
・Create missing directories that exist in the repository
[Globalsタブ]
・Prune (remove) empty directories

  • log

Query>Log selectionメニュー

  • diff

Query>Diff selectionメニュー
Diff settingsダイアログが表示される。

・サーバ最新との比較
[Diff settingsタブ]
Compare your local file with the same remote revisionにチェック

・履歴との比較
[Diff settingsタブ]
Compare two revisions/tags/branches/datesをチェックし、Revision or dateに比較元・比較先のパラメタをそれぞれ指定


注意

  • WindowsXP sp1で動作中。sp2+WinCVS+SSHが動かなかった、という報告もあるらしい。
  • 当初、checkoutメニューが動作しないことがあった。
  • そのうちいつの間にか動作するようになったが、原因は不明。
  • メニューが動作しない場合、画面下フレームで手打ちで実行。
    • (例)cvs -d:extssh:ログイン名@ホスト名:/aaa/bbb checkout cvstest
  • 手打ちするには、TCLをインストールしておく必要あり