スティッキータグを剥がす
最近はほとんどIDE任せなので、コマンドでどうやるか忘れています。
trunk*1でないリビジョン(スティッキータグ=リビジョンx.x)からupdateしたあとでtrunk(スティッキータグ=なし)にコミットしようとすると、
cvs commit: sticky tag `x.x' for file `xxx' is not a branch
と怒られます。"cvs update -r HEAD"の場合でもスティッキータグは貼り付きます。trunkに戻すには、スティッキータグを剥がす必要があります。
スティッキータグを剥がすには、"cvs update -A (ファイル)"とします。以下は、その例です。
$ cvs status test.html =================================================================== File: test.html Status: Up-to-date Working revision: 1.2 Repository revision: 1.2 /var/cvs/Test/test.html,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) $ cvs update -r 1.1 test.html U test.html $ cvs status test.html =================================================================== File: test.html Status: Up-to-date Working revision: 1.1 Repository revision: 1.1 /var/cvs/Test/test.html,v Sticky Tag: 1.1 Sticky Date: (none) Sticky Options: (none) $ cvs update -A test.html U test.html $ cvs status test.html =================================================================== File: test.html Status: Up-to-date Working revision: 1.2 Repository revision: 1.2 /var/cvs/Test/test.html,v Sticky Tag: (none) Sticky Date: (none) Sticky Options: (none) $
*1:最新のブランチ。