/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/releasing.txt

Return mapping in revision_id_bzr_to_foreign() as required by the interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Releasing Bazaar
2
 
================
3
 
 
4
 
This document describes the processes for making and announcing a Bazaar
5
 
release, and managing the release process.  This is just one phase of the 
6
 
`overall development cycle <cycle.html>`_, but it's the most complex part.
7
 
This document gives a checklist you can follow from start to end in one
8
 
go.
9
 
 
10
 
.. contents::
11
 
 
12
 
Preparing the tree for release
13
 
------------------------------
14
 
 
15
 
.. Was previously at http://bazaar-vcs.org/ReleaseChecklist
16
 
 
17
 
#. Make a local branch for preparing this release.  (Only for the first 
18
 
   release in a series, otherwise you should already have a branch.) ::
19
 
 
20
 
     bzr branch trunk prepare-1.6
21
 
 
22
 
#. Configure pqm-submit for this branch, with a section like this in
23
 
   ``~/.bazaar/locations.conf``::
24
 
 
25
 
        [/home/mbp/bzr/prepare-1.4]
26
 
        pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
27
 
        submit_branch = http://bazaar-vcs.org/bzr/bzr.1.4
28
 
        submit_to = bazaar@lists.canonical.com
29
 
 
30
 
#. In the release branch, update  ``version_info`` in
31
 
   ``./bzrlib/__init__.py``.  Check the output of ``bzr --version``.
32
 
 
33
 
#. Add the date and release number to ``./NEWS``
34
 
 
35
 
#. Summarize into one or two paragraphs what's new in this release.
36
 
 
37
 
#. Commit these changes to the release branch, using a command like::
38
 
    
39
 
     bzr commit -m "Release 0.12rc1." 
40
 
   
41
 
   The diff before you commit will be something like::
42
 
 
43
 
     === modified file 'NEWS'
44
 
     --- NEWS        2008-09-17 23:09:18 +0000
45
 
     +++ NEWS        2008-09-23 16:14:54 +0000
46
 
     @@ -4,6 +4,23 @@
47
 
     
48
 
      .. contents::
49
 
     
50
 
     +bzr 1.7 2008-09-23
51
 
     +------------------
52
 
     +
53
 
     +This release includes many bug fixes and a few performance and feature
54
 
     +improvements.  ``bzr rm`` will now scan for missing files and remove them,
55
 
     +like how ``bzr add`` scans for unknown files and adds them. A bit more
56
 
     +polish has been applied to the stacking code. The b-tree indexing code has
57
 
     +been brought in, with an eye on using it in a future repository format.
58
 
     +There are only minor installer changes since bzr-1.7rc2.
59
 
     +
60
 
      bzr 1.7rc2 2008-09-17
61
 
      ---------------------
62
 
     
63
 
     
64
 
     === modified file 'bzrlib/__init__.py'
65
 
     --- bzrlib/__init__.py  2008-09-16 21:39:28 +0000
66
 
     +++ bzrlib/__init__.py  2008-09-23 16:14:54 +0000
67
 
     @@ -41,7 +41,7 @@
68
 
      # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
69
 
      # releaselevel of 'dev' for unreleased under-development code.
70
 
     
71
 
     -version_info = (1, 7, 0, 'candidate', 2)
72
 
     +version_info = (1, 7, 0, 'final', 0)
73
 
     
74
 
     
75
 
      # API compatibility version: bzrlib is currently API compatible with 1.7.
76
 
      
77
 
#. Tag the new release::
78
 
 
79
 
     bzr tag bzr-1.12rc1 
80
 
 
81
 
#. Submit those changes to PQM for merge into the appropriate release
82
 
   branch::
83
 
 
84
 
     bzr push
85
 
     bzr pqm-submit -m "(mbp) prepare 1.6"
86
 
 
87
 
#. When PQM succeeds, pull down the master release branch.
88
 
 
89
 
 
90
 
Making the source tarball
91
 
-------------------------
92
 
 
93
 
#. Change into the source directory and run ::
94
 
  
95
 
     make dist
96
 
 
97
 
   This also makes a zip file, which is easier to access on Microsoft
98
 
   Windows.
99
 
 
100
 
#. Now we'll try expanding this tarball and running the test suite
101
 
   to check for packaging problems::
102
 
 
103
 
     make check-dist-tarball
