Diff for "Code/PrivateBranches"

Not logged in - Log In / Register

Differences between revisions 3 and 4
Revision 3 as of 2010-10-14 14:18:30
Size: 2345
Editor: 70-239-164-128
Comment:
Revision 4 as of 2010-10-18 04:13:41
Size: 2893
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
= Private branches = = Branch access control =
Line 7: Line 7:
Launchpad Supports private code branches. A project's branches can have a visibility setting of public, private, or private only.
 * Public branches can be seen by anyone.
 * Private branches can only be seen by those on the teams associated with the project's branches' visibility. They can be made Public.
 * Private only branches are like Private branches, but can never be made public.
Launchpad supports a team-based access control for code branches. The branches for a project are controlled by the branch visibility setting for one or more teams plus the default policy.
For a given project, a team can have a visibility setting of "public", "private", or "private only" for one or more teams. The default policy can be "Public" or "Forbidden".
Line 12: Line 10:
Private branches are a feature for commercial projects. For more information, see [[CommercialHosting]].  * '''Public''' branches can be seen by anyone.
 * '''Private''' branches can only be seen by members of the team associated with the project's branch visibility rule. They can subsequently be made Public.
 * '''Private Only''' branches are like Private branches, but can never be made public.

Private branches are a feature available on request for commercial projects. For more information, see [[CommercialHosting]].
Line 20: Line 22:
Once you have created the devel team, you will need to get someone from Canonical's Launchpad team to set up private branches for the devel team. Send an email to commercial@launchpad.net asking to have private branches set up for your devel team and project. Once you have created the devel team, you will need to get someone from Canonical's Launchpad team to set up private branches for the devel team. Send an email to commercial@launchpad.net asking to have private branches set up for your devel team and project, providing the name of each.
Line 22: Line 24:
Once you are told private branches have been set up for your team and project, you can create a development focus branch (and other branches) for your project [[Code/TeamBranches|as usual for teams]]. Once you are told private branches have been set up for your team and project, you can create a development focus branch (and other branches) for your project [[Code/TeamBranches|as usual for teams]].  It is '''highly''' recommended that you initially push a branch with no proprietary code to ensure the privacy rules are working as you expected. When satisfied you can begin pushing up the private code.
Line 26: Line 28:
Any team that wants access to the code for a project once private branches are set up must have access created set up for it. Since it is cumbersome to have to contact Launchpad for each team, the devel team can function as a master team for each team needing access. Once private branches are set up, any team that wants access to the code for a project must have a new visibility rule configured for the team. Since it is cumbersome to have to contact Launchpad for each team, the devel team can function as a master team for each team needing access.

Launchpad Help > Code > Private branches

Branch access control

Launchpad supports a team-based access control for code branches. The branches for a project are controlled by the branch visibility setting for one or more teams plus the default policy. For a given project, a team can have a visibility setting of "public", "private", or "private only" for one or more teams. The default policy can be "Public" or "Forbidden".

  • Public branches can be seen by anyone.

  • Private branches can only be seen by members of the team associated with the project's branch visibility rule. They can subsequently be made Public.

  • Private Only branches are like Private branches, but can never be made public.

Private branches are a feature available on request for commercial projects. For more information, see CommercialHosting.

Setting up private branches for a project

Create a development team

Before you can set up private branches for your project, you must have a team that will be given access to the branches; membership in this team will govern who has access to the project's code. Make sure this team is set to Restricted or Moderated membership. In the rest of this page, we'll refer to this team as the project's devel team.

Once you have created the devel team, you will need to get someone from Canonical's Launchpad team to set up private branches for the devel team. Send an email to commercial@launchpad.net asking to have private branches set up for your devel team and project, providing the name of each.

Once you are told private branches have been set up for your team and project, you can create a development focus branch (and other branches) for your project as usual for teams. It is highly recommended that you initially push a branch with no proprietary code to ensure the privacy rules are working as you expected. When satisfied you can begin pushing up the private code.

Private branches and teams

Once private branches are set up, any team that wants access to the code for a project must have a new visibility rule configured for the team. Since it is cumbersome to have to contact Launchpad for each team, the devel team can function as a master team for each team needing access.

Setting up additional teams with the devel as a master team

To set up other teams through the devel team, just create a new team as you created the devel team. In particular, remember to set the team to Restricted or Moderated Membership. Then add the new team as a member to the devel team. The new team and its members should now have access to the private branches for the project.

Code/PrivateBranches (last edited 2012-09-06 17:42:30 by pool-108-28-25-212)