Changes between Version 9 and Version 10 of doc/tec/developerrules


Ignore:
Timestamp:
May 31, 2017 8:15:18 AM (8 years ago)
Author:
maronga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/developerrules

    v9 v10  
    11= 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)]]
    23
    34Strict rules apply to formatting of the PALM FORTRAN code. These rules are outlined in the [attachment:PALM_coding_standard.docx PALM coding standard document].
     
    56Only authorized users are allowed to commit changes to the repository.
    67
    7    1. Change source code in your current working copy. Document all changes in the respective file headers under "{{{Current revisions:}}}". Additionally, document all changes 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   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]]
    89   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
    2111      {{{
    2212         document_changes trunk
    2313      }}}
    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.
    2515      [[BR]] [[BR]]
    2616      Example:  [[BR]] [[BR]]
     
    3323      ! Former revisions:
    3424      ! -----------------
    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
    3627      !
    3728      ! 407 2009-12-01 15:01:15Z maronga
     
    4738      ! -----------------
    4839      ! $Id: init_3d_model.f90 425 2010-02-06 13:37:48Z raasch $
     40      ! new dummy argument abcd
    4941      !
    5042      ! 425 2010-02-06 13:37:48Z raasch
     
    5547      }}}
    5648
    57    6. Commit the changes in the technical documentation and the file headers:
     49
     50   3. Commit the changes to the repository
    5851      {{{
    59          svn commit -m "last commit documented" trunk
     52         svn commit -m "message string" trunk
    6053      }}}
     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]]