Bugzilla:Bzr:Porting Forward Customizations

From MozillaWiki
Revision as of 15:35, 14 May 2010 by MaxKanatAlexander (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 want to use bzr merge you can, also. (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:

  1. Change to your current bugzilla directory.
    cd custom-bugzilla-3.4.6
  2. 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.)
  3. 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.)
  4. Change to the new bugzilla directory:
    cd bugzilla-3.6.1
  5. Merge in your customizations that were stored in customizations.bundle:
    bzr merge ../customizations.bundle
  6. Resolve any conflicts, and commit.