Commit 248bb8b7 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 730032: The documentation must mention bzr instead of cvs in the "Upgrading…

Bug 730032: The documentation must mention bzr instead of cvs in the "Upgrading to New Releases" section r=dkl a=LpSolit
parent a9f0a3f3
...@@ -2018,21 +2018,22 @@ chmod o+x . data data/webdot ...@@ -2018,21 +2018,22 @@ chmod o+x . data data/webdot
<section id="upgrade"> <section id="upgrade">
<title>Upgrading to New Releases</title> <title>Upgrading to New Releases</title>
<para>Upgrading to new Bugzilla releases is very simple. There is <para>Upgrading to new Bugzilla releases is very simple. There is
a script included with Bugzilla that will automatically a script named <filename>checksetup.pl</filename> included with
do all of the database migration for you.</para> Bugzilla that will automatically do all of the database migration
for you.</para>
<para>The following sections explain how to upgrade from one <para>The following sections explain how to upgrade from one
version of Bugzilla to another. Whether you are upgrading version of Bugzilla to another. Whether you are upgrading
from one bug-fix version to another (such as 3.0.1 to 3.0.2) from one bug-fix version to another (such as 4.2 to 4.2.1)
or from one major version to another (such as from 3.0 to 3.2), or from one major version to another (such as from 4.0 to 4.2),
the instructions are always the same.</para> the instructions are always the same.</para>
<note> <note>
<para> <para>
Any examples in the following sections are written as though the Any examples in the following sections are written as though the
user were updating to version 2.22.1, but the procedures are the user were updating to version 4.2.1, but the procedures are the
same no matter what version you're updating to. Also, in the same no matter what version you're updating to. Also, in the
examples, the user's Bugzilla installation is found at examples, the user's Bugzilla installation is found at
<filename>/var/www/html/bugzilla</filename>. If that is not the <filename>/var/www/html/bugzilla</filename>. If that is not the
...@@ -2128,10 +2129,10 @@ chmod o+x . data data/webdot ...@@ -2128,10 +2129,10 @@ chmod o+x . data data/webdot
<variablelist> <variablelist>
<varlistentry> <varlistentry>
<term>CVS (<xref linkend="upgrade-cvs"/>)</term> <term>Bzr (<xref linkend="upgrade-bzr"/>)</term>
<listitem> <listitem>
<para> <para>
If have <command>cvs</command> installed on your machine If you have <command>bzr</command> installed on your machine
and you have Internet access, this is the easiest way to and you have Internet access, this is the easiest way to
upgrade, particularly if you have made modifications upgrade, particularly if you have made modifications
to the code or templates of Bugzilla. to the code or templates of Bugzilla.
...@@ -2156,12 +2157,12 @@ chmod o+x . data data/webdot ...@@ -2156,12 +2157,12 @@ chmod o+x . data data/webdot
<para> <para>
If you have made modifications to your Bugzilla, and If you have made modifications to your Bugzilla, and
you don't have Internet access or you don't want to use you don't have Internet access or you don't want to use
cvs, then this is the best way to upgrade. bzr, then this is the best way to upgrade.
</para> </para>
<para> <para>
You can only do minor upgrades (such as 3.0 to 3.0.1 or You can only do minor upgrades (such as 4.2 to 4.2.1 or
3.0.1 to 3.0.2) with patches. 4.2.1 to 4.2.2) with patches.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -2181,8 +2182,8 @@ chmod o+x . data data/webdot ...@@ -2181,8 +2182,8 @@ chmod o+x . data data/webdot
<para> <para>
The larger the jump you are trying to make, the more difficult it The larger the jump you are trying to make, the more difficult it
is going to be to upgrade if you have made local customizations. is going to be to upgrade if you have made local customizations.
Upgrading from 3.0 to 3.0.1 should be fairly painless even if Upgrading from 4.2 to 4.2.1 should be fairly painless even if
you are heavily customized, but going from 2.18 to 3.0 is going you are heavily customized, but going from 2.18 to 4.2 is going
to mean a fair bit of work re-writing your local changes to use to mean a fair bit of work re-writing your local changes to use
the new files, logic, templates, etc. If you have done no local the new files, logic, templates, etc. If you have done no local
changes at all, however, then upgrading should be approximately changes at all, however, then upgrading should be approximately
...@@ -2191,41 +2192,53 @@ chmod o+x . data data/webdot ...@@ -2191,41 +2192,53 @@ chmod o+x . data data/webdot
</para> </para>
</section> </section>
<section id="upgrade-cvs"> <section id="upgrade-bzr">
<title>Upgrading using CVS</title> <title>Upgrading using Bzr</title>
<para> <para>
This requires that you have cvs installed (most Unix machines do), This requires that you have bzr installed (most Unix machines do),
and requires that you are able to access cvs-mirror.mozilla.org and requires that you are able to access
on port 2401, which may not be an option if you are behind a <ulink url="http://bzr.mozilla.org/bugzilla/">bzr.mozilla.org</ulink>,
highly restrictive firewall or don't have Internet access. which may not be an option if you don't have Internet access.
</para> </para>
<para> <para>
The following shows the sequence of commands needed to update a The following shows the sequence of commands needed to update a
Bugzilla installation via CVS, and a typical series of results. Bugzilla installation via Bzr, and a typical series of results.
These commands assume that you already have Bugzilla installed
using Bzr.
</para> </para>
<warning>
<para>
If your installation is still using CVS, you must first convert
it to Bzr. A very detailed step by step documentation can be
found on <ulink url="https://wiki.mozilla.org/Bugzilla:Moving_From_CVS_To_Bazaar">wiki.mozilla.org</ulink>.
</para>
</warning>
<programlisting> <programlisting>
bash$ <command>cd /var/www/html/bugzilla</command> bash$ <command>cd /var/www/html/bugzilla</command>
bash$ <command>cvs login</command> bash$ <command>bzr switch 4.2</command> (only run this command when not yet running 4.2)
Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401/cvsroot bash$ <command>bzr up -r tag:bugzilla-4.2.1</command>
CVS password: <emphasis>('anonymous', or just leave it blank)</emphasis> +N extensions/MoreBugUrl/
bash$ <command>cvs -q update -r BUGZILLA-2_22_1 -dP</command> +N extensions/MoreBugUrl/Config.pm
P checksetup.pl +N extensions/MoreBugUrl/Extension.pm
P collectstats.pl ...
P docs/rel_notes.txt M Bugzilla/Attachment.pm
P template/en/default/list/quips.html.tmpl M Bugzilla/Attachment/PatchReader.pm
<emphasis>(etc.)</emphasis> M Bugzilla/Bug.pm
...
All changes applied successfully.
</programlisting> </programlisting>
<caution> <caution>
<para> <para>
If a line in the output from <command>cvs update</command> begins If a line in the output from <command>bzr up</command> mentions
with a <computeroutput>C</computeroutput>, then that represents a a conflict, then that represents a file with local changes that
file with local changes that CVS was unable to properly merge. You Bzr was unable to properly merge. You need to resolve these
need to resolve these conflicts manually before Bugzilla (or at conflicts manually before Bugzilla (or at least the portion using
least the portion using that file) will be usable. that file) will be usable.
</para> </para>
</caution> </caution>
</section> </section>
...@@ -2234,7 +2247,7 @@ P template/en/default/list/quips.html.tmpl ...@@ -2234,7 +2247,7 @@ P template/en/default/list/quips.html.tmpl
<title>Upgrading using the tarball</title> <title>Upgrading using the tarball</title>
<para> <para>
If you are unable (or unwilling) to use CVS, another option that's If you are unable (or unwilling) to use Bzr, another option that's
always available is to obtain the latest tarball from the <ulink always available is to obtain the latest tarball from the <ulink
url="http://www.bugzilla.org/download/">Download Page</ulink> and url="http://www.bugzilla.org/download/">Download Page</ulink> and
create a new Bugzilla installation from that. create a new Bugzilla installation from that.
...@@ -2251,18 +2264,18 @@ P template/en/default/list/quips.html.tmpl ...@@ -2251,18 +2264,18 @@ P template/en/default/list/quips.html.tmpl
<programlisting> <programlisting>
bash$ <command>cd /var/www/html</command> bash$ <command>cd /var/www/html</command>
bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22.1.tar.gz</command> bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.2.1.tar.gz</command>
<emphasis>(Output omitted)</emphasis> <emphasis>(Output omitted)</emphasis>
bash$ <command>tar xzvf bugzilla-2.22.1.tar.gz</command> bash$ <command>tar xzvf bugzilla-4.2.1.tar.gz</command>
bugzilla-2.22.1/ bugzilla-4.2.1/
bugzilla-2.22.1/.cvsignore bugzilla-4.2.1/colchange.cgi
<emphasis>(Output truncated)</emphasis> <emphasis>(Output truncated)</emphasis>
bash$ <command>cd bugzilla-2.22.1</command> bash$ <command>cd bugzilla-4.2.1</command>
bash$ <command>cp ../bugzilla/localconfig* .</command> bash$ <command>cp ../bugzilla/localconfig* .</command>
bash$ <command>cp -r ../bugzilla/data .</command> bash$ <command>cp -r ../bugzilla/data .</command>
bash$ <command>cd ..</command> bash$ <command>cd ..</command>
bash$ <command>mv bugzilla bugzilla.old</command> bash$ <command>mv bugzilla bugzilla.old</command>
bash$ <command>mv bugzilla-2.22.1 bugzilla</command> bash$ <command>mv bugzilla-4.2.1 bugzilla</command>
</programlisting> </programlisting>
<warning> <warning>
...@@ -2273,6 +2286,15 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command> ...@@ -2273,6 +2286,15 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command>
</para> </para>
</warning> </warning>
<caution>
<para>
If you have some extensions installed, you will have to copy them
to the new bugzilla directory too. Extensions are located in
<filename>bugzilla/extensions/</filename>. Only copy those you
installed, not those managed by the Bugzilla team.
</para>
</caution>
<para> <para>
This upgrade method will give you a clean install of Bugzilla. This upgrade method will give you a clean install of Bugzilla.
That's fine if you don't have any local customizations that you That's fine if you don't have any local customizations that you
...@@ -2288,15 +2310,15 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command> ...@@ -2288,15 +2310,15 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command>
A patch is a collection of all the bug fixes that have been made A patch is a collection of all the bug fixes that have been made
since the last bug-fix release. since the last bug-fix release.
</para> </para>
<para> <para>
If you are doing a bug-fix upgrade&mdash;that is, one where only the If you are doing a bug-fix upgrade&mdash;that is, one where only the
last number of the revision changes, such as from 2.22 to last number of the revision changes, such as from 4.2 to
2.22.1&mdash;then you have the option of obtaining and applying a 4.2.1&mdash;then you have the option of obtaining and applying a
patch file from the <ulink patch file from the <ulink
url="http://www.bugzilla.org/download/">Download Page</ulink>. url="http://www.bugzilla.org/download/">Download Page</ulink>.
</para> </para>
<para> <para>
As above, this example starts with obtaining the file via the As above, this example starts with obtaining the file via the
command line. If you have already downloaded it, you can omit the command line. If you have already downloaded it, you can omit the
...@@ -2305,21 +2327,21 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command> ...@@ -2305,21 +2327,21 @@ bash$ <command>mv bugzilla-2.22.1 bugzilla</command>
<programlisting> <programlisting>
bash$ <command>cd /var/www/html/bugzilla</command> bash$ <command>cd /var/www/html/bugzilla</command>
bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-2.22-to-2.22.1.diff.gz</command> bash$ <command>wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.2-to-4.2.1.diff.gz</command>
<emphasis>(Output omitted)</emphasis> <emphasis>(Output omitted)</emphasis>
bash$ <command>gunzip bugzilla-2.22-to-2.22.1.diff.gz</command> bash$ <command>gunzip bugzilla-4.2-to-4.2.1.diff.gz</command>
bash$ <command>patch -p1 &lt; bugzilla-2.22-to-2.22.1.diff</command> bash$ <command>patch -p1 &lt; bugzilla-4.2-to-4.2.1.diff</command>
patching file checksetup.pl patching file Bugzilla/Constants.pm
patching file collectstats.pl patching file enter_bug.cgi
<emphasis>(etc.)</emphasis> <emphasis>(etc.)</emphasis>
</programlisting> </programlisting>
<warning> <warning>
<para> <para>
Be aware that upgrading from a patch file does not change the Be aware that upgrading from a patch file does not change the
entries in your <filename class="directory">CVS</filename> directory. entries in your <filename class="directory">.bzr</filename> directory.
This could make it more difficult to upgrade using CVS This could make it more difficult to upgrade using Bzr
(<xref linkend="upgrade-cvs"/>) in the future. (<xref linkend="upgrade-bzr"/>) in the future.
</para> </para>
</warning> </warning>
...@@ -2379,7 +2401,7 @@ bash$ <command>./checksetup.pl</command> ...@@ -2379,7 +2401,7 @@ bash$ <command>./checksetup.pl</command>
<caution> <caution>
<para> <para>
If this is a major upgrade (say, 2.22 to 3.0 or similar), If this is a major upgrade (say, 3.6 to 4.2 or similar),
running <command>checksetup.pl</command> on a large running <command>checksetup.pl</command> on a large
installation (75,000 or more bugs) can take a long time, installation (75,000 or more bugs) can take a long time,
possibly several hours. possibly several hours.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment