TOTEM CVS repository

Concurrent Versions System (CVS): version control system software keeps track of all work and all changes in a set of files, and allows several developers (potentially widely separated in space and/or time) to collaborate.

Documentation

Access

There are two ways to access the repository: by Kerberos authentication or by ssh.

  • For the Kerberos 5 approach set the following environment variable:
export CVSROOT=:gserver:isscvs.cern.ch:/local/reps/totem
Then, to obtain a ticket run kinit [user]. The [user] argument is optional and is only useful if you want to get a ticket for a different user than as which you're logged in. This is in particular useful for the monitor@pctotem34 account - the monitor login is not centrally registered and hence you cannot obtain a Kerberos ticket for this account. You can use kinit YourLogin with your lxplus password.

  • If you prefer ssh, set the following variables:
export CVSROOT=:ext:username@isscvs.cern.ch:/local/reps/totem
export CVS_RSH=ssh
NB: the username@ parameter is optional.

IMPORTANT: The repository is protected by default, if you want to read or write there, you must be registered. To get registered contact Jan or anyone already registered who knows how to register others.

Structure

The repository is divided to online and offline sections. In both sections you can find user directory. If you have code that you want to share with others and you are not 100% sure the code is correct, put it in the user directory (e.g. online/user/jan/new_monitor). Once your code is well debuged you can move it ouside the user zone.

Code for monitor is at online/monitor.

Code for CMSSW is at offline/cmssw/src.

CVS commands

To get the code from repository use cvs checkout (or shortcut cvs co)
# dowload the full code for monitor
cvs checkout online/monitor

# download just a part of monitor (data readout)
cvs checkout online/monitor/TotemSLinkRawReadout

# do not download empty directories
cvs checkout -P ...

# download monitor code to directory called "bla"
cvs checkout -d "bla" online/monitor

To update your local copy (to see what others have done) use cvs update. Just go into the directory which you want to update and type the command. If others created new directories and you want to get them, use cvs update -d.

To commit changes (to save your work to the repository) use cvs commit. Go into the top-most directory (to make sure the the full directory tree is scanned for changes) and type the command. If you want to commit just a few files, use cvs commit file1 file2 ...

HOWTO

How to fetch TOTEM offline code from CVS repository ?

Set up some variables. Keep in mind, that in order to make changes to CVS, your AFS account should be added to appropriate file.

export CVSROOT=":ext:isscvs.cern.ch:/local/reps/totem"
export CVS_RSH="ssh"

If you want just to fetch and run code, then use export command:

cvs export -r HEAD offline/cmssw

If you want to develop code, then go to some directory, and checkout code:

cvs checkout -P offline/cmssw

If you want to work as other user, you can replace USERNAME with desired one:

export CVSROOT=":ext:USERNAME@isscvs.cern.ch:/local/reps/totem"

How to access CVS TOTEM repository as librarian ?

Login to lxplus as cvstotem and browse repository:

ssh cvstotem@lxplus
cd repositories/totem

How to fetch CMSSW code from CVS repository ?

Import some environmental variables (this will enable you to run scramv1 command for further compilation):

source /afs/cern.ch/cms/sw/cmsset_default.sh

Go to empty directory and fetch local copy of some module (Geometry/CMSCommonData) workspace for given TAG (CMSSW_1_6_11):

cmscvsroot CMSSW
cvs export -r CMSSW_1_6_11 Geometry/CMSCommonData
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2009-12-10 - LeszekGrzanka
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    TOTEM All webs login

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