Code/QuickStart

Not logged in - Log In / Register

Revision 10 as of 2009-08-04 14:06:23

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.

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.

What's changed?

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.

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

Series

Launchpad lets you manage multiple lines of development, which it calls series. For example: you may have a separate series each for your next major version, your current release and an older release that your still support.

You can set a development focus, or trunk, branch for each series. Read about series >

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 >