The best way to get Bugzilla is to check it out from git:
-:command:`git clone https://git.mozilla.org/bugzilla/bugzilla`
+:command:`git clone --branch bugzilla-X.X-stable https://git.mozilla.org/bugzilla/bugzilla`
-.. todo:: Need to check out stable branch, not master
+Run the above command in your home directory, replacing "X.X" with the 2-digit
+version number of the stable release of Bugzilla that you want - e.g. "4.4".
If that's not possible, you can
`download a tarball of Bugzilla <http://www.bugzilla.org/download/>`_.
The best way to get Bugzilla is to check it out from git:
-:command:`git clone https://git.mozilla.org/bugzilla/bugzilla`
+:command:`git clone --branch bugzilla-X.X-stable https://git.mozilla.org/bugzilla/bugzilla`
-Run the above command in your home directory. This will place Bugzilla in
-the directory :file:`$HOME/bugzilla`.
+Run the above command in your home directory, replacing "X.X" with the 2-digit
+version number of the stable release of Bugzilla that you want - e.g. "4.4".
+This will place Bugzilla in the directory :file:`$HOME/bugzilla`.
If that's not possible, you can
`download a tarball of Bugzilla <http://www.bugzilla.org/download/>`_.
:command:`rm -rf html`
-:command:`git clone https://git.mozilla.org/bugzilla/bugzilla html`
+:command:`git clone --branch bugzilla-X.X-stable https://git.mozilla.org/bugzilla/bugzilla html`
-:command:`cd html`
-
-:command:`git checkout bugzilla-stable`
+(where "X.X" is the 2-digit version number of the stable release of Bugzilla
+that you want - e.g. 4.4)
-You will get a notification about having a detached HEAD. Don't worry,
-your head is still firmly on your shoulders.
-
-.. todo:: is this the right way to get the current bugzilla-stable code? Or
- should we pull directly from a branch?
+:command:`cd html`
Configure MySQL
===============
The best way to get Bugzilla is to check it out from git. Download and install
git from the `git website <http://git-scm.com/download>`_, and then run:
-:command:`git clone https://git.mozilla.org/bugzilla/bugzilla C:\\bugzilla`
+:command:`git clone --branch bugzilla-X.X-stable https://git.mozilla.org/bugzilla/bugzilla C:\\bugzilla`
+
+where "X.X" is the 2-digit version number of the stable release of Bugzilla
+that you want (e.g. 4.4).
The rest of this documentation assumes you have installed Bugzilla into
:file:`C:\\bugzilla`. Adjust paths appropriately if not.
:command:`cd bugzilla-new`
-:command:`git checkout $VERSION`
+:command:`git checkout release-$VERSION`
-Replace $VERSION with the two-digit version number of your current Bugzilla, e.g.
-4.2. These command will automatically switch your checkout to be a copy of
-the latest point release of version $VERSION.
+Replace $VERSION with the three-digit version number of your current Bugzilla,
+e.g. "4.2.2". (If the the final digit would have been a 0, omit it - so use
+"4.4" for the first release in the 4.4 series.)
Save Any Local Customizations
=============================
========================
In the commands below, ``$BUGZILLA_HOME`` represents the directory
-in which Bugzilla is installed.
+in which Bugzilla is installed. Assuming you followed the installation
+instructions and your Bugzilla is a checkout of a stable branch,
+you can get the latest point release of your current version by simply doing:
:command:`cd $BUGZILLA_HOME`
-:command:`git checkout`
-
:command:`git pull`
-.. todo:: What is the best way to pull latest stable?
+If you want to upgrade to a newer release of Bugzilla, then you will
+additionally need to do:
+
+:command:`git checkout bugzilla-X.X-stable`
+
+where "X.X" is the 2-digit version number of the stable version you want to
+upgrade to (e.g. "4.4").
+
+.. note:: Do not attempt to downgrade Bugzilla this way - it won't work.
If you have local code customizations, git will attempt to merge them. If
it fails, then you should implement the plan you came up with when you