co -l ファイル名この時、既に誰かが co を使って変更を開始している場合はその旨を表示し、 強制的に上書きするかどうかを確認します。 また誰が変更を開始したかは rlog で参照できます。
【実行例】 $ co -l a.c RCS/a.c,v --> a.c revision 1.1 (locked) done $ co -l a.c RCS/a.c,v --> a.c revision 1.1 (locked) writable a.c exists; remove it? [ny](n): n co: checkout aborted $ rlog a.c RCS file: RCS/a.c,v Working file: a.c head: 1.1 branch: locks: strict ycos: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: New program ---------------------------- revision 1.1 locked by: ycos; date: 2007/10/21 03:09:36; author: ycos; state: Exp; Initial revision =============================================================================
ci ファイル名ci コマンドを実行すると、RCS は変更理由を尋ねてきます。 これは変更履歴として記録され、複数行入力できます。 入力が完了したら単体のドット(.)で終了します。
【実行例】 $ co -l a.c # ファイルを編集 $ ci a.c RCS/a.c,v <-- a.c new revision: 1.2; previous revision: 1.1 enter log message, terminated with single '.' or end of file: >> add ver ID >> . doneまた一旦 co -l で取り出したファイルの変更処理を中止するには co -u を用います。
# 変更するための取り出し $ co -l a.c RCS/a.c,v --< a.c revision 1.2 (locked) done $ rlog a.c RCS file: RCS/a.c,v Working file: a.c head: 1.2 branch: locks: strict ycos: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: New program ---------------------------- revision 1.2 locked by: ycos; date: 2007/10/21 03:21:47; author: ycos; state: Exp; lines: +1 -0 add ver ID ---------------------------- revision 1.1 date: 2007/10/21 03:09:36; author: ycos; state: Exp; Initial revision ============================================================================= # 変更取り出しの中止(ロックの解除) $ co -u a.c RCS/a.c,v --< a.c revision 1.2 (unlocked) writable a.c exists; remove it? [ny](n): y done $ rlog a.c RCS file: RCS/a.c,v Working file: a.c head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: New program ---------------------------- revision 1.2 # ロック解除 date: 2007/10/21 03:21:47; author: ycos; state: Exp; lines: +1 -0 add ver ID ---------------------------- revision 1.1 date: 2007/10/21 03:09:36; author: ycos; state: Exp; Initial revision =============================================================================
Section Next|Prev
|Up|Index|凡例