New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Developers/GoodPractices – NEMO
wiki:Developers/GoodPractices

Version 1 (modified by nicolasmartin, 4 years ago) (diff)

--

#----------------------------------------------------------------------------------
## To do the first time
#----------------------------------------------------------------------------------
## Create a void NEMO development organisation (trunk + branches + releases)
svn co --depth immediates http://forge.ipsl.jussieu.fr/nemo/svn/NEMO/ NEMO_dev
cd NEMO_dev

## Switch from user to developer role if you have the rights by changing the URL scheme
svn sw --relocate    http://forge.ipsl.jussieu.fr                          \
                  svn+ssh://${ID}@forge.ipsl.jussieu.fr/ipsl/forge/projets
## Copy your SSH key to your account on the Forge server to avoid repeated password requests
ssh-copy-id -i ~/ssh/id_rsa.pub ${ID}@forge.ipsl.jussieu.fr

## Get the current directory tree under 'branches'
svn up --set-depth immediates branches
## Download the trunk, the same procedure can be used for any sub-content (release, dev branch)
svn up --set-depth infinity   trunk

#----------------------------------------------------------------------------------
## To repeat for each development branch
#----------------------------------------------------------------------------------
## Create your development branch locally
svn copy trunk[@${PEGREV}]    branches/$year/'dev_r'${PEGREV}_${NameOfNewBranch}
## If needed, edit the external references (${SVN_EDITOR} env. variable must be set)
svn pedit svn:externals       branches/$year/'dev_r'${PEGREV}_${NameOfNewBranch}
## Then push it to the repository
svn commit [-m 'log message'] branches/$year/'dev_r'${PEGREV}_${NameOfNewBranch}

cd branches/$year/'dev_r'${PEGREV}_${NameOfNewBranch}

## Download sette tool to validate your changes to the NEMO reference
svn co http://forge.ipsl.jussieu.fr/nemo/svn/utils/CI/sette
## Doc figures for building NEMO manual (not mandatory)
svn co http://forge.ipsl.jussieu.fr/nemo/svn/utils/figures  ./doc/figures