39
39
In this document, we're talking about source releases only, packages and
40
40
installers are built from this but we won't talk about them here.
42
Every release is part of a series, ``brz-2.4.1`` is part of series ``2.4``.
42
Every release is part of a series, ``bzr-2.4.1`` is part of series ``2.4``.
44
44
We do two different kind of releases: the betas releases and the stable
45
45
releases for a given series.
47
For a given series, releases will be done to deliver new versions of brz to
47
For a given series, releases will be done to deliver new versions of bzr to
48
48
different kinds of users:
50
50
#. beta releases: named ``x.ybn`` where ``x.y`` is the series and ``n``
115
115
To start a new series cycle:
117
#. Create a new series ``x.y`` at <https://launchpad.net/brz/+addseries>.
117
#. Create a new series ``x.y`` at <https://launchpad.net/bzr/+addseries>.
119
#. Add milestones at <https://launchpad.net/brz/x.y/+addmilestone> to that
119
#. Add milestones at <https://launchpad.net/bzr/x.y/+addmilestone> to that
120
120
series for the beta releases and the stable series mentioning their
121
121
expected dates. Only the milestone associated to the next release in
122
122
this series should be left active to avoid clutter when targeting bugs.
166
166
``x.y`` is the series for your release). **Or use hydrazine for easier
167
167
setup** ``~/.bazaar/locations.conf``::
169
[/home/mbp/brz/x.y-dev]
169
[/home/mbp/bzr/x.y-dev]
170
170
pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
171
submit_branch = http://bazaar.launchpad.net/~brz-pqm/brz/x.y
172
parent_branch = http://bazaar.launchpad.net/~brz-pqm/brz/x.y
171
submit_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
172
parent_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
173
173
public_branch = http://bazaar.example.com/x.y-dev
174
174
submit_to = bazaar@lists.canonical.com
175
175
smtp_server = mail.example.com:25
177
177
Please see <http://doc.bazaar.canonical.com/developers/HACKING.html#an-overview-of-pqm>
178
178
for more details on PQM
180
#. Update the version number in the ``brz`` script, and the
181
``breezy/__init__.py`` file::
180
#. Update the version number in the ``bzr`` script, and the
181
``bzrlib/__init__.py`` file::
183
183
version_info = (x, y, z, 'dev', 0)
189
189
#. Update the "What's New" documents in ``doc/en/whats-new``.
191
191
#. Make sure a milestone exists for your release and that it is active,
192
<https://launchpad.net/brz/x.y> lists the existing milestones,
193
<https://launchpad.net/brz/x.y/x.y.z/+edit> allows you to toggle the
192
<https://launchpad.net/bzr/x.y> lists the existing milestones,
193
<https://launchpad.net/bzr/x.y/x.y.z/+edit> allows you to toggle the
196
196
#. Commit this and send it to PQM.
205
205
#. Check that there is a milestone for the release you're doing. If there
206
206
is no milestone it indicates a process problem - make the milestone but
207
207
also mail the list to raise this issue in our process. Milestones are
208
found at <https://launchpad.net/brz/+milestone/x.y.z>.
208
found at <https://launchpad.net/bzr/+milestone/x.y.z>.
210
210
#. Merge into your branch all previous stable series fixes that haven't been
211
211
merged yet. For example, if you're releasing 2.6.x, make sure the fixes
212
212
on 2.5, 2.4, 2.3, etc have already been merged up::
216
216
and commit that merge in its own commit. This should happen only if the
217
217
devs landing changes in previous releases forgot to merge them up. Since
219
219
their duties ;) If you feel unsafe resolving the conflicts or it's too
220
220
time consuming, contact the related devs and skip this merge.
222
#. In the release branch, update ``version_info`` in ``./breezy/__init__.py``.
222
#. In the release branch, update ``version_info`` in ``./bzrlib/__init__.py``.
223
223
Make sure the corresponding milestone exists.
224
Double check that ./brz ``_script_version`` matches ``version_info``. Check
225
the output of ``./brz --version``.
224
Double check that ./bzr ``_script_version`` matches ``version_info``. Check
225
the output of ``./bzr --version``.
227
227
For beta releases use::
242
242
the right section. For example, if you're releasing 2.6b2, the following
243
243
command should display a a single chuk diff for the 2.6b2 release::
245
brz diff -rbrz-2.6b2.. doc/en/release-notes/brz-2.6.txt
245
bzr diff -rbzr-2.6b2.. doc/en/release-notes/bzr-2.6.txt
247
247
Fill out the date and a description of the release under the existing
248
248
header (the diff above will help you summarizing). If there isn't one,
259
259
* the date of this first release,
260
260
* until when the series is expected to be supported.
262
Looking at ``brz annotate`` for previous series should give you the right
262
Looking at ``bzr annotate`` for previous series should give you the right
263
263
hints. The ``doc/en/_templates/index.html`` file should also be updated.
265
265
#. To check that all bugs mentioned in the release notes are actually
266
266
marked as closed in Launchpad, you can run
267
267
``tools/check-newsbugs.py``::
269
./tools/check-newsbugs.py doc/en/release-notes/brz-x.y.txt
269
./tools/check-newsbugs.py doc/en/release-notes/bzr-x.y.txt
271
271
As of 2011-07-18, all bugs mentioned in the output of the script requires
272
272
some sort of intervention (either changing the status if it's not 'Fix
287
287
#. For stable releases update the translations::
289
brz merge lp:~brz-core/brz/brz-translations-export-x.y
289
bzr merge lp:~bzr-core/bzr/bzr-translations-export-x.y
291
291
#. Commit these changes to the release branch, using a command like::
293
brz commit -m "Release 2.3.1"
293
bzr commit -m "Release 2.3.1"
295
295
The diff before you commit will be something like::
297
=== modified file 'breezy/__init__.py'
298
--- breezy/__init__.py 2011-02-09 06:35:00 +0000
299
+++ breezy/__init__.py 2011-03-10 10:24:47 +0000
297
=== modified file 'bzrlib/__init__.py'
298
--- bzrlib/__init__.py 2011-02-09 06:35:00 +0000
299
+++ bzrlib/__init__.py 2011-03-10 10:24:47 +0000
300
300
@@ -52,7 +52,7 @@
301
301
# Python version 2.0 is (2, 0, 0, 'final', 0)." Additionally we use a
302
302
# releaselevel of 'dev' for unreleased under-development code.
307
307
# API compatibility version
308
308
api_minimum_version = (2, 3, 0)
310
=== modified file 'doc/en/release-notes/brz-2.3.txt'
311
--- doc/en/release-notes/brz-2.3.txt 2011-03-09 08:30:16 +0000
312
+++ doc/en/release-notes/brz-2.3.txt 2011-03-10 10:40:47 +0000
310
=== modified file 'doc/en/release-notes/bzr-2.3.txt'
311
--- doc/en/release-notes/bzr-2.3.txt 2011-03-09 08:30:16 +0000
312
+++ doc/en/release-notes/bzr-2.3.txt 2011-03-10 10:40:47 +0000
313
313
@@ -8,23 +8,10 @@
317
317
-:2.3.1: NOT RELEASED YET
344
344
+++ doc/en/whats-new/whats-new-in-2.3.txt 2011-03-10 11:10:36 +0000
345
345
@@ -17,8 +17,13 @@
346
346
improvements made to the core product, it highlights enhancements within the
347
broader Breezy world of potential interest to those upgrading.
347
broader Bazaar world of potential interest to those upgrading.
349
-Breezy 2.3.0 is fully compatible both locally and on the network with 2.0 2.1,
349
-Bazaar 2.3.0 is fully compatible both locally and on the network with 2.0 2.1,
350
350
-and 2.2, and can read and write repositories generated by all previous
351
+Breezy 2.3.1 includes all the fixes in the un-released 2.0.7, 2.1.4 and 2.2.5
351
+Bazaar 2.3.1 includes all the fixes in the un-released 2.0.7, 2.1.4 and 2.2.5
352
352
+versions that weren't included in 2.3.0 and fixes some bugs on its own.
354
354
+See the :doc:`../release-notes/index` for details.
356
+Breezy 2.3 is fully compatible both locally and on the network with 2.0, 2.1,
356
+Bazaar 2.3 is fully compatible both locally and on the network with 2.0, 2.1,
357
357
+and 2.2. It can read and write repositories generated by all previous
363
363
#. Tag the new release::
367
#. Push those changes to a brz branch that is public and accessible on the
367
#. Push those changes to a bzr branch that is public and accessible on the
368
368
Internet. PQM will pull from this branch when it attempts to merge your
369
369
changes. Then submit those changes to PQM for merge into the appropriate
373
brz pqm-submit -m "(vila) Release 2.6.0 (Vincent Ladeuil)"
373
bzr pqm-submit -m "(vila) Release 2.6.0 (Vincent Ladeuil)"
375
Note that ``brz push`` should mention updating one tag (which you just
375
Note that ``bzr push`` should mention updating one tag (which you just
376
376
created). If it doesn't, double-check that you created (and pushed) this
379
379
Or with hydrazine::
381
brz lp-propose -m "Release 1.14" --approve lp:brz/1.14
381
bzr lp-propose -m "Release 1.14" --approve lp:bzr/1.14
384
384
#. When PQM succeeds, pull down the master release branch.
400
400
locally installed plugins. Use your own judgment to decide if you can
401
401
release with these failures. When in doubt, disable the faulty plugins
402
402
one by one until you get no more failures. Alternatively, you can use
403
``BRZ_DISABLE_PLUGINS`` or ``BRZ_PLUGIN_PATH=-site`` to disable one or
403
``BZR_DISABLE_PLUGINS`` or ``BZR_PLUGIN_PATH=-site`` to disable one or
406
406
Until <http://pad.lv/839461> is fixed, you may encounter issues if you
411
411
export TTPATH=<local branch of lp:testtools -r 0.9.2>
412
412
export SUPATH=<local branch of lp:subunit -r 0.0.6>
413
PYTHONPATH=$TTPATH:$SUPATH/python PATH=$SUPATH/filters:${PATH} BRZ_PLUGIN_PATH=-site make check-dist-tarball PYTHON=python2.6 | subunit2pyunit
413
PYTHONPATH=$TTPATH:$SUPATH/python PATH=$SUPATH/filters:${PATH} BZR_PLUGIN_PATH=-site make check-dist-tarball PYTHON=python2.6 | subunit2pyunit
415
415
Remember that PQM has just tested everything too, this step is
416
particularly testing that the cython extensions, which are updated
417
by your local cython version when you run make dist, are in good
416
particularly testing that the pyrex extensions, which are updated
417
by your local pyrex version when you run make dist, are in good
421
421
Publishing the source tarball
422
422
-----------------------------
424
#. Go to the relevant <https://launchpad.net/brz/x.y> series page in Launchpad.
424
#. Go to the relevant <https://launchpad.net/bzr/x.y> series page in Launchpad.
426
426
#. Create a release of the milestone, and upload the source tarball and
427
427
the GPG signature. Or, if you prefer, use the
428
428
``tools/packaging/lp-upload-release`` script to do this. Note that
429
this changes what the download widget on the Launchpad brz home
429
this changes what the download widget on the Launchpad bzr home
430
430
page shows, so don't stop the release process yet, or platform binary
431
431
installers won't be made and the download list will stay very small!
432
432
<https://bugs.launchpad.net/launchpad/+bug/586445>
443
443
they do, they either targeted the wrong branch or didn't update the news
444
444
file correctly, so the sooner the branch is opened again, the better.
446
This matters more for ``lp:brz`` than for ``lp:brz/x.y``, ``lp:brz`` should
446
This matters more for ``lp:bzr`` than for ``lp:bzr/x.y``, ``lp:bzr`` should
447
447
always be open for landing, so you should do `At the start of a release
448
cycle`_ as soon as possible (i.e. update the version number in ``brz`` and
449
``breezy/__init__``, create/update the news files and create/update the
448
cycle`_ as soon as possible (i.e. update the version number in ``bzr`` and
449
``bzrlib/__init__``, create/update the news files and create/update the
450
450
milestone for the next relase).
452
452
You may also need to do `At the start of a series cycle`_ if you're starting
458
458
A word of caution: the instructions above works well for all releases but
459
459
there is one special case that requires a bit more care: when you release
460
the *last* beta for a given ``x.y`` series (from trunk aka lp:brz), you need
460
the *last* beta for a given ``x.y`` series (from trunk aka lp:bzr), you need
461
461
to setup *two* branches for the next cycle:
463
#. ``lp:brz`` needs to be opened for the next *series* ``x.(y+1)``.
463
#. ``lp:bzr`` needs to be opened for the next *series* ``x.(y+1)``.
465
#. ``lp:brz/x.y`` needs to be opened for the next *release* ``x.y.0`` in the
466
series. Since this is first real use of ``lp:brz/x.y``, this is also the
465
#. ``lp:bzr/x.y`` needs to be opened for the next *release* ``x.y.0`` in the
466
series. Since this is first real use of ``lp:bzr/x.y``, this is also the
467
467
deadline for the PQM branch to be created.
469
Both are important as ``lp:brz`` should remain open so any change can be
470
landed, ``lp:brz/x.y`` on the other hand should be ready to receive bug
469
Both are important as ``lp:bzr`` should remain open so any change can be
470
landed, ``lp:bzr/x.y`` on the other hand should be ready to receive bug
473
``lp:brz`` is generally more important as the bug fixes on ``lp:brz/x.y``
473
``lp:bzr`` is generally more important as the bug fixes on ``lp:bzr/x.y``
474
474
won't be released sooner than a month from now whereas people may already
475
been waiting to land on ``lp:brz``.
475
been waiting to land on ``lp:bzr``.
479
#. Open ``lp:brz`` for ``x.(y+1)``
479
#. Open ``lp:bzr`` for ``x.(y+1)``
481
481
#. Create or update the ``x.y`` PQM branch based on whatever revision you
482
482
want to release. Since it takes time to create the PQM branch for the new
483
483
series you should plan to get it created a few days before you need it
484
484
and seed it with the revision from trunk you want to base your release of
485
485
(ask a LOSA for pulling this revision from trunk and pushing it to the
486
series branch (``lp:brz/x.y``) when you're ready).
488
#. Release ``x.y.0`` from ``lp:brz/x.y``
490
#. Open ``lp:brz/x.y`` for bug fixes
486
series branch (``lp:bzr/x.y``) when you're ready).
488
#. Release ``x.y.0`` from ``lp:bzr/x.y``
490
#. Open ``lp:bzr/x.y`` for bug fixes
492
492
You also need to ensure Launchpad is set up to import/export translations
493
493
for the new branch and inform translators.
495
495
#. Push the last beta release to a new branch::
497
brz push lp:~brz-core/brz/brz-translations-export-x.y
497
bzr push lp:~bzr-core/bzr/bzr-translations-export-x.y
499
499
#. On the translations series synchronization settings page
500
<https://translations.launchpad.net/brz/x.y/+translations-settings>
500
<https://translations.launchpad.net/bzr/x.y/+translations-settings>
501
501
turn on ``Import template files`` then for exports click ``Choose a
502
502
target branch`` and point it at the branch you just pushed.
504
#. E-mail translators to announce that the forthcoming stable release of brz
504
#. E-mail translators to announce that the forthcoming stable release of bzr
505
505
is ready for translations. Send to
506
506
``launchpad-translators@lists.launchpad.net`` and
507
507
``ubuntu-translators@lists.ubuntu.com``.
513
513
----------------------------
515
515
#. Post to the ``bazaar@lists.canonical.com`` and
516
``brz-packagers@lists.launchpad.net`` lists, saying that the source has
516
``bzr-packagers@list.launchpad.net`` lists, saying that the source has
517
517
been frozen. Be extra clear that this is only a *source* release targeted
518
518
at packagers and installer builders (see
519
519
<https://bugs.launchpad.net/launchpad/+bug/645084>). This is the cue for
541
541
we have a releasable product. The next step is to make it generally
542
542
available to the world.
544
#. Go to the release web page at <https://launchpad.net/brz/x.y/x.y.z>
544
#. Go to the release web page at <https://launchpad.net/bzr/x.y/x.y.z>
546
#. Announce on the Breezy website.
546
#. Announce on the `Bazaar website <http://bazaar.canonical.com/>`_. This
547
page is edited in ``build.py`` in the lp:bzr-website branch. (Changes
548
pushed to this branch are refreshed by a cron job on escudero.)
548
550
#. Check that the documentation for this release is available in
549
551
<http://doc.bazaar.canonical.com>. It should be automatically build when
550
the branch is created, by a cron script ``update-brz-docs`` on
552
the branch is created, by a cron script ``update-bzr-docs`` on
551
553
``escudero``. When the first release is created in a new series, a branch
552
needs to be created on ``escudero``::
554
needs to be created on zhongshan::
554
ssh escudero.canonical.com
556
ssh zhongshan.canonical.com
556
558
cd /srv/doc.bazaar.canonical.com/
557
brz branch lp:brz/2.7 brz/brz.2.7
559
And the ``brz/bin/update-brz-docs`` script needs to refer to it.
561
The ``lp:brz-alldocs`` branch also needs to be updated when a new series
559
bzr branch http://bazaar.launchpad.net/~bzr-pqm/bzr/2.6 bzr/bzr.2.6
561
And the ``bzr/bin/update-bzr-docs`` script needs to refer to it.
563
The ``lp:bzr-alldocs`` branch also needs to be updated when a new series
562
564
is introduced, see the ``README`` file there for more instructions
563
565
(looking at the branch history is also a good way to understand what
564
566
needs to be done and to document any policy changes).
583
585
The announce mail will look something like this::
585
Subject: brz x.y.z released!
587
The Breezy team is happy to announce availability of a new
588
release of the brz adaptive version control system.
590
Breezy is a fork of the Bazaar version control system.
587
Subject: bzr x.y.z released!
589
The Bazaar team is happy to announce availability of a new
590
release of the bzr adaptive version control system.
592
Bazaar <http://bazaar.canonical.com/> is a Canonical project and part
593
of the GNU project <http://gnu.org/> to produce a free operating
592
596
<<Summary paragraph from news>>
594
598
Thanks to everyone who contributed patches, suggestions, and
597
Breezy is now available for download from
598
https://launchpad.net/brz/x.y/x.y.z/ as a source tarball; packages
601
Bazaar is now available for download from
602
https://launchpad.net/bzr/x.y/x.y.z/ as a source tarball; packages
599
603
for various systems will be available soon.
601
605
<<release notes from this release back to the last major release>>
603
607
Feel free to tweak this to your taste.
605
#. Make an announcement through <https://launchpad.net/brz/+announce>
606
mentioning the milestone URL <https://launchpad.net/brz/+milestone/x.y.z>
609
#. Make an announcement through <https://launchpad.net/bzr/+announce>
610
mentioning the milestone URL <https://launchpad.net/bzr/+milestone/x.y.z>
607
611
so people get an easy access to details.
609
613
#. Announce on https://freecode.com/projects/bazaar-vcs
627
631
can still access the releases notes via the ``Release Notes`` URL in
628
632
the ``Links`` box in the upper right area of the page. When doing the
629
633
first stable release in a series, delete the ``Unstable installers``
630
<https://launchpad.net/brz/x.y/x.ybn> and ``Unstable source tarball``
631
<http://launchpad.net/brz/x.y/x.ybn/+download/brz-x.ybn.tar.gz>
634
<https://launchpad.net/bzr/x.y/x.ybn> and ``Unstable source tarball``
635
<http://launchpad.net/bzr/x.y/x.ybn/+download/bzr-x.ybn.tar.gz>
632
636
links. Conversely, when creating the first beta in a development
633
637
series, create these links again. Check all links when doing other
634
638
kinds of release.
636
#. Update `<http://en.wikipedia.org/wiki/Breezy_(software)>`_ -- this should
640
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
637
641
be done for the stable and beta releases.
639
#. Update the python package index: <http://pypi.python.org/pypi/brz>
641
From the tarball created and tested earlier ::
643
twine upload -s ../brz-2.7.0.tar.gz
643
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
646
python setup.py register
645
648
Remember to check the results afterward -- this should be done for
646
649
stable releases but not for beta releases nor SRUs.
648
The ``twine`` command is provided by the ``twine`` package on Debian and
651
If in doubt, you can test with <https://testpypi.python.org/pypi> where
652
you can register yourself, register the brz project and upload (and then
653
remove the upload and delete the project so a new release manager can
654
enjoy the same facilities). If the project already exists, have one of
655
the existing owners of the project add you to the group.
657
To use the pypi test site, you need to record your credentials for an
658
existing user (the registration process is manual and starts at
659
<https://testpypi.python.org/pypi?%3Aaction=register_form>.
661
Once registered, you can record your crdentials in your ``~/pypirc`` file
665
username:<login on testpypi>
666
password:<password on testpypi>
667
repository = https://testpypi.python.org/pypi
669
Registering the brz project if doesn't exist is achieved with::
671
python setup.py -r https://testpypi.python.org/pypi register
673
Uploading is done with::
675
twine upload -r testpypi -s ../brz-2.7.0.tar.gz
677
To be able to upload the release you must create an account on
678
<http://pypi.python.org/pypi> and have one of the existing owners of the
679
project add you to the group and update your ``[pypi]`` section in your
651
To be able to register the release you must create an account on
652
<http://pypi.python.org/pypi> and have one of the existing owners of
653
the project add you to the group.
683
656
Merging the released code back to trunk
687
660
changes should be merged into the right place because each release series
688
661
has its own release-notes file, but double-check.
690
If it's not already done, advance the version number in ``brz`` and
691
``breezy/__init__.py``. Submit this back into pqm for brz.dev.
663
If it's not already done, advance the version number in ``bzr`` and
664
``bzrlib/__init__.py``. Submit this back into pqm for bzr.dev.
693
666
As soon as you change the version number in trunk, make sure you have
694
667
created the corresponding milestone to ensure the continuity in bug
715
688
-------------------------------
717
690
(Feel free to propose or add new sections here about what we should do to
718
get brz into other places.)
691
get bzr into other places.)
720
693
For the currently-under-development release of Ubuntu, no special action
721
694
is needed: the release should be picked by Debian and synced from there into
724
Releases off stable brz branches should go in to the ``-updates`` of the
697
Releases off stable bzr branches should go in to the ``-updates`` of the
725
698
Ubuntu release that originally contained that branch. (Ubuntu Lucid had
726
brz 2.2.0, so should get every 2.2.x update.) This means going through
699
bzr 2.2.0, so should get every 2.2.x update.) This means going through
727
700
the `SRU (Stable Release Updates)
728
701
<https://wiki.ubuntu.com/StableReleaseUpdates>`__ process.
730
Since September 2010, brz has received approval by the technical
703
Since September 2010, bzr has received approval by the technical
731
704
board for the `MicroReleaseExceptions
732
705
<https://wiki.ubuntu.com/StableReleaseUpdates/MicroReleaseExceptions>`__
733
706
category so that whole bugfix releases can more easily be
737
710
<http://wiki.bazaar.canonical.com/UbuntuStableReleaseUpdates>`_
740
**After making a brz stable-release release, nominate the most serious bug
713
**After making a bzr stable-release release, nominate the most serious bug
741
714
for the appropriate Ubuntu release and subscribe the `ubuntu-sru` team.**
743
716
This requires a couple of tricks (please reconsider and tweak as things
744
717
evolves from one release to the other):
746
719
* create a distro task with the ``Also affects distribution`` button and
747
select ``brz (Ubuntu)``.
720
select ``bzr (Ubuntu)``.
749
* change the *URL* to point to ``ubuntu/+source/brz`` instead of ``brz``
722
* change the *URL* to point to ``ubuntu/+source/bzr`` instead of ``bzr``
750
723
(this is needed if you create the distro task but not if it exists
751
724
already). You should now be able to click the ``Nominate for release``
752
725
button and select the right Ubuntu release. As of September 2010, this