User Tools

Site Tools


en:linux:cvs

CVS commands I often use

Full CVS documentation: http://ximbiot.com/cvs/wiki/

add/remove

cvs add filename
rm file; cvs remove file

recursive remove

cvs remove -R dir/

checkout only non-empty direcories

cvs checkout -P project

update command, by default, does not pick up new directories. To do so, use flag -d. Add -P not to download empty (ancient) directories.

cvs update -dP

checkout to directory MyFavouriteName

cvs checkout -d MyFavouriteName project

checkout of version tagged TheBestLabel

cvs checkout -r TheBestLabel project

assign tag to the checkout version

cvs tag ver0-3

status in comfortable format

A simple approach might be something like:

cvs status 2> /dev/null |egrep '(\?|Status)'|sed 's/File: //'

Or more sophisticated (and powerful) one: colorful cvs status.

comparing revisions

cvs diff -r revision1 -r revision2 files

or one can use -D date instead.

permisions management

cvs co CVSROOT

and then edit files writers, tagavail, commitavail.

SVN

create and apply a patch

To be run in the root of your source tree:

# create
svn diff > my_patch.diff
# and apply
patch -p0 -i ~/my_patch.diff

changing permissions

ssh libtotsw@lxsvn
vim /afs/cern.ch/project/svn/reps/totem/conf/authz
en/linux/cvs.txt · Last modified: 2010/11/02 18:38 (external edit)