Code/QuickStart

Not logged in - Log In / Register

Revision 12 as of 2009-08-07 15:03:31

Clear message

Launchpad Help > Code > Quick-start

lp-diamond-16.png Code hosting quick start

Need more detail? Take a look at the Code section of this help wiki and the Bazaar mini-tutorial. What is Bazaar?.

Enable code hosting for your project

Step 1: First, add your project to Launchpad. On your project's overview page, click Change details towards the top-right of the page.

change-details.png

Edit your project's info in Launchpad

Step 2: Scroll down the Change details page and select the check-box marked Code for this project is published in Bazaar branches on Launchpad.

code-for-this-project.png

Tell Launchpad you want to host your project's code here

Step 3: Save your changes by clicking the Change button at the bottom of the page.

Quick tip

You can experiment by pushing a branch without linking it to a project. See more about personal branches.

Your project overview page now has a message that reads Uses Launchpad for: Code.

Push a Bazaar branch to your project

Bazaar comes with a plug-in that lets you push to and pull from Launchpad directly from within Bazaar.

If you haven't already, you need to perform a couple of one-time setup tasks:

  1. add your SSH key to Launchpad

  2. and then log in to Launchpad from Bazaar by typing bzr launchpad-login in your terminal.

To push your branch up to Launchpad, open your terminal and go to your Bazaar branch. Next up, type:

bzr push lp:~your-id/project-id/branch-name

Replace project-name with your project's Launchpad id. The id is the final part of your project overview page's URL: e.g. bzr in https://launchpad.net/bzr

See your branch in place

Once Bazaar has pushed your branch to Launchpad, Launchpad will scan the revisions in your branch and:

Set your project's trunk branch

You can tell Launchpad which of your project's branches is the current focus of development; i.e. which is the trunk.

Setting a trunk branch is useful to:

Visit your project's code overview page and follow the link inviting you to set a development focus.

set-trunk.png

Set your trunk branch

Let several people commit to the branch

If you want to enable several people to push code to the branch, you'll need to create a team and make that the branch's owner.

On the branch's overview page, you'll see an information box on the right-hand side of the page. Click the pencil icon next to your name in the Owner section and then select the team that you want to own the branch.

change-branch-owner.png

Change the branch's owner

Next steps

You're now hosting your project's code in Launchpad. Anyone can download your code, make their changes and upload their branch for listing on your project's code page. Other people can also propose there branches for merging into your trunk, or any other branch associated with your project.

Read our full guide to Launchpad Code Hosting >