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/SVN_QuickReference (diff) – NEMO

Changes between Initial Version and Version 1 of Developers/SVN_QuickReference


Ignore:
Timestamp:
2010-02-22T15:48:14+01:00 (14 years ago)
Author:
rblod
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Developers/SVN_QuickReference

    v1 v1  
     1= '''Working with SVN and tickets'' =   
     2[[BR]] 
     3 
     4Last edited [[Timestamp]] 
     5 
     6[[PageOutline]] 
     7 
     8---- 
     9== How to get permissions == 
     10Send a request once for all to Rachid with your nemo website user name 
     11 
     12 
     13 == How to make a branche == 
     14{{{ 
     15svn copy svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/dev_001_SBC -m "Create a specific branch for the New Surface Module" 
     16}}} 
     17 
     18 == How to make a commit == 
     19Extract with svn+http protocol 
     20{{{ 
     21svn co svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/dev_001_SBC 
     22}}} 
     23 
     24Then in the appropriate directory : 
     25export SVN_EDITOR=vi      (ksh, bash, to put in .profile or .bash_profile) 
     26or 
     27setenv SVN_EDITOR vi        (tsch, to put in .login) 
     28{{{ 
     29svn ci  -m [ "bla bla ...., see ticket:# ] [ files list ] 
     30}}} 
     31 
     32 == How to make a tag == 
     33{{{ 
     34svn copy svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk  svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/tags/nemo_v2_3 -m "Tagging nemo_v2_3" 
     35}}} 
     36 
     37 == How to make a merge == 
     38To get all changes from the revision 746 to the current one (HEAD) on a specific directory 
     39{{{ 
     40cd ./NEMO/OPA_SRC/IOM (you already downloaded the branche you are working on) 
     41svn merge -r 746:HEAD svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk/NEMO/OPA_SRC/IOM -m "Merge my local IOM directory with the trunk repository " 
     42}}} 
     43 
     44 == How to make an update of a given file between 2 different branches e.g trunk and tags directories == 
     45Suppose the downloaded NEMO directory corresponds to the tag nemo_v3 (i.e. from http://forge.ipsl.jussieu.fr/nemo/svn/tags/nemo_v3/NEMO); the current revision number of the file sbcssm.F90 is 1196. 
     46To get the new revision (which has been committed on the trunk http://forge.ipsl.jussieu.fr/nemo/svn/trunk/NEMO ) with the revision number 1214: 
     47{{{ 
     48cd ./modeles/NEMO/OPA_SRC/SBC/ 
     49svn merge -r 1196:1214 http://forge.ipsl.jussieu.fr/nemo/svn/trunk/NEMO/OPA_SRC/SBC/sbcssm.F90 
     50}}} 
     51 
     52 
     53== How to get information about the sources downloaded == 
     54To get information such as the PATH/URL you are working on, .i.e. trunk, branches .. and so on 
     55{{{ 
     56cd ./NEMO 
     57svn info 
     58}}} 
     59To get all commits/''revision'' performed/''associated'' on/''to'' your working repository since its creation 
     60{{{ 
     61cd ./NEMO 
     62svn log --verbose --stop-on-copy 
     63}}} 
     64 
     65== Switch from user to developer == 
     66{{{ 
     67svn switch --relocate http://forge.ipsl.jussieu.fr/nemo/svn/trunk/NEMO svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/trunk/NEMO 
     68 
     69}}} 
     70 
     71 
     72 
     73 
     74 
     75---- 
     76