canmove, Confirmed users
345
edits
(Add information about doing updates) |
|||
Line 34: | Line 34: | ||
<pre>bzr co http://bzr.mozilla.org/bugzilla/trunk bugzilla</pre> | <pre>bzr co http://bzr.mozilla.org/bugzilla/trunk bugzilla</pre> | ||
= Updating to a Newer Release = | |||
There are two types of updates: updating from one minor release to another (like 3.4.1 to 3.4.2) and updating from one major release to another (like from 3.4.x to 3.6.x). | |||
== Minor Updates == | |||
If you are just updating from one minor release to another (like from 3.4.1 to 3.4.4), all you have to do is change to your bugzilla directory and do: | |||
bzr update -r tag:bugzilla-(version) | |||
Where ''(version)'' is the version number that you want to update to, like <code>3.4.4</code>. So, for example, to update from 3.4.1 to 3.4.4, you would do: | |||
bzr update -r tag:bugzilla-3.4.4 | |||
After running update, if bzr tells you there are any conflicts, you should edit those files and fix the conflicts. | |||
== Major Updates == | |||
If you are updating from one ''major'' release to another (like from 3.4.x to 3.6.x), then the simplest method for upgrading is | |||
bzr switch -r tag:bugzilla-(full version) bzr://bzr.mozilla.org/bugzilla/(major version) | |||
Where ''(full version)'' is the whole version number you want to update to (like <code>3.6.1</code>) and ''(major version)'' is the first two numbers in the version (so, if you were updating to 3.6.1, the "major version" would be <code>3.6</code>.) So, for example, to update from 3.4.6 to 3.6.1, you would do: | |||
bzr switch -r tag:bugzilla-3.6.1 bzr://bzr.mozilla.org/bugzilla/3.6 | |||
However, '''if you have committed customizations to your bugzilla directory using bzr commit --local, or used "bzr branch" to check out instead of "bzr checkout", "bzr switch" does not work and should not be used.''' Instead, you should follow the instructions at [[Bugzilla:Bzr:Porting_Foward_Customizations]]. | |||
= Creating Patches With Bzr = | = Creating Patches With Bzr = |