| 1 | = '''Working with SVN and tickets'' = |
| 2 | [[BR]] |
| 3 | |
| 4 | Last edited [[Timestamp]] |
| 5 | |
| 6 | [[PageOutline]] |
| 7 | |
| 8 | ---- |
| 9 | == How to get permissions == |
| 10 | Send a request once for all to Rachid with your nemo website user name |
| 11 | |
| 12 | |
| 13 | == How to make a branche == |
| 14 | {{{ |
| 15 | svn 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 == |
| 19 | Extract with svn+http protocol |
| 20 | {{{ |
| 21 | svn co svn+ssh://yourloginforge@forge.ipsl.jussieu.fr/ipsl/forge/projets/nemo/svn/branches/dev_001_SBC |
| 22 | }}} |
| 23 | |
| 24 | Then in the appropriate directory : |
| 25 | export SVN_EDITOR=vi (ksh, bash, to put in .profile or .bash_profile) |
| 26 | or |
| 27 | setenv SVN_EDITOR vi (tsch, to put in .login) |
| 28 | {{{ |
| 29 | svn ci -m [ "bla bla ...., see ticket:# ] [ files list ] |
| 30 | }}} |
| 31 | |
| 32 | == How to make a tag == |
| 33 | {{{ |
| 34 | svn 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 == |
| 38 | To get all changes from the revision 746 to the current one (HEAD) on a specific directory |
| 39 | {{{ |
| 40 | cd ./NEMO/OPA_SRC/IOM (you already downloaded the branche you are working on) |
| 41 | svn 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 == |
| 45 | Suppose 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. |
| 46 | To 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 | {{{ |
| 48 | cd ./modeles/NEMO/OPA_SRC/SBC/ |
| 49 | svn 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 == |
| 54 | To get information such as the PATH/URL you are working on, .i.e. trunk, branches .. and so on |
| 55 | {{{ |
| 56 | cd ./NEMO |
| 57 | svn info |
| 58 | }}} |
| 59 | To get all commits/''revision'' performed/''associated'' on/''to'' your working repository since its creation |
| 60 | {{{ |
| 61 | cd ./NEMO |
| 62 | svn log --verbose --stop-on-copy |
| 63 | }}} |
| 64 | |
| 65 | == Switch from user to developer == |
| 66 | {{{ |
| 67 | svn 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 | |