From RootdevWiki

Jump to: navigation, search

CVS stuff

Roll back a revision ...(you are working on 1.8, but want to go back to 1.7)

cvs admin -o 1.8 <filename>
rm <filename>
cvs upd <filename>

Checking out files from a repository

mkdir target
cvs co -d target path/in/repository/code

Now add a file to directory

touch new_file.txt

Add it to repository

cvs add new_file.txt
cvs commit new_file.txt

Create a new module in cvs

cvs co -d products

Then add your own directory to the local dir, then add to cvs, and commit

cp yourdir products
cvs add products/yourdir
cp files products/yourdir
cvs add products/yourdir/*
cvs commit

Why are my newly added directories not updating??

Use '-d' to update directories bozo!

cvs up -d

Tag your code with a relase number

# check your code in first, so you are up-to-date
cvs tag rc_1_001


Add a new dir to repository

I have been working in /usr/local/dir/newdir, and I know there is a "usr/local/dir" location in repo, so...

cd /usr/local/dir/newdir/
cvs import -m init usr/local/dir/newdir dir init
cd ..
mv newdir _newdir
mkdir newdir
cvs co -d bin usr/local/dir/newdir

CVS update with backup

cvs upd -C path/to/file.txt
(Locally modified file.txt moved to .#file.txt.1.11)
U path/to/file.txt

gets a clean repository copy .. but backs up the old conflicted file