How to use CVS
CVS help:
man cvs
cvs -H < command name >
Finding code in the CVS database:
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/
make a new CVS tag:
cvs import -m < message > < direction of the CVS tag > < name of the author > start -m msg Log message.
e.g.:
cvs import -m "StopAnalysisHUN" UserCode /HUN-2_2_3/StopAnalysis/ akapusi start
checkout:
cvs co -r < version number > -d < destination directory name > < CVS tag name > -r rev Check out revision or tag. (implies -P) (is sticky)
-d dir Check out into dir instead of module name.
e.g.(1):
cvs co -rV00-01-05 -d SusyAnalysis /PatCrossCleaner UserCode /SusyAnalysis/PatCrossCleaner e.g.(2): checkout the HEAD
cd CMSSW_X_X_X/src/SusyAnalysis/
cvs co -d UserCode /< group name >/
add a new tag to a valid CVS tag:
cvs tag < CVS tag name >-< e.g. number >
e.g.:
cvs tag StopAnalysis -123456
checkout:
cvs co -r StopAnalysis -123456 -d SusyAnalysis UserCode /HUN-2_2_3/StopAnalysis
update:
cvs update After this we have to check the code, because if another person modified it, it's possible that it doesn't run.
difference:
cvs diff
upload/commit:
cvs commit -m "I modified ..." < name of the modified file > or
cvs tag < name of the code >< number of tag >
--
AnitaKapusi - 29 Jun 2009