104
 
 
105
 
 
106
 
Publishing the release
107
 
----------------------
108
 
 
109
 
Now you have the releasable product.  The next step is making it
110
 
available to the world.
111
 
 
112
 
#. In <https://launchpad.net/bzr/> click the "Release series" for this
113
 
   series, to take you to e.g. <https://launchpad.net/bzr/1.1>.  Then
114
 
   click "Register a release", and add information about this release.
115
 
 
116
 
#. Within that release, upload the source tarball and zipfile and the GPG
117
 
   signature.  Or, if you prefer, use the
118
 
   ``tools/packaging/lp-upload-release`` script to do this.
119
 
 
120
 
#. Link from http://bazaar-vcs.org/Download to the tarball and signature.
121
 
 
122
 
#. Announce on the `Bazaar home page <http://bazaar-vcs.org/>`_.
123
 
 
124
 
#. Check that the documentation for this release is available in 
125
 
   <http://doc.bazaar-vcs.org>.  It should be automatically build when the 
126
 
   branch is created, by a cron script ``update-bzr-docs`` on
127
 
   ``escudero``.
128
 
 
129
 
 
130
 
Announcing the release
131
 
----------------------
132
 
 
133
 
Now that the release is publicly available, tell people about it.
134
 
 
135
 
#. Make an announcement mail.
136
 
 
137
 
   For release candidates, this is sent to the ``bazaar-announce`` and
138
 
   ``bazaar`` lists.  For final releases, it should also be cc'd to 
139
 
   ``info-gnu@gnu.org``, ``python-announce-list@python.org``, 
140
 
   ``bug-directory@gnu.org``.  In both cases, it is good to set
141
 
   ``Reply-To: bazaar@lists.canonical.com``, so that people who reply to
142
 
   the announcement don't spam other lists.
143
 
 
144
 
   The announce mail will look something like this:
145
 
   
146
 
    | Subject: bzr x.yy released!
147
 
    | 
148
 
    | <<Summary paragraph from news>>
149
 
    |
150
 
    | The Bazaar team is happy to announce availability of a new 
151
 
    | release of the bzr adaptive version control system.
152
 
    |
153
 
    | Thanks to everyone who contributed patches, suggestions, and
154
 
    | feedback.
155
 
    | 
156
 
    | Bazaar is now available for download from 
157
 
    | http://bazaar-vcs.org/Download as a source tarball; packages 
158
 
    | for various systems will be available soon.
159
 
    | 
160
 
    | <<NEWS section from this release back to the last major release>>
161
 
 
162
 
#. Make an announcement through <https://launchpad.net/bzr/+announce>
163
 
 
164
 
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
165
 
   ensuring the new topic text keeps the project name, web site link, etc.
166
 
 
167
 
#. Announce on http://freshmeat.net/projects/bzr/
168
 
   
169
 
   This should be done for both release candidates and final releases. If
170
 
   you do not have a Freshmeat account yet, ask one of the existing
171
 
   admins.
172
 
 
173
 
#. Update http://en.wikipedia.org/wiki/Bzr -- this should be done for
174
 
   final releases but not for Release Candidates.
175
 
 
176
 
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
177
 
   done by running ::
178
 
 
179
 
       python setup.py register
180
 
 
181
 
   Remember to check the results afterwards.
182
 
 
183
 
   To be able to register the release you must create an account on
184
 
   <http://pypi.python.org/pypi> and have one of the existing owners of
185
 
   the project add you to the group.
186
 
 
187
 
 
188
 
Merging the released code back to trunk
189
 
---------------------------------------
190
 
 
191
 
Merge the release branch back into the trunk.  Check that changes in NEWS
192
 
were merged into the right sections.  If it's not already done, advance
193
 
the version number in ``bzr`` and ``bzrlib/__init__.py``.  Submit this
194
 
back into pqm for bzr.dev.
195
 
 
196
 
 
197
 
See also
198
 
--------
199
 
 
200
 
 * `Packaging into the bzr PPA <ppa.html>`_ to make and publish Ubuntu
201
 
   packages.
202
 
 * `Bazaar Developer Document Catalog <index.html>`_
203
 
 * `Development cycles <cycle.html>`_: things that happen during the cycle
204
 
   before the actual release.
205
 
 
206
 
 
207
 
..
208
 
   vim: filetype=rst textwidth=74 ai shiftwidth=4