How to use CVS

CVS help:

man cvs
cvs -H < command name >

Finding code in the CVS database:

make a new CVS tag:

cvs import -m < message > < direction of the CVS tag > < name of the author > start
-m msg Log message.
cvs import -m "StopAnalysisHUN" UserCode /HUN-2_2_3/StopAnalysis/ akapusi start


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.

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 >

cvs tag StopAnalysis -123456


cvs co -r StopAnalysis -123456 -d SusyAnalysis UserCode /HUN-2_2_3/StopAnalysis


cvs update

After this we have to check the code, because if another person modified it, it's possible that it doesn't run.


cvs diff


cvs commit -m "I modified ..." < name of the modified file >
cvs tag < name of the code >< number of tag >

-- AnitaKapusi - 29 Jun 2009

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-06-29 - AnitaKapusi
This site is powered by the TWiki collaboration platform Powered by Perl This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback