| 102 | You could also use kdiff3 of files „left“ and „right“ to visualize the changes at conflicted lines. |
| 103 | |
| 104 | '''The final merged content must be in file {{{average_3d_data.f90}}}''' (without [[span(style=color: blue, suffix)]]) \\ '''Now continue with step {{{svn resolved}}} in Chapter 4a or 4b!''' |
| 105 | |
| 106 | == (5) Commit changes to repository branch == |
| 107 | |
| 108 | 1. Add a brief summary of your changes into the header of the file you modified under „Current revisions:“. \\ Add <your PALM username>, and repeat this for every commit of this specific file, e.g.:\\ |
| 109 | {{{! Current revisions:}}}\\ |
| 110 | {{{! - - - - - - - - - }}}\\ |
| 111 | {{{! Change of variable name pt to vpt (<your PALM username>)}}}\\ |
| 112 | {{{! Bugfix in shortwave radiation calculation (<your PALM username>)}}} |
| 113 | 2. {{{ cd ~/palm/branches/<feature_name>/SOURCE }}} |
| 114 | 3. {{{svn status}}} \\ (to see which files were earmarked, e.g. as '''M'''odified, '''D'''eleted/'''A'''dded from/to svn repository\\ '''[[span(style=color: red, ATTENTION:)]] all listed files will be commited in step 4)''' |
| 115 | 4. {{{svn commit -m 'Branch <feature_name>: short comment on changes' <file1.f90> <file2.f90>}}} |
| 116 | 5. Now you should be able to see your commited files, if you browse your branch under\\ https://palm.muk.uni-hannover.de/trac/browser/palm/branches |
| 117 | |
| 118 | |||| While committing to your branch, please make sure that the revision comments remain under „Current revisions“. \\ Do not use the script document_changes, nor manually copy the revision comment to the „Former revisions“ section.\\ This makes merging to the palm4u branch or to the trunk more difficult. || |
| 119 | |
| 120 | === (5 a) Commit changes to repository branch → How to add new files (I) === |
| 121 | |
| 122 | (For how to structure new SOURCE files, please take a look at the template_newmodule_mod_v3.f90 in the Downloads section of the MOSAIK page).\\ |
| 123 | In order to use the “keyword substitution” feature of subversion, a newly created file must contain the Id-keyword. |
| 124 | |
| 125 | {{{! Former revisions:}}}\\ |
| 126 | {{{! -----------------}}}\\ |
| 127 | {{{! $Id$}}} |
| 128 | |
| 129 | The new file has to be earmarked in order to be added to the svn repository with the next commit. \\This marking is done by |
| 130 | |
| 131 | {{{svn add newfile.f90}}} |
| 132 | |
| 133 | Substitution of the „Id“-keyword has to be activated with svn-command |
| 134 | |
| 135 | {{{svn propset svn:keywords "Id" newfile.f90}}} |
| 136 | |
| 137 | === (5 a) Commit changes to repository branch → How to add new files (II) === |
| 138 | |
| 139 | After the commit (see Chapter 5), subversion will automatically substitute the “Id” string with the current timestamp: |
| 140 | |
| 141 | {{{! Former revisions:}}}\\ |
| 142 | {{{! -----------------}}}\\ |
| 143 | {{{! $Id: newfile.f90 1683 2015-10-07 23:57:51Z raasch $}}} |
| 144 | |
| 145 | == (6) Some additional commands == |
| 146 | |
| 147 | (For details about the commands, see http://svnbook.red-bean.com/de/1.7/index.html) |
| 148 | |
| 149 | * Deleting files or directories from the svn repository\\ |
| 150 | {{{svn delete file/directory}}} \\ |
| 151 | (Perform command in local branch copy to mark files/directories for deletion. \\During the commit, the marked files/directories will be deleted in the svn branch) |
| 152 | * Checking, which files have been modified in your local branch copy with respect to the checked-out branch revision\\ (see http://svnbook.red-bean.com/de/1.7/svn.ref.svn.c.status.html) |
| 153 | {{{svn status <feature_name>}}} |
| 154 | * Printing revision information about the local branch copy |
| 155 | {{{svn info <feature_name>}}} |
| 156 | |
| 157 | |