Difference between revisions of "RepositoryStructure"

From PaparazziUAV
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Repository Structure''' Refers to the way Paparazzi is naming the branches and which one is the right one for you.
'''Repository Structure''' Refers to the way Paparazzi is naming the [[Git]] branches and which one is the right one for you.


[[Image:RepositoryBranching.png|400px|thumb|Branching Model Diagram]]
[[Image:RepositoryBranching.png|400px|thumb|Branching Model Diagram]]


== Stable Releases ==
== Development branch (master) ==
<span class="plainlinks">[https://travis-ci.org/paparazzi/paparazzi https://travis-ci.org/paparazzi/paparazzi.png?branch=master,?.png]</span>
 
A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use.
It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches.
Needs bench testing and careful flight testing on your end.


These are the branches that are considered stable and ok to be used by everyone. The default branch on github (the one you get when cloning the repository) will always be set to the latest stable release.
== Stable branches ==


'''Releases get even version numbers.'''
These are the branches that are considered stable and ok to be used by everyone.
 
'''Releases get even minor version numbers.'''


The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.
The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.


'''May branch off from:''' ''release preparation branch''<br/>
'''May branch off from:''' ''release preparation branch''<br/>
'''Branch naming convention:''' ''v<major>.<even_minor>'', e.g. v4.0
'''Branch naming convention:''' ''v<major>.<even_minor>'', e.g. v4.0


=== Release Preparation Branches ===
== Feature branches ==


Release preparation is done in branches with '''odd version numbers'''. When it is ready the branch is renamed to the next even number.
If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again.
So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.


'''May branch off from:''' ''development branch''<br/>
'''Must merge back into:''' ''development branch''<br/>
'''Branch naming convention:''' ''v<major>.<odd_minor>'', e.g. v3.9


== Development branch (master) ==
'''May branch off from:''' ''master''<br/>
A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use.
'''Must merge back into:''' ''master''<br/>
It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches.
'''Branch naming convention:''' ''<feature_description>''


<span style="color:red">'''The branch "master" is now our development branch. There is no branch named "dev" anymore.'''</span>
== Release Preparation Branches ==


== Feature branches ==
Release preparation is done in branches with '''odd version numbers'''. When it is ready the branch is renamed to the next even number.
So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.


If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again.


'''May branch off from:''' ''development branch''<br/>
'''May branch off from:''' ''master''<br/>
'''Must merge back into:''' ''development branch''<br/>
'''Must merge back into:''' ''master'', ''next stable branch''<br/>
'''Branch naming convention:''' ''<feature_description>''
'''Branch naming convention:''' ''v<major>.<odd_minor>'', e.g. v3.9


== Hotfix branches ==
== Hotfix branches ==


If there are bugfixes that need to be tested before they get applied/merged to a stable release they get their own (temporary) branch:
If there are bugfixes that need to be tested before they get applied/merged to a stable release they get their own (temporary) branch:


'''May branch off from:''' ''stable branch''<br/>
'''May branch off from:''' ''stable branch''<br/>
Line 48: Line 53:


* v4.0_fix_b2_v12_mag_signs
* v4.0_fix_b2_v12_mag_signs
== Old VS new repository structure ==
<span style="color:red">'''The branch "master" is now our development branch. There is no branch named "dev" anymore.'''</span>
* The "dev" branch was renamed to the release preparation branch "v3.9".
* "master" was reset to the previous "locm3" branch, where development will happen now with libopencm3 for the STM32 architecture.

Latest revision as of 05:53, 23 April 2015

Repository Structure Refers to the way Paparazzi is naming the Git branches and which one is the right one for you.

Branching Model Diagram

Development branch (master)

paparazzi.png?branch=master,?.png

A permanent branch where current the development is based on. For users wanting to test the the bleeding edge, this is the one to use. It should at least compile, but can have untested new features. New features are being injected into this one from the feature branches. Needs bench testing and careful flight testing on your end.

Stable branches

These are the branches that are considered stable and ok to be used by everyone.

Releases get even minor version numbers.

The only commits that go into those branches are only bugfixes. No new feature commits are being done directly to those.


May branch off from: release preparation branch
Branch naming convention: v<major>.<even_minor>, e.g. v4.0

Feature branches

If a bigger new feature is being implemented and is meant for people to test the development branch is being copied into "feature_<description>" and after the implementation of the new feature is completed those branches get merged back into the development branch again.


May branch off from: master
Must merge back into: master
Branch naming convention: <feature_description>

Release Preparation Branches

Release preparation is done in branches with odd version numbers. When it is ready the branch is renamed to the next even number. So e.g. stabilization and testing is done in v4.1 and then renamed to v4.2 (and tagged) on release.


May branch off from: master
Must merge back into: master, next stable branch
Branch naming convention: v<major>.<odd_minor>, e.g. v3.9

Hotfix branches

If there are bugfixes that need to be tested before they get applied/merged to a stable release they get their own (temporary) branch:


May branch off from: stable branch
Must merge back into: stable branch
Branch naming convention: <major>.<even_minor>_fix_<description>

For example:

  • v4.0_fix_b2_v12_mag_signs