Bugzilla:Bzr:Porting Forward Customizations: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'If you have committed customizations to your local bzr repository, and you want to bring them forward to a new release, here's how: == Minor Updates == You can use <code>bzr up…') |
|||
| Line 3: | Line 3: | ||
== Minor Updates == | == Minor Updates == | ||
You can use <code>bzr up</code> normally to update--that's probably the easiest thing to do. If you | You can use <code>bzr up</code> normally to update--that's probably the easiest thing to do, if you checked out your code using <code>bzr checkout</code>. | ||
If you checked out using <code>bzr branch</code>, you should use <code>bzr merge</code> to update to the latest minor release. (See <code>bzr help merge</code> for information on how to use it.) | |||
== Major Updates == | == Major Updates == | ||
Revision as of 15:36, 14 May 2010
If you have committed customizations to your local bzr repository, and you want to bring them forward to a new release, here's how:
Minor Updates
You can use bzr up normally to update--that's probably the easiest thing to do, if you checked out your code using bzr checkout.
If you checked out using bzr branch, you should use bzr merge to update to the latest minor release. (See bzr help merge for information on how to use it.)
Major Updates
If you are moving to a new major release (like from 3.4.x to 3.6.x) this requires a bit more work:
- Change to your current bugzilla directory.
cd custom-bugzilla-3.4.6
- Create a "bundle" of your customizations:
bzr bundle bzr://bzr.mozilla.org/bugzilla/3.4 > customizations.bundle
(Note that we used "3.4" in that URL, because our current major version is 3.4.) - Check out a copy of the version you want to move to:
bzr branch -r tag:bugzilla-3.6.1 bzr://bzr.mozilla.org/bugzilla/3.6 bugzilla-3.6.1
(In this case, we're moving to 3.6.1.) - Change to the new bugzilla directory:
cd bugzilla-3.6.1
- Merge in your customizations that were stored in
customizations.bundle:bzr merge ../customizations.bundle
- Resolve any conflicts, and commit.