CVS


update including new directories: cvs update -d

to login: cvs -d $SGWBCVS login
to checkout: cvs -d $SGWBCVS sgwb
In order to know what module you want to check out, check if there's a cvs browser available.
to update: cvs -d $SGWBCVS update sgwb/doc/Papers/SpH_methods
to add a file: cvs -d $SGWBCVS add sgwb/doc/Papers/SpH_methods/example.eps (then cvs commit)
to remove a file: cvs -d $SGWBCVS remove sgwb/doc/Papers/SpH_methods/example.eps (then cvs commit)
to commit:
help for history command: cvs history -H
last committed change to repository by all users: cvs -d $LSCSOFTCVS history -l -c -a sumXFisher.m
...after the date 12/1/2008: cvs -d $LSCSOFTCVS history -D 12/1/2008 -c -a sumXFisher.m

To check out a tagged version: cvs update -r S5_V3_0
What version did I check out?: cvs status -v
tagging: cvs tag -R S5-sph-v1
confirm tag: cvs status -v

Help, my code has broken and I need to use CVS to find the old working version.
First: cvs log your_code.m (See the cvs log to see recent changes to code & find out who is responsible for this outrage.)
Second: cvs diff -kk -u -r 1.4 -r 1.5 your_code.m (See what changed in the code between relevant revisions that broke it.)
Third: cvs update -r 1.4 your_code.m (Restore the old version.)

Help, I'm getting this really annoying error about "sticky tags" when I try to commit changes to cvs.
First: back up the files you want to commit.
Second: cvs update -A in order to revert to most recent copy.
Third: proceed with cvs commit

Back to Resources