Diff for "Patches"

Not logged in - Log In / Register

Differences between revisions 1 and 8 (spanning 7 versions)
Revision 1 as of 2009-04-10 15:27:22
Size: 1803
Editor: kfogel
Comment: Initial draft of this page.
Revision 8 as of 2009-08-03 22:06:11
Size: 2383
Editor: kfogel
Comment: Simpler name; also, this page discusses more than just submission.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from PatchSubmission
Line 7: Line 8:
This page covers the process of getting a code change into Launchpad. You should already have your Launchpad sources (see [[https://wiki.canonical.com/Launchpad/RocketFuelSetup| Rocketfuel Setup]]) and be familiar with the [[StyleGuides|coding style guidelines]]. This page covers the process of getting a code change into Launchpad. You should already [[Getting|have the Launchpad sources]], be able to [[Running|build and run]] Launchpad, and be familiar with the [[StyleGuides|coding style guidelines]].
Line 9: Line 10:
 1. Before making your change, it's a good idea to talk about it first to a Launchpad developer. The easiest way there is to ask the person listed as the on-call reviewer (OCR) in the [[irc://irc.freenode.net/launchpad-reviews|#launchpad-reviews]] IRC channel on `irc.freenode.net`. That "pre-implementation chat" will make sure that you have all things covered. If your proposal involves UI changes, you might even want to make screenshots or a [[ScreenCasts|screencast]].
Line 10: Line 12:
 1. Push the branch up to your Launchpad user account: ''{{{bzr push my_local_bugfix123_branch lp:~my_username/launchpad/bugfix123}}}''  1. Push the branch up to your Launchpad user account: '''{{{bzr push my_bugfix123_branch lp:~my_username/launchpad/bugfix123}}}'''
Line 13: Line 15:
 1. Find someone to review the branch. Usually, this is a Launchpad developer you've already been talking to about the change. You can also go into the IRC channel `#launchpad-dev` on `irc.freenode.net` and see who's available to do review, or post to the development mailing list. See also [[Reviews|Code Review]].
Line 15: Line 16:
 1. Once the reviewer approves the change, merge it into Launchpad: {{{...working here...}}}  1. Find someone to review the branch. Usually, this would be the Launchpad developer with whom you had your "pre-implementation" chat about the change. If he or she is not available, you can ask in [[irc://irc.freenode.net/launchpad-reviews|#launchpad-reviews]] or [[irc://irc.freenode.net/launchpad-dev|#launchpad-dev]]. See the [[Reviews|Code Review]] page.
 1. Once the reviewer approves the change, they'll take care of merging your changes (that's until we work out an automated process).

Submitting a Patch to Launchpad

This page covers the process of getting a code change into Launchpad. You should already have the Launchpad sources, be able to build and run Launchpad, and be familiar with the coding style guidelines.

  1. Before making your change, it's a good idea to talk about it first to a Launchpad developer. The easiest way there is to ask the person listed as the on-call reviewer (OCR) in the #launchpad-reviews IRC channel on irc.freenode.net. That "pre-implementation chat" will make sure that you have all things covered. If your proposal involves UI changes, you might even want to make screenshots or a screencast.

  2. Make sure your change is about one single thing (say, a specific bugfix), and that all the revisions for it are committed on your Bazaar branch.
  3. Push the branch up to your Launchpad user account: bzr push my_bugfix123_branch lp:~my_username/launchpad/bugfix123

  4. Run tests on your branch. If the tests don't pass, go back to hacking, commit new changes, re-push, and re-test. Repeat until the branch passes.

  5. Please send in your contributor agreement form now (it's an easy email process). We can't accept the change without a contributor agreement.

  6. Propose your branch for merging, by going to https://code.launchpad.net/~my_username/launchpad/bugfix123 and click on Propose for merging into another branch. (The branch to merge into is lp:~launchpad-pqm/launchpad/devel.) Fill in the field for requested reviewer with the name of the reviewer you found, and follow the guidelines for writing the merge cover letter.

  7. Find someone to review the branch. Usually, this would be the Launchpad developer with whom you had your "pre-implementation" chat about the change. If he or she is not available, you can ask in #launchpad-reviews or #launchpad-dev. See the Code Review page.

  8. Once the reviewer approves the change, they'll take care of merging your changes (that's until we work out an automated process).

Patches (last edited 2009-08-05 14:24:24 by kfogel)