21
21
.. New commands, options, etc that users may wish to try out.
26
.. Improvements to existing commands, especially improved performance
27
or memory usage, or better results.
29
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
30
the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
31
being handed off to the remote server anyway (xmlrpc has been mapping
32
``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
33
than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
34
months now.) By doing it ourselves, we can cut out substantial startup
35
time. From Netherlands to London it was taking 368ms to do the XMLRPC
36
call as much as 2s from Sydney. You can test the local logic by using
37
``-Dlaunchpad``. (John Arbash Meinel, #397739)
42
.. Fixes for situations where bzr would previously crash or give incorrect
43
or undesirable results.
45
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
50
* Added a section about using a shared SSH account on a server for bzr+ssh
51
access. (Russell Smith)
56
.. Changes that may require updates in plugins or other code that uses
59
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
62
* If you call `bzrlib.initialize` but forget to enter the resulting object
63
as a context manager, bzrlib will now be initialized anyhow.
64
(Previously simple programs calling bzrlib might find the library was
68
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
73
.. Major internal changes, unlikely to be visible to users or plugin
74
developers, but interesting for bzr developers.
79
.. Fixes and changes that are only relevant to bzr's test framework and
80
suite. This can include new facilities for writing tests, fixes to
81
spurious test failures and changes to the way things should be tested.
89
This is the first beta of the 2.4 series, leading up to a 2.4.0
90
release in August 2011. Beta releases are suitable for everyday use
91
but may cause some incompatibilities with plugins. Some plugins may need
92
small updates to work with 2.4b1.
94
External Compatibility Breaks
95
*****************************
102
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
103
in GNU format. See ``bzr help changelog_merge`` for details.
23
* The ``lp:`` directory service now supports Launchpad's QA staging.
24
(Jelmer Vernooij, #667483)
26
* External merge tools can now be configured in bazaar.conf. See
27
``bzr help configuration`` for more information. (Gordon Tyler, #489915)
106
29
* Configuration options can now use references to other options in the same
107
30
file by enclosing them with curly brackets (``{other_opt}``). This makes it
108
31
possible to use, for example,
111
34
this feature. It can be activated by declaring ``bzr.config.expand = True``
112
35
in ``bazaar.conf``. (Vincent Ladeuil)
114
* External merge tools can now be configured in bazaar.conf. See
115
``bzr help configuration`` for more information. (Gordon Tyler, #489915)
117
* The ``lp:`` directory service now supports Launchpad's QA staging.
118
(Jelmer Vernooij, #667483)
40
.. Improvements to existing commands, especially improved performance
41
or memory usage, or better results.
123
43
* A new hidden command ``bzr repair-workingtree``. This is a way to force
124
44
the dirstate file to be rebuilt, rather than using a ``bzr checkout``
125
45
workaround. (John Arbash Meinel)
131
51
* Branching, merging and pulling a branch now copies revisions named in
132
52
tags, not just the tag metadata. (Andrew Bennetts, #309682)
134
* ``bzr cat-revision`` no longer requires a working tree.
135
(Jelmer Vernooij, #704405)
137
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
138
override the mtime for trees exported on Python 2.7 and later, which
139
expose the 'mtime' field in gzip files. This makes the output of
140
``bzr export --per-file-timestamps`` for a particular tree
141
deterministic. (Jelmer Vernooij, #711226)
143
* ``bzr export --format=zip`` can now export to standard output,
144
like the other exporters can. (Jelmer Vernooij, #513752)
146
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
147
(Jelmer Vernooij, #551714)
149
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
150
sped up dramatically for large trees. Iterating by dir is not the best
151
way to load data from a CHK inventory, so it preloads all the items in
152
the correct order. (With the gcc-tree, this changes it (re)reading 8GB
153
of CHK data, down to just 150MB.) This has noticeable affects for things
154
like building checkouts, etc. (John Arbash Meinel, #737234)
54
* ``bzr cat-revision`` no longer requires a working tree. (Jelmer Vernooij, #704405)
59
.. Fixes for situations where bzr would previously crash or give incorrect
60
or undesirable results.
160
62
* A MemoryError thrown on the server during a remote operation will now be
161
63
usefully reported, and other unexpected errors will include the class name.
162
64
(Martin [gz], #722416)
167
69
* ``bzr export`` to zip files will now set a mode on directories.
168
70
(Jelmer Vernooij, #207253)
170
* ``bzr export`` to tgz files will only write out the basename of the
171
tarfile to the gzip file. (Jelmer Vernooij, #102234)
173
72
* ``bzr push --overwrite`` with an older revision specified will now correctly
174
73
roll back the target branch. (Jelmer Vernooij, #386576)
227
126
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
228
127
number of available processors. (Jelmer Vernooij, #693140)
132
.. Improved or updated documentation.
233
* Added ``Branch.heads_to_fetch`` method. Implementations of the Branch API
137
.. Changes that may require updates in plugins or other code that uses
140
* Added ``Branch.heads_to_fetch`` method. Implementions of the Branch API
234
141
must now inherit or implement this method. (Andrew Bennetts, #721328)
236
143
* Added ``bzrlib.mergetools`` module with helper functions for working with
254
161
``import_last_revision_info_and_tags`` method instead.
255
162
(Andrew Bennetts)
257
* Because it was too specific to BzrDir implementations,
258
``ControlDir.sprout`` no longer has a default implementation; it now
259
raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
261
* ``ControlDirFormat.register_format`` has been removed. Instead,
262
``Prober`` implementations should now implement a ``known_formats``
263
method. (Jelmer Vernooij)
265
* ControlDirFormats can now provide a ``check_status`` method and
266
raise a custom exception or warning when an unsupported or deprecated
267
format is being opened. (Jelmer Vernooij, #731311)
269
164
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
270
165
Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
271
166
``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
275
170
indicates whether the components of the bzrdir can be upgraded
276
171
independent of the ``BzrDir``. (Jelmer Vernooij)
278
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
279
now deprecated in favour of the ``BzrProber.formats`` format registry.
282
* ``ControlDir`` implementations no longer have to provide the
283
``get_branch_transport``, ``get_workingtree_transport`` and
284
``get_repository_transport`` methods. (Jelmer Vernooij, #730325)
173
* ``ControlDir`` implementations no longer have to provide the ``get_branch_transport``,
174
``get_workingtree_transport`` and ``get_repository_transport`` methods.
175
(Jelmer Vernooij, #730325)
286
177
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
287
178
``bzrlib.controldir``. (Jelmer Vernooij)
211
.. Major internal changes, unlikely to be visible to users or plugin
212
developers, but interesting for bzr developers.
320
214
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
321
215
out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
322
216
outside of tests. This class makes it easier to track exceptions in threads
323
by catching them so they can be re-raised in the controlling thread. It's
217
by cacthing them so they can be re-raised in the controlling thread. It's
324
218
available in the ``bzrlib.cethread`` module. (Vincent Ladeuil)
326
* Correctly propogate malloc failures from diff-delta.c code as MemoryError
327
so OOM conditions during groupcompress are clearly reported. This entailed a
328
change to several function signatures. (Martin [gz], #633336)
330
220
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install
331
221
hooks for which the callable is loaded lazily. (Jelmer Vernooij)
226
.. Fixes and changes that are only relevant to bzr's test framework and
227
suite. This can include new facilities for writing tests, fixes to
228
spurious test failures and changes to the way things should be tested.
336
230
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
337
231
(Vincent Ladeuil, #731240)