| 43 | |
| 44 | == Starting from zero == |
| 45 | |
| 46 | This small guide explains how to properly commit your Orchidee source code into the Subversion for the first time. |
| 47 | |
| 48 | If you follow this guide, then the subversion will properly keep track of the modifications done in the code (what you see in svn log). |
| 49 | |
| 50 | 1. Create a new perso folder in the Subversion to place your files: [wiki:svnBranchePerso#Createyourpersonalfolder Check here] |
| 51 | |
| 52 | 2. Copy your starting Orchidee version (e.g: orchidee-som revision 5054) to your perso folder (in server). |
| 53 | |
| 54 | {{{ |
| 55 | svn copy -c 5054 svn://forge.ipsl.jussieu.fr/orchidee/branches/ORCHIDEE-SOM/ORCHIDEE svn://forge.ipsl.jussieu.fr/orchidee/perso/haicheng.zhang/ORCHIDEE-MUSLE -m "Branch: some decription here" |
| 56 | }}} |
| 57 | |
| 58 | This step is specially important because it will allow the svn to keep track of any modification done in the code. |
| 59 | |
| 60 | 3. Download the code from the server to your local machine: |
| 61 | |
| 62 | {{{ |
| 63 | svn co svn://forge.ipsl.jussieu.fr/orchidee/perso/haicheng.zhang/ORCHIDEE-MUSLE ORCHSVN-MUSLE |
| 64 | }}} |
| 65 | |
| 66 | 4. Bring all the modifications from your code (in local) to the downloaded folder ORCHSVN-MUSLE (in local) |
| 67 | |
| 68 | {{{ |
| 69 | cd ORCHSVN-MUSLE |
| 70 | |
| 71 | cp /YOUR/ORCH/FOLDER/src_stomate/*90 src_stomate/ |
| 72 | |
| 73 | cp /YOUR/ORCH/FOLDER/src_sechiba/*90 src_sechiba/ |
| 74 | |
| 75 | cp /YOUR/ORCH/FOLDER/src_global/*90 src_global/ |
| 76 | |
| 77 | cp /YOUR/ORCH/FOLDER/src_xml/*xml src_xml/ |
| 78 | |
| 79 | ... |
| 80 | }}} |
| 81 | |
| 82 | For all the src_ folders. Make sure to procede this way to not mess it up with some hidden files. |
| 83 | |
| 84 | 5. Tell subversion there are new files (if applies) |
| 85 | |
| 86 | {{{ |
| 87 | svn add src_somewhere/newfile.f90 -m "New: some explanation here" |
| 88 | }}} |
| 89 | |
| 90 | 6. Send the modifications done to the code to the server |
| 91 | |
| 92 | {{{ |
| 93 | svn commit -m "New: add some message here" |
| 94 | }}} |
| 95 | |
| 96 | |