70 lines
2.3 KiB
ReStructuredText
70 lines
2.3 KiB
ReStructuredText
The procedure to switch to Git is as follows. The idea is to switch version
|
|
control systems without changing the exact version of Bugzilla you are using,
|
|
to minimise the risk of conflict or problems. Any major upgrade can then
|
|
happen as a separate step.
|
|
|
|
Update Bugzilla To The Latest Point Release
|
|
===========================================
|
|
|
|
It is recommended that you switch to Git while using the latest
|
|
point release for your major version.
|
|
|
|
First, you need to find what version of Bugzilla you are using. It should be
|
|
in the top right corner of the front page but, if not, open the file
|
|
:file:`Bugzilla/Constants.pm` in your Bugzilla directory and search for
|
|
:code:`BUGZILLA_VERSION`.
|
|
|
|
Then, you need to find out what the latest point release for that major
|
|
version of Bugzilla is. The
|
|
`Bugzilla download page <http://www.bugzilla.org/download/>`_
|
|
should tell you that for supported versions. For versions out of support, here
|
|
is a list of the final point releases:
|
|
|
|
* 3.6.13
|
|
* 3.4.14
|
|
* 3.2.10
|
|
* 3.0.11
|
|
* 2.22.7
|
|
* 2.20.7
|
|
* 2.18.6
|
|
* 2.16.11
|
|
* 2.14.5
|
|
|
|
If you are not currently running the latest point release, you should use the
|
|
following update command:
|
|
|
|
|updatecommand|
|
|
|
|
Where you replace $VERSION by the version number of the latest point release.
|
|
Then run checksetup to upgrade your database:
|
|
|
|
:command:`./checksetup.pl`
|
|
|
|
You should then test your Bugzilla carefully, or just use it for a day or two,
|
|
to make sure it's all still working fine.
|
|
|
|
.. _get-from-git:
|
|
|
|
Download Code from Git
|
|
======================
|
|
|
|
Download a copy of your current version of Bugzilla from the git repository
|
|
into a separate directory alongside your existing Bugzilla installation
|
|
(which we will assume is in a directory called :file:`bugzilla`).
|
|
|
|
You will need a copy of the git program. All Linux distributions have it;
|
|
search your package manager for "git". On Windows or Mac OS X, you can
|
|
`download the official build <http://www.git-scm.com/downloads>`_.
|
|
|
|
Once git is installed, run these commands to pull a copy of Bugzilla:
|
|
|
|
:command:`git clone https://git.mozilla.org/bugzilla/bugzilla bugzilla-new`
|
|
|
|
:command:`cd bugzilla-new`
|
|
|
|
:command:`git checkout $VERSION`
|
|
|
|
Replace $VERSION with the two-digit version number of your current Bugzilla, e.g.
|
|
4.2. These command will automatically change your version to the latest
|
|
point release of version $VERSION.
|