* create repository set cvsroot=:local:d:/irda/cvsroot set cvsroot=\\homer\homes\ddc\irda\cvsroot cvs init * create .cvsignore files in every directory ** content of .cvsignore: *.jpg *.exe ** content of optional .cvswrappers: *.jpg -k 'b' ... marks a binary file format extension cvs.txt -k 'o' ... do no keyword expansion Or you can use: cvs add -ko cvs.txt cvs ci -m "added cvs.txt" cvs.txt * copy all files to temporary directory cd irda.tmp cvs import -m"Start" IrDA riic start * to make all checkouts read-only, type after the first checkout: (not really needed) cd c:\projects\ cvs co -d IrDA IrDA (cvs watch on #makes checkouts read-only) (#eventually) (cd \\homer\homes\ddc\irda) (cvs co -d digital IrDA) * Global cvs options: These commands are written before the command (cvs [global options] command ...) cvs -d cvsroot_position command ... override CVSROOT variable e.g.: cvs -d :local:j:\ddc\chipdockpci co chipdockpci -Q suppress every output -q suppress nonessentioal output, but show important information e.g. cvs -q update -n do nothing, but show what cvs would do * checkout a project cd c:\projects\ cvs co -d IrDA IrDA * checkout in a different directory cvs co -d modelsim_common utils/modelsim * checkout a project at a given date cvs -d :local:j:/ddc/chipdockpci update -D "18 Sep" (in the projects root dir) * remove any sticky tags, dates cvs -d :local:j:/ddc/chipdockpci -q update -A * put version information in a source file $Id$ is replaced by: $Id: cvs.txt,v 1.1 2000/09/20 11:29:54 reichr Mod $ $Log$ is replaced by the file history * Tagging cvs -n tag some_tag ... try it out cvs tag some_tag ... do it * add new files: cvs add filelist cvs commit -m "comment" filelist * remove the file 1.c: cvs remove 1.c cvs commit -m"removed 1.c" 1.c or cvs ci -m"removed 1.c" 1.c * release (delete) a no longer used working copy (option -d: delete the local directory tree) cvs release -d IrDA * remove a version - should not be done - not tested cvs admin executes a RCS command: cvs admin -o1.3 file.txt * Change File state from binary to text rm filename.ext # remove the binary file cvs rm filename.ext # remove the file from the repository cvs ci filename.ext # commit the remove remove the original file from the Attic cvs ad filename.ext # add the new text file cvs ci filename.ext # commit the add At this point, the repository is correct, and a 'cvs up -A' by the user gets him the correct file in his local trees. It's a little convoluted, but it seems to work. Local variables: mode: outline paragraph-separate: "[ ]*$" end: arch-tag: 4ff0398b-8f32-4e00-b4ba-e928c9eb7cbf