Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm assisting in a project on Launchpad - however I do not have write access to that branch. How can I create a branch which I can push to and point people on the team for review?

share|improve this question
@ColeJohnson Considering Launchpad is an integral part of the Ubuntu Ecosystem, and this site is about Ubuntu Users and Ubuntu Developers I would like to think this is ontopic. If you think otherwise feel free to open a top on meta discussing why you feel Launchpad isn't ontopic to get feedback from the community. – Marco Ceppi May 28 '13 at 1:50
That makes sense. I just thought it would be better on Web Applications SE. But, would you say Launchpad is the canonical way to work on Ubuntu? :P – user121291 May 28 '13 at 5:56
up vote 11 down vote accepted

Go to the project page that you want to create a branch for and click 'Submit Code'.

alt text

Then set up the branch. Make sure it is hosted in Launchpad.

alt text

You can then push to the branch:

bzr push lp:branch

The first time you push, you will need to use:

bzr push lp:branch --use-existing-dir

Once you are ready to merge, click 'Propose for merging' on the 'Code' tab of the project.

alt text

It will then wait to be reviewed by someone with the necessary permissions.

Once the review has started, you will see something like this in the 'Code' tab: alt text

You can follow this link to the review page. alt text

Once the reviewer is satisfied, they will merge the branches and your code will become part of the project's trunk.

share|improve this answer
Does that only work if the "Submit code" button is available or is it theoretically possible to request merge to personal branches created in the user profile page (when I request those for merge it fails with This branch is not mergeable into lp:~[username]/+junk/[branch name] after pushing a branch on commit ahead of master). Since the feedback doesn't give a reason and thus useless, I thought I ask. – Karl Richter Jan 31 at 4:39

You can push a branch under your own name, e.g. bzr push lp:~ajmitch/ubuntuwire-website/update-machine-list to push a branch to the ubuntuwire-website project which is named update-machine-list

share|improve this answer

Starting in the folder a level up from the branch:

bzr branch originalBranchName newBranchName
cd newBranchName

Make some changes to the files. If you add any new files/folders:

bzr add

Once you're done:

bzr commit -m "Description of changes"

And push to your own Launchpad branch:

bzr push lp:~lpusername/projectname/branchname
share|improve this answer

For Subversion users, or those interested in lightweight checkouts, this might also help:

share|improve this answer
Although your answer is 100% correct, it might also become 100% useless if that link is moved, changed, merged into another one or the main site just disappears... :-( Therefore, please edit your answer, and copy the relevant steps from the link into your answer, thereby guaranteeing your answer for 100% of the lifetime of this site! ;-) You can always leave the link in at the bottom of your answer as a source for your material... – Fabby Oct 2 '15 at 1:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.