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:
1. compile and test the code you've changed
2. cvs -d $LSCSOFTCVS update matapps/src/searches/stochastic/CrossCorr
This will give you a list of files modified from the originals marked with "M".
(The update command does not overwrite the modified files.)
New files not in the repository are marked with "?".
3. For each file marked with "?", cvs -d $LSCSOFTCVS add file filename
4. Make sure the environmental variable $EDITOR is set to emacs/vi.
5. cvs -d $LSCSOFTCVS commit matapps/src/searches/stochastic/CrossCorr
The editor will open and you will have the opportunity to add a commit message, e.g.: "Added module to fill upmu variables. K. Connolly, 2008-Feb."
When you save and exit the editor, this message, along with the changes/additions, will be added to CVS
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