-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Using Bazaar
Here's a list of graphical Bazaar clients that Mixxx developers have tested:
- Bazaar w/ TortoiseBZR - Works well in check-out mode. Distributed online mode is slow in large directories. (Tested by Pegasus)
- Olive (bzr-gtk) - Looks promising but is god-awful slow on large directories like our src/ (Tested by Pegasus)
-
Create a personal copy (called a "branch") of the Mixxx
trunk/branch you want to work on using
bzr branch lp:mixxx
for trunk orbzr branch lp:mixxx/1.7
for the 1.7 release branch. This copies the code to your local system. (Be patient as the Mixxx code base is fairly large and older versions of bzr sometimes have difficulty reporting progress.) -
Make changes to the code as desired. Every so often issue
bzr commit -m 'log message
' which will "commit" the changes to your local store, allowing you to review or revert later. - To periodically update from the parent, issue
bzr pull
. If that gives you errors, (and it likely will if changes have been made to both) usebzr merge
instead, since you're technically "merging" the parent repository with your local one. - Register a new personal branch with Launchpad if you haven't already: https://code.launchpad.net/people/+me/+addbranch. You can create as many as you want, such as when working on different features. To create new branches on launchpad you can just `bzr push lp:~$USER/mixxx/$NEW_BRANCH_NAME`.
- When you're ready to share with others, or if you're doing lots of
local commits and want to prevent losing data, issue
bzr push lp:~<your-lp-name>/mixxx/<your-branch-name>
which actually copies your local store to your personal LP-hosted branch. - When your branch is stable and ready for inclusion into trunk or the corporate branch, go to your branch's web page and click "Propose for merging into another branch" and fill in the form. You'll want to specify "mixxxdevelopers" as the reviewer. When you click the "Propose Merge" button, the Mixxx developers will be notified and will review & test your branch when they have a chance. They will then either merge it with the corporate code base or make notations on the proposal page with questions or suggested changes.
If you have push/commit permissions on Launchpad and you are using distributed mode (i.e. branches), do not push from your local branch. Because of the way that Launchpad represents branch history, this will cause the history view to bunch commits by others into single commits by you from when you merge changes from upstream. The proper way to work in this mode is to maintain two branches, a features branch, and a clean branch. The following example will use the Mixxx 1.7 release branch as an example.
-
Create a clean branch:
bzr branch lp:mixxx/1.7 ./mixxx-1.7
-
Create a features branch:
bzr branch ./mixxx-1.7 ./mixxx-1.7-features
- Add features/code to your features branch: hack away at your features branch, and commit whenever you want at whatever interval you want. Ideally you will commit often with brief messages about what the commit did. These commit messages will not be displayed to everyone once you push the changes back to Mixxx. They will only show up if somebody decides they want to see the details of the commits you made for your feature branch.
-
When you are ready to push the changes upstream: from your clean
branch (the
mixxx-1.7
folder):bzr pull
,bzr merge ../mixxx-1.7-features
. Now your branch is merged with the latest upstream changes, but it isn't committed yet. Resolve conflicts, compile Mixxx, run the test suite, and make sure that the feature and the upstream changes work well together. -
Commit the merge of your feature branch:
bzr commit --fixes lp:XXXXXX
. The commit message you enter here will be what the rest of the developers see. They will only see this message, the commit messages you made in your features branch will not be immediately available unless they drill-down into the merge on the history view. If you provide a--fixes
argument to commit, then this will attach the launchpad bug #XXXXXX to the branch you commit to (mixxx-1.7 in this case). -
Push the merged feature branch upstream:
bzr push
Your clean branch will represent the clean state of the remote Mixxx
codebase once you bzr pull
, but your features branch will never update
unless you do it manually. To bring your features branch up to date:
-
Make sure your features branch does not have uncommitted
changes!: This is very important, or you will end up committing
your changes when you commit the merge, and you usually do not want
to do this. You can easily temporarily put changes away by using
bzr shelve
, if you do not have it then you need to installbzrtools
.bzr shelve
is similar togit stash
. -
Update your clean branch: From your clean branch (the
mixxx-1.7
folder):bzr pull
-
Merge the upstream changes from your clean branch to your features
branch: From your features branch (the
mixxx-1.7-features
folder):bzr merge ../mixxx-1.7
-
Commit the merge: Resolve any conflicts, and when you are done
bzr commit
. You usually will provide a commit message with something along the lines ofMerging changes from upstream.
This commit message will not show up when you push your changes to Launchpad using the guide above, since bzr will realize that the merge was applying patches that were already applied to the remote branch.
(For those of us scared of this "distributed" thing...)
-
Check out with
bzr checkout lp:mixxx
for trunk orbzr checkout lp:mixxx/1.7
for the 1.7 release branch. (Be patient as the Mixxx code base is fairly large and older versions of bzr sometimes have difficulty reporting progress.) -
Update to latest version with
bzr update
-
Create a patch with
bzr diff
> mychanges.patch and send it to the mixxx-devel mailing list - If you have commit access, commit with
bzr commit -m "Log message"
(You'll need to register an SSH key first under your personal LP page: https://launchpad.net/people/+me/+editsshkeys.)
Mixxx is a free and open-source DJ software.
Manual
Hardware Compatibility
Reporting Bugs
Getting Involved
Contribution Guidelines
Coding Guidelines
Using Git
Developer Guide
Creating Skins
Contributing Mappings
Mixxx Controls
MIDI Scripting
Components JS
HID Scripting