buildbot/buildbot — pull request #439 by licquia (2012-06-02 14:41:29+00:00)
Title: bzr branch fixes

At the moment, branches in bzr are separate trees at separate locations. The buildbot bzr source step allows branch logic to work with the "baseURL" and "defaultBranch" parameters, which are used to create repository URLs for different branches at build time.

Unfortunately, for new-style source steps, this is completely broken. The step code always uses defaultBranch, rather than the branch included as part of the ChangeSource that triggers the build.

My changes fix this, and add tests for this functionality.

Tested on the buildbot setup for the LSB (www.linuxbase.org/buildbot).