Hello, world!

2007-02-23

cvs tip(basic)

CVS(Concurrent Versions System)
あのRCS(Revision Control System)をベースに作られている。

 setup
 ・use from local
  $ export CVSROOT=/cvsroot
 ・user from remote
  $ export CVSROOT=:ext:xx@yy.zz:/cvsroot
  $ export CVS_RSH=ssh
  ※ yy.zzにxxでssh接続ができる事が前提

init
 $ cvs init
 ※環境変数を設定しない場合は-dで指定

checkout
 $ cvs checkout example
 $ cd example

modify
 $ vi xxxx1.c
 $ cvs commit -m modify

add
 $ cvs add FileName
 $ cvs add DirName DirName/*
 $ cvs commit -m add

delete
 $ rm xxxx2.c
 $ cvs delete xxxx2.c
 $ cvs commit -m delete

update
 $ cvs update -d
 ※ -dを指定しない場合、
    current dirに存在しないdirは作成されない。
 $ cvs update -r 1.1 xxx.c

cf.
 cvs manual
 cvs 1.11.22 manual(pdf)
※以前の公式配布元のhttp://www.cvshome.org/http://ximbiot.com/cvs/wiki/に移動したみたい。