List all directories in cvs

I accidentally typed this command and recieved a list of all the cvs root directories available for checkout. Other commands to list modules did not work, but this one did. You must be in a CVS directory first.

cvs -n co .

List all modules

cvs rdiff -s -D "1/1/2037" .

With a little bit of work, I came up with this command.

cvs -n co . 2>&1 | grep directory | less

Check out a list of modules

cvs -d :pserver:anonymous@cvs.cvshome.org:/home2/cvsroot \
     -n checkout -p CVSROOT/modules

List Out of Date Files

cvs status 2> /dev/null | egrep '^File' | grep -v 'Up-to-date'

CVS login alias

alias cvs='cvs -d ":pserver:username@192.168.0.10/var/repository/CVS"'

Add a project to CVS

From the project directory:

cvs import -m "Test Description" dirname Company Revision

Example:

cvs import -m "Test Description" myProject GadgetWiz r_0_0_1

Tag a Branch

cvs tag myBranch

Checkout a Branch

cvs checkout -r myBranch project

Checkout main trunk

cvs checkout -r HEAD project

Checkout

cvs checkout -r myBranch project

Merge branch back into main trunk

cvs co module
cvs update -j branch module

Overwrite Exisiting Branch with new branch

cvs -q update -r myBranch -C

CVS Tutorial

CalPoly CVS Tutorial
Branching Tutorial