ファイルの変更をメールで知る


グループで作業をしているときに、プロジェクトの ファイルが commit されたことをメールで知ることができます。

watcher に登録する

誰かがファイルを変更したときにメールを受けとる メンバー (watcher) に加わるには cvs watch add を実行します。

% cvs watch add
メンバーから抜けるには cvs watch remove を実行します。

現在の watcher を知るには cvs watchers を実行します。

% cvs watchers
Makefile        nishi           edit    unedit  commit
                nishitmp        edit    unedit  commit
file1.c         nishi           edit    unedit  commit
                nishitmp        edit    unedit  commit
file1.h         nishi           edit    unedit  commit
                nishitmp        edit    unedit  commit

メールを受けとる

nishitmp さんが file1.c を変更すると nishi さんにメールが 届きます。

From: nishitmp (Test for nishi)
Apparently-To: nishi
Date: Fri, 16 May 1997 23:13:22 +0900

test-cvs file1.c
---
Triggered commit watch on /hp1/speech/CVS/test-cvs
By nishitmp

管理履歴

1997/05/16 by nishi

hp1/speech/CVS/CVSROOT/notify に以下の行を追加。

ALL /bin/mail %s
この辺の機能の使い方にはあまり自信がないので、 間違いなどあれば教えてください。


nishi@dj.kit.ac.jp / Takuya NISHIMOTO
Last modified: Fri May 16 23:47:45 1997