argius note

プログラミング関連

タグの削除

それほど特殊なものではありませんが、今まで使ったことがなかったのでメモ。
タグを削除するコマンド。元に戻せないので、あまり頻繁にやるべきではない。タグを誤ってつけてしまったときなどに使用する。Eclipseからはできない。

# Testプロジェクトのdocs/index.htmlについている"MARK"タグを削除する
# 環境変数CVSROOTは定義済みでpserver経由の場合はログイン済を前提

$ cvs checkout Test/docs/index.html
U Test/docs/index.html
$ cvs status -v Test/docs/index.html
===================================================================
File: index.html        Status: Up-to-date

   Working revision:    1.1     Tue Oct  2 15:33:27 2007
   Repository revision: 1.1     /cvsrp/Test/docs/index.html,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

   Existing Tags:
        MARK                            (revision: 1.1)

$ cvs tag -d MARK Test/docs/index.html
D Test/docs/index.html
$ cvs status -v Test/docs/index.html
===================================================================
File: index.html        Status: Up-to-date

   Working revision:    1.1     Tue Oct  2 15:33:27 2007
   Repository revision: 1.1     /cvsrp/Test/docs/index.html,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

   Existing Tags:
        No Tags Exist

$