Changes between Version 9 and Version 10 of doc/tec/developerrules
- Timestamp:
- May 31, 2017 8:15:18 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/tec/developerrules
v9 v10 1 1 = How to change and commit the source code and how to document modifications = 2 [[NoteBox(note,Please note that the change-and-commit procedure has changed starting from revision r2235)]] 2 3 3 4 Strict rules apply to formatting of the PALM FORTRAN code. These rules are outlined in the [attachment:PALM_coding_standard.docx PALM coding standard document]. … … 5 6 Only authorized users are allowed to commit changes to the repository. 6 7 7 1. Change source code in your current working copy. Document all changes in the respective file headers under "{{{Current revisions:}}}". Additionally, document all changesin a local file (e.g. {{{~/palm/current_version/CURRENT_MODIFICATIONS}}}), including the names of those files that have been changed. Classify changes in three cases, new (N), changed (C), and bugfix (B). Try to be as short and as precise as possible in describing the changes! [[BR]] [[BR]]8 1. Change source code in your current working copy. Document all changes in the respective file headers under "{{{Current revisions:}}}". Additionally, all changes might be documented in a local file (e.g. {{{~/palm/current_version/CURRENT_MODIFICATIONS}}}), including the names of those files that have been changed. Classify changes in three cases, new (N), changed (C), and bugfix (B). Try to be as short and as precise as possible in describing the changes! [[BR]] [[BR]] 8 9 2. Test the changed version, until it works sufficiently. [[BR]] [[BR]] 9 3. Commit the changes to the repository 10 {{{ 11 svn commit -m "message string" trunk 12 }}} 13 where {{{"message string"}}} is a short, meaningful summary of the changes. [[BR]] [[BR]] 14 Alternatively, in case that you have made quite a lot of changes, you can also give the contents of your file {{{CURRENT_MODIFICATIONS}}} as the log message: 15 {{{ 16 svn commit -F CURRENT_MODIFICATIONS trunk 17 }}} 18 4. Enter the changes into the change log ([wiki:/doc/tec/changelog]). [[BR]] [[BR]] 19 5. Move the change comments in the file headers from {{{"Current revisions:"}}} to {{{"Former revisions:"}}}. Set the current svn id in front of that. 20 This procedure is taken over by the shell script {{{document_changes}}}. After having committed your changes, simply call 10 3. Run the script document_changes to save the change comments. After having made your changes in the source code, simply call 21 11 {{{ 22 12 document_changes trunk 23 13 }}} 24 Alternatively, you can do the necessary changes manually.14 Alternatively, move the change comments in the file headers from {{{"Current revisions:"}}} to {{{"Former revisions:"}}} manually. Set the current svn id in front of that and modify the id string of the last commit. 25 15 [[BR]] [[BR]] 26 16 Example: [[BR]] [[BR]] … … 33 23 ! Former revisions: 34 24 ! ----------------- 35 ! $Id: init_3d_model.f90 425 2010-02-06 13:37:48Z raasch $ 25 ! $Id: init_3d_model.f90 424 2010-02-06 13:37:48Z raasch $ 26 ! var_pr is no longer needed and is removed 36 27 ! 37 28 ! 407 2009-12-01 15:01:15Z maronga … … 47 38 ! ----------------- 48 39 ! $Id: init_3d_model.f90 425 2010-02-06 13:37:48Z raasch $ 40 ! new dummy argument abcd 49 41 ! 50 42 ! 425 2010-02-06 13:37:48Z raasch … … 55 47 }}} 56 48 57 6. Commit the changes in the technical documentation and the file headers: 49 50 3. Commit the changes to the repository 58 51 {{{ 59 svn commit -m " last commit documented" trunk52 svn commit -m "message string" trunk 60 53 }}} 54 where {{{"message string"}}} is a short, meaningful summary of the changes. [[BR]] [[BR]] 55 Alternatively, in case that you have made quite a lot of changes, you can also give the contents of your file {{{CURRENT_MODIFICATIONS}}} as the log message: 56 {{{ 57 svn commit -F CURRENT_MODIFICATIONS trunk 58 }}} 59 4. Enter the changes into the change log ([wiki:/doc/tec/changelog]). [[BR]] [[BR]]