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 <code name> UserCode/<group name>/<code 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>

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2009-06-23 - AnitaKapusi
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback