Community Documentation

Updating your Branch with Official Drupal Dev

Last updated February 19, 2008. Created by jblack on January 19, 2006.
Edited by ax, moshe weitzman. Log in to edit this page.

A branch that is downloaded from the drupal bzr server is just a copy of a branch. These sorts of branches, as we've already covered, are updated simply by running "bzr pull". This only works, though, if your branch is _just_ a copy. If you have committed to a branch, then a slightly different approach needs to be taken. A branch that has been committed to is a "diverged branch". These branches are different, but equally valid, from the branch they came from.

One merges changes between diverged branches with the "bzr merge" command. In your case, your branch will have diverged from the official drupal.dev branch. You can merge from drupal.dev in this way:

$ bzr merge

This will figue out what changes you are missing from official drupal.dev and apply them to your version of drupal. You're still not done, however. You should also review the changes in your branch and decide whether or not you want them. You can see what changed by running "bzr st" and how they changed by "bzr diff". Presumably you'll want to save the changes. You can do this the same way that you've always saved changes by

bzr commit -m 'merged from mainline'
Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here