How to use CVS
CVS help:
man cvs
cvs -H
Finding code in the CVS database:
http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/
make a new CVS tag:
cvs import -m start -m msg Log message.
e.g.:
cvs import -m "StopAnalysisHUN" UserCode /HUN-2_2_3/StopAnalysis/ akapusi start
checkout:
cvs co -r -d -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 //
add a new tag to a valid CVS tag:
cvs tag -<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 ..." or
cvs tag
--
AnitaKapusi - 29 Jun 2009