Changes between Version 11 and Version 12 of doc/tec/developerrules/svnbranch


Ignore:
Timestamp:
Nov 26, 2018 2:40:11 PM (5 years ago)
Author:
kanani
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/tec/developerrules/svnbranch

    v11 v12  
    1818== (2) Use of local branch copy==
    1919
    20 === (2 a) Checkout of local branch copy ===
     20=== (2a) Checkout of local branch copy ===
    2121
    2222* {{{cd $HOME/palm/branches/ }}}
    2323* {{{ svn checkout --username <your PALM username> https://palm.muk.uni-hannover.de/svn/palm/branches/<feature_name>}}}
    2424
    25 === (2 b) Update of local branch copy ===
     25=== (2b) Update of local branch copy ===
    2626
    2727If the local branch copy already exists, and you would like to update it with a newer svn revision of this branch:
     
    4747           An alternative to this approach is to __use symbolic links__ to link {{{.../trunk to .../branches/<feature_name>}}}. \\ This way you don't have to keep changing the {{{PATH/PALM_BIN}}} variables, and you run PALM out of your current_version directory, \\ with your {{{SCRIPTS/SOURCE}}} files from {{{~/palm/branches/<feature_name>}}}
    4848
    49 === (3 a) How to use git for local code versioning ===
     49=== (3a) How to use git for local code versioning ===
    5050
    5151(These are only brief hints, please refer to the git manual for more detailed help)
     
    6464|||| Please '''DO NOT''' mix up synchronization and other code changes in one commit, because when \\ doing  a diff of two branch revisions it‘s very difficult to find out the actual changes in the branch. ||
    6565
    66 === (4 a) Merge repository branch into local branch copy ===
     66=== (4a) Merge repository branch into local branch copy ===
    6767
    68681. {{{cd $HOME/palm/branches/<feature_name>}}} \\
     
    8282     [[span(style=color: #FF0000, __'''Note:'''__ It might be wise to put a copy of your modified files somewhere else before you do the merge.)]]
    8383
    84 === (4 b) Merge PALM main repository revision (trunk) into local branch copy ===
     84=== (4b) Merge PALM main repository revision (trunk) into local branch copy ===
    8585
    86861. {{{cd $HOME/palm/branches/<feature_name>}}}
    87 2. {{{svn update}}} (to obtain HEAD (over[[Image()]]all latest) repository revision )
     872. {{{svn update}}} (to obtain HEAD (overall latest) repository revision )
    88883. {{{svn merge -r####:HEAD}}}\\ {{{https://palm.muk.uni-hannover.de/svn/palm/trunk}}}\\(####: branch revision at last merge with trunk)
    89894. During update/merge, svn will print an alert in case the same line of code has been modified by the different developers. \\As an example:
     
    9595    [[span(style=color: #FF0000, __'''Note:'''__ It might be wise to put a copy of your modified files somewhere else before you do the merge.)]]
    9696
    97 === (4 c) Resolving conflicts in a merge ===
     97=== (4c) Resolving conflicts in a merge ===
    9898
    9999You will find following set of files in case of a conflict, e.g.
     
    103103|||| average_3d_data.f90  |||| (your + their code at conflicted line in merged file) ||
    104104
    105 To resolve the conflict, we recommend to take file {{{average_3d_data.f90}}}, and manually work through the conflicted lines, \\ which look something like this:
    106 [[Image(test.png)]]
     105To resolve the conflict, we recommend to take file {{{average_3d_data.f90}}}, and manually work through the conflicted lines, which look something like this:
     106{{{
     107#!div style="align:'left'; width: 65%; border: 0px solid"
     108[[Image(test.png, width=100%)]]
     109}}}
    107110You could also use kdiff3 of files „left“ and „right“ to visualize the changes at conflicted lines.
    108111
     
    123126|||| 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. ||
    124127
    125 === (5 a) Commit changes to repository branch → How to add new files (I) ===
     128=== (5a) Commit changes to repository branch → How to add new files (I) ===
    126129
    127130(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).\\
     
    139142
    140143{{{svn propset svn:keywords "Id" newfile.f90}}}
    141 
    142 === (5 a) Commit changes to repository branch → How to add new files (II) ===
    143144
    144145After the commit (see Chapter 5), subversion will automatically substitute the “Id” string with the current timestamp: