Changes between Version 1 and Version 2 of gbgp_branches


Ignore:
Timestamp:
2015-10-21T15:11:37Z (9 years ago)
Author:
Dave Offiler
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • gbgp_branches

    v1 v2  
    11== Branches ==
    22
    3 Developments to GBGP should be made from, and committed to, a [http://svnbook.red-bean.com/en/1.0/ch04.html#svn-ch-4-sect-1 branch] rather than directly to the latest trunk version. This allows changes to be tested before merging the required changes back into the trunk. The trunk therefore represents a stable 'next potential release' state for GBGP. Branches can be temporary and might be for working on resolving a specific Trac Ticket.
     3Developments to GBGP should be made from, and committed to, a [http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html branch] rather than directly to the latest trunk version. This allows changes to be tested before merging the required changes back into the trunk. The trunk therefore represents a stable 'next potential release' state for GBGP. Branches can be temporary and might be for working on resolving a specific Trac Ticket.
    44
    55'''Creating a branch'''
    66
    7 To create a branch of {{{gbgp_src}}} from the trunk use the [http://svnbook.red-bean.com/en/1.0/re07.html svn copy ''SRC DST''] command:
     7To create a branch of {{{gbgp_src}}} from the trunk use the [http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.copy.html svn copy ''SRC DST''] command:
    88{{{
    99svn copy https://svn.romsaf.org/gbgp/gbgp_src/trunk https://svn.romsaf.org/gbgp/gbgp_src/branches/dev/Share/<branch_name>
     
    2828
    2929Code developments are then done within a branch as normal.
    30 To view the local changes made to a branch, use the [http://svnbook.red-bean.com/en/1.0/re26.html svn status] command.
     30To view the local changes made to a branch, use the [http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.status.html svn status] command.
    3131
    3232
    3333'''Committing changes to a branch'''
    3434
    35 When changes to a branch are ready to be updated in the repository, the code needs to be committed using the [http://svnbook.red-bean.com/en/1.0/re05.html svn commit] command.
     35When changes to a branch are ready to be updated in the repository, the code needs to be committed using the [http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.commit.html svn commit] command.
    3636{{{
    3737svn commit -m "Some text here to describe the changes"
     
    4545At some stage it may be necessary to update the trunk with latest developments while a user is still working in a particular branch. Users will be notified of any changes to trunk.
    4646
    47 In order to keep a branch up to date with the latest version of the trunk while you are working on your branch, you may want to bring in the changes that have been made to the main trunk. This can be done using the [http://svnbook.red-bean.com/en/1.0/re16.html svn merge] command. You must first change directory to your branch's working copy: e.g.
     47In order to keep a branch up to date with the latest version of the trunk while you are working on your branch, you may want to bring in the changes that have been made to the main trunk. This can be done using the [http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.merge.html svn merge] command. You must first change directory to your branch's working copy: e.g.
    4848{{{
    4949cd ${HOME}/<SVN_working_dir>/<branch name>
     
    6363The merge command can be used separately on subdirectories and files within a branch as required.
    6464
    65 If a conflict arises between the local copy of a file and the trunk copy to be merged, several versions of that file will be created (e.g. ''file.f90'', ''file.f90.merge-left.rNNNN'', ''file.f90.merge-right.rMMMM''). In general, you will wish to replace the old version of a file (''file.f90.merge-left.rNNNN'') with the latest version from trunk (''file.f90.merge-right.rMMMM''). This can be done manually, and use the [http://svnbook.red-bean.com/en/1.0/re24.html svn resolved] command to indicate that the conflict has been addressed. This will tidy up the files created on merge.
     65If a conflict arises between the local copy of a file and the trunk copy to be merged, several versions of that file will be created (e.g. ''file.f90'', ''file.f90.merge-left.rNNNN'', ''file.f90.merge-right.rMMMM''). In general, you will wish to replace the old version of a file (''file.f90.merge-left.rNNNN'') with the latest version from trunk (''file.f90.merge-right.rMMMM''). This can be done manually, and use the
     66[http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.resolved.html svn resolved] command to indicate that the conflict has been addressed. This will tidy up the files created on merge.
    6667
    6768Further information on branches are available in
    68 [http://svnbook.red-bean.com/en/1.0/ch04.html#svn-ch-4-sect-1 SVN reference: Branching and Merging]
     69[http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html SVN reference: Branching and Merging]
    6970
    7071[https://trac.romsaf.org/ropp/wiki/gbgp_repository Back]