1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
*************************
What's New in Bazaar 2.2?
*************************
Bazaar 2.2.0, released on the 6th of August 2010, marks the start of
another long-term-stable series. From here, we will only make bugfix
releases on the 2.2 series (2.2.1, etc), while 2.3 will become our new
development series. The 2.0 and 2.1 series will also continue to get
bugfixes. (Currently 2.0 is planned to be supported for another 6 months.)
Users are encouraged to upgrade from the other stable series. This
document outlines the improvements in Bazaar 2.2 vs Bazaar 2.1. As well as
summarizing improvements made to the core product, it highlights
enhancements within the broader Bazaar world of potential interest to
those upgrading.
Bazaar 2.2.0 includes all the fixes from 2.1.2 and 2.0.6.
Over 120 bugs have been fixed in total. See the
:doc:`../release-notes/index` for a full list.
Bazaar 2.2.0 is fully compatible both locally and on the network with 2.0
and 2.1, and can read and write repositories generated by all previous
versions.
Behaviour changes
*****************
There are some compatibility changes in this release.
* For commandline users we no longer guess user identity for ``bzr
commit``: users must specify their identity using ``bzr whoami`` (you
don't need to specify your identity for readonly operations).
This avoids problems where the previous guessed default caused commits
be recorded as coming from, for example ``<sam@localhost>``.
Improved conflict handling
**************************
Tree-shape conflicts can be resolved by providing ``--take-this`` and
``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
as resolved is still accessible via the ``--done`` default action.
Local performance
*****************
* ``bzr init`` does not recursively scan directory contents anymore
leading to faster init for directories with existing content.
(Martin [gz], Parth Malwankar, #501307)
* Less code is loaded at startup, so there's less overhead on running all
bzr commands.
(Andrew Bennetts, Martin Pool)
* Reduce peak memory by one copy of compressed text.
(John Arbash Meinel, #566940)
* Avoid repeated locking of local objects in ``diff``, ``missing``, and
``pull``, so those options are faster.
(Andrew Bennetts)
Network performance
*******************
* Bazaar now reads data from SSH connections more efficiently on platforms
that provide the ``socketpair`` function, and when using paramiko.
(Andrew Bennetts, #590637)
* Index lookups in pack repositories search recently hit pack files
first. In repositories with many pack files this can greatly reduce the
number of files accessed, the number of bytes read, and the number of
read calls. An incremental pull via plain HTTP takes half the time and
bytes for a moderately large repository. (Andrew Bennetts)
* Index lookups only re-order the indexes when the hit files aren't
already first. Reduces the cost of reordering
(John Arbash Meinel, #562429)
Command impprovements
*********************
* Added ``bzr remove-branch`` command that can remove a local or remote
branch. (Jelmer Vernooij, #276295)
* ``bzr export`` now takes an optional argument ``--per-file-timestamps``
to set file mtimes to the last timestamp of the last revision in which
they were changed rather than the current time. (Jelmer Vernooij)
* Tag names can now be determined automatically by ``automatic_tag_name``
hooks on ``Branch`` if they are not specified on the command line.
(Jelmer Vernooij)
* Tree-shape conflicts can be resolved by providing ``--take-this`` and
``--take-other`` to the ``bzr resolve`` command. Just marking the conflict
as resolved is still accessible via the ``--done`` default action.
(Vincent Ladeuil)
* The ``--directory`` option is supported for a number of additional
commands: added, annotate, bind, cat, cat-revision, clean-tree,
conflicts, deleted, export, ignore, ignored, lookup-revision, ls,
merge-directive, missing, modified, nick, re-sign, resolve, shelve,
switch, unbind, unknowns, unshelve, whoami.
(Martin von Gagern, #527878)
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
``--show-diff``.
(Parth Malwankar, #571467)
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
the default ignore rules used by bzr. The flag ``--old-default-rules``
is no longer supported by ``ignore``.
(Parth Malwankar, #538703)
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
can save disk space by deleting obsolete pack files created during the
pack operation.
(Parth Malwankar, #304320)
* New command line option ``--authors`` to ``bzr log`` allows users to
select which of the apparent authors and committer should be
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
* The bash_completion plugin from the bzr-bash-completion project has
been merged into the tree. It provides a bash-completion command and
replaces the outdated ``contrib/bash/bzr`` script with a version
using the plugin. (Martin von Gagern, #560030)
* A new transport based on GIO (the gnome i/o library) provides access to
samba shares, webdav using gio+smb and gio+dav. It is also possible to
use gio for some already existing transport methods as gio+file,
gio+sftp, gio+ftp.
(Mattias Eriksson)
Controlling plugins
*******************
* Plugins can be disabled by defining ``BZR_DISABLE_PLUGINS`` as
a list of plugin names separated by ':' (';' on windows).
(Vincent Ladeuil, #411413)
* Plugins can be loaded from arbitrary locations by defining
``BZR_PLUGINS_AT`` as a list of ``name@path`` separated by ':' (';' on
Microsoft
Windows). This takes precedence over ``BZR_PLUGIN_PATH`` for the
specified plugins, and is expected to be most useful for plugin
developers.
(Vincent Ladeuil, #82693)
Apport crash reporting
**********************
* If the Apport crash-reporting tool is available, bzr crashes are now
stored into the ``/var/crash`` apport spool directory, and the user is
invited to report them to the developers from there, either
automatically or by running ``apport-bug``. No information is sent
without specific permission from the user. (Martin Pool, #515052)
Improved Launchpad integration
******************************
* Merges can be proposed on Launchpad with the new ``lp-propose-merge``
command.
Better documentation
********************
* ``bzr help patterns`` now explains case insensitive patterns and
points to Python regular expression documentation.
(Parth Malwankar, #594386)
* Numerous improvements have been made to the developer documentation.
Changes to plugins
******************
bzr grep
========
The `grep plugin <https://launchpad.net/bzr-grep>`_ has developed well
during the bzr 2.2 cycle. bzr grep can search the versioned files in the
working tree, or in one or a series of revisions, or it can search through
only the changes in a revision range.
qbzr
====
`qbzr <https://launchpad.net/qbzr>`_, a cross-platform graphical interface
to Bazaar, gained many features and fixes in its 0.19 release, including:
* qannotate has new look and feel; with new features: find text and goto
to line.
* Improved performance of qlog, and treewidget-based dialogs (qcommit,
qadd, qrevert etc.)
* qpush, qmerge, etc.: When there are uncommitted changes in the working
tree, user has the option to commit, or revert.
* qcommit: user can update bound branch/chgeckout if it is not up to date.
* Fixed bug with Mac OS X support when windows start in background.
(Thanks to Luis Arias)
* qlog: Context menu actions for tag, and revert will now show a branch
menu if more than one branch is open.
* qlog: more context menu actions for update, cherry-pick, and reverse
cherry-pick.
* Language of GUI can be set in DEFAULT section of bazaar.conf as
``language = code``. Language codes are the same as for LANG environment
variable. Environment variable LANGUAGE still preferred over settings
in bazaar.conf.
* Language of GUI can be set in DEFAULT section of bazaar.conf
as ``language = code``. Language codes are the same as for LANG environment
variable. Environment variable LANGUAGE still preferred over settings
in bazaar.conf. (Alexander Belchenko)
* New Thai and Hungarian translations.
Platform-specific changes
*************************
Microsoft Windows
=================
* There's a new py2exe windows program ``bzrw.exe``, which allows for starting a Bazaar GUI with out have a console open in the background. (Gary van der Merwe, #433781`)
* The all-in-one Windows installer will now be built with docstrings stripped
from the library zip, reducing the size and slightly improving cold startup
time. Bundled plugins are unchanged for the moment, but if adding other new
plugins to an all-in-one installation, ensure they are compiled and
installed with -O1 or help may not work. (Martin [gz])
* Parsing of command lines, for example in ``diff --using``, no longer
treats backslash as an escape character on Windows. (Gordon Tyler,
#392248)
API changes
***********
* BzrError subclasses no longer support the name "message" to be used
as an argument for __init__ or in _fmt format specification as this
breaks in some Python versions. errors.LockError.__init__ argument
is now named "msg" instead of earlier "message".
(Parth Malwankar, #603461)
* The old ``bzr selftest --benchmark`` option has been removed.
<https://launchpad.net/bzr-usertest> is an actively-maintained
macrobenchmark suite.
(Martin Pool)
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
the result of ``bzrlib.initialize``. This change was made when fixing
the bad habit recent bzr versions have had of leaving progress bars
behind on the screen. That required calling another function before
exiting the program, and it made sense to provide a full context
manager at the same time. (Robert Collins)
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
context manager in the Python 2.5 and above sense. The bzrlib base class
is such a manager, but third party UI factories which do not derive from
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
end.
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
scheme. Previously these URLs would be treated as local paths.
(Gordon Tyler)
Further information
*******************
For more detailed information on the changes made, see the
the :doc:`../release-notes/index` for:
* the interim bzr `milestones <https://launchpad.net/bzr/2.2>`_
* the plugins you use.
For a summary of changes made in earlier releases, see:
* :doc:`whats-new-in-2.1`
.. vim: ft=rst
|