Community

Creating a BZR patch for your development changes

Last updated February 1, 2013.

Once finished with your changes to your sandbox, it's time to roll them up as a patch!

Note: It's preferred to create bzr patch for the Bluecheese theme changes only and git patches for the modules.

How to create bzr patch:

  1. Navigate to your Drupal root directory at /var/www/dev/SANDBOX/htdocs
  2. Use bzr diff to roll the patch, and output it in your sandbox's files directory, so you can get it on your computer without fancy scp tricks.

    If the changes are quite self-contained, this should be enough:

    bzr diff > files/PATCH.patch

    If you're trying to target just one set of changes in a larger set, you can do:

    bzr diff sites/all/modules/MODULE > files/PATCH.patch
  3. Navigate to the http://SANDBOX-drupal.redesign.devdrupal.org/files/PATCH.patch file in your browser and save it to your desktop (for example).
  4. Upload the patch to the proper project's issue queue in the usual way.