Summary of useful CVS commands for the management of the lowenergy code

These commands are further described at the following page.

We assume that:

  • your environment has been fully setup in order to be able to use CVS,
  • you want to download the code in your $HOME directory

1) How to checkout the most recent CVS version of Geant4 ?

cd $HOME
cvs checkout geant4

2) How to update Geant4 to a specific reference tag ?

After 1), do :

cd $HOME/geant4
cvs update -r geant4-09-02-ref06

3) How to update the lowenergy category to a specific lowenergy tag ?

Recent tags are listed in Bonsai, see here.

After 1), do :

cd $HOME/geant4/source/processes/electromagnetic/lowenergy
cvs update -r emlowen-V09-02-XX

4) How to update the lowenergy category with new code ?

First you need to update to the most recent version of the category :

cd $HOME/geant4/source/processes/electromagnetic/lowenergy
cvs update -A

Then you can edit or add your files in your local lowenergy directory. For eg., let's assume you add the new files ./include/myG4Class.hh and ./src/, then you need to:

  • edit the History file in the local lowenergy directory, indicating the date, your name, the name of the tag you are going to commit, the description of your changes
  • use the following commands:

cvs add History
cvs add include/myG4Class.hh
cvs add src/

In case you have several files to add or you have updated several files, you may for example use commands like:

cvs add *.* README GNUmakefile
cvs add */*.*

Then you need to commit your changes to CVS with:

cvs commit -m "short text"

And finally you can tag your changes with:

cvs tag emlowen-V09-02-XX

Your tag will appear within a few minutes in Bonsai, you can either decide to leave it as an internal tag or select it for testing (in that case, it will be tested by the Geant4 system testing).

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

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2023 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