11
:2.4b2: NOT RELEASED YET
13
External Compatibility Breaks
14
*****************************
16
.. These may require users to change the way they use Bazaar.
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.
48
* Added a section about using a shared SSH account on a server for bzr+ssh
49
access. (Russell Smith)
54
.. Changes that may require updates in plugins or other code that uses
60
.. Major internal changes, unlikely to be visible to users or plugin
61
developers, but interesting for bzr developers.
66
.. Fixes and changes that are only relevant to bzr's test framework and
67
suite. This can include new facilities for writing tests, fixes to
68
spurious test failures and changes to the way things should be tested.
76
This is the first beta of the 2.4 series, leading up to a 2.4.0
77
release in August 2011. Beta releases are suitable for everyday use
78
but may cause some incompatibilities with plugins. Some plugins may need
79
small updates to work with 2.4b1.
81
External Compatibility Breaks
82
*****************************
89
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
90
in GNU format. See ``bzr help changelog_merge`` for details.
93
* Configuration options can now use references to other options in the same
94
file by enclosing them with curly brackets (``{other_opt}``). This makes it
95
possible to use, for example,
96
``push_location=lp:~vila/bzr/config-{nickname}`` in ``branch.conf`` when
97
using a loom. During the beta period, the default behaviour is to disable
98
this feature. It can be activated by declaring ``bzr.config.expand = True``
99
in ``bazaar.conf``. (Vincent Ladeuil)
101
* External merge tools can now be configured in bazaar.conf. See
102
``bzr help configuration`` for more information. (Gordon Tyler, #489915)
104
* The ``lp:`` directory service now supports Launchpad's QA staging.
105
(Jelmer Vernooij, #667483)
110
* A new hidden command ``bzr repair-workingtree``. This is a way to force
111
the dirstate file to be rebuilt, rather than using a ``bzr checkout``
112
workaround. (John Arbash Meinel)
114
* Added a ``Branch.heads_to_fetch`` RPC to the smart server protocol.
115
This allows formats from plugins (such as looms) to efficiently tell the
116
client which revisions need to be fetched. (Andrew Bennetts)
118
* Branching, merging and pulling a branch now copies revisions named in
119
tags, not just the tag metadata. (Andrew Bennetts, #309682)
121
* ``bzr cat-revision`` no longer requires a working tree.
122
(Jelmer Vernooij, #704405)
124
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
125
override the mtime for trees exported on Python 2.7 and later, which
126
expose the 'mtime' field in gzip files. This makes the output of
127
``bzr export --per-file-timestamps`` for a particular tree
128
deterministic. (Jelmer Vernooij, #711226)
130
* ``bzr export --format=zip`` can now export to standard output,
131
like the other exporters can. (Jelmer Vernooij, #513752)
133
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
134
(Jelmer Vernooij, #551714)
136
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
137
sped up dramatically for large trees. Iterating by dir is not the best
138
way to load data from a CHK inventory, so it preloads all the items in
139
the correct order. (With the gcc-tree, this changes it (re)reading 8GB
140
of CHK data, down to just 150MB.) This has noticeable affects for things
141
like building checkouts, etc. (John Arbash Meinel, #737234)
147
* A MemoryError thrown on the server during a remote operation will now be
148
usefully reported, and other unexpected errors will include the class name.
149
(Martin [gz], #722416)
151
* ``bzr annotate -r-1 file`` will now properly annotate a deleted file.
152
(Andrew King, #537442)
154
* ``bzr export`` to zip files will now set a mode on directories.
155
(Jelmer Vernooij, #207253)
157
* ``bzr export`` to tgz files will only write out the basename of the
158
tarfile to the gzip file. (Jelmer Vernooij, #102234)
160
* ``bzr push --overwrite`` with an older revision specified will now correctly
161
roll back the target branch. (Jelmer Vernooij, #386576)
163
* ``bzr lp-propose`` can now propose merges against packaging branches on
164
Launchpad without requiring the target branch to be specified.
165
(Jelmer Vernooij, #704647)
167
* ``bzr lp-propose`` no longer requires a reviewer to be specified. It will
168
instead leave setting the reviewer up to Launchpad if it was not specified.
169
(Jelmer Vernooij, #583772)
171
* ``bzr pull`` will now exit with exit code 1 if there were tag conflicts.
172
(Jelmer Vernooij, #213185)
174
* ``bzr mv`` user errors no longer throw UnicodeEncodeError with non-ascii
175
paths, however they may still print junk if not on a UTF-8 terminal.
176
(Martin [gz], #707954)
178
* ``bzr reconfigure --unstacked`` now copies revisions (and their
179
ancestors) named in tags into the unstacked repository, not just the
180
ancestry of the branch's tip. (Andrew Bennetts, #401646)
182
* ``bzr serve`` no longer crashes when a server_started hook is installed and
183
IPv6 support is available on the system. (Jelmer Vernooij, #293697)
185
* ``bzr tags`` will no longer choke on branches with ghost revisions in
186
their mainline and tags on revisions not in the branch ancestry.
187
(Jelmer Vernooij, #397556)
189
* ``bzr whoami`` will now display an error if both a new identity and
190
``--email`` were specified. (Jelmer Vernooij, #680449)
192
* ``launchpadlib`` doesn't provide the ``uris`` module in some old versions.
193
(Vincent Ladeuil, #706835)
195
* Empty entries in the ``NO_PROXY`` variable are no longer treated as matching
197
(Martin Pool, #586341)
199
* Plugins incompatible with the current version of bzr no longer produce a
200
warning on every command invocation. Instead, a message is shown by
201
``bzr plugins`` and in crash reports.
202
(#704195, Martin Pool)
204
* The "pretty" version of ``needs_read_lock`` and ``needs_write_lock`` now
205
preserves the identity of default parameter values.
206
(Andrew Bennetts, #718569)
208
* ``bzr dump-btree --raw`` no longer tracebacks on a B-Tree file
209
containing no rows. (Eric Siegerman, #715508)
211
* Fix ``bzr lp-mirror`` to work on command line branch URLs and branches
212
without an explicit public location. (Max Bowsher)
214
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
215
number of available processors. (Jelmer Vernooij, #693140)
220
* Added ``Branch.heads_to_fetch`` method. Implementions of the Branch API
221
must now inherit or implement this method. (Andrew Bennetts, #721328)
223
* Added ``bzrlib.mergetools`` module with helper functions for working with
224
the list of external merge tools. (Gordon Tyler, #489915)
226
* All methods and arguments that were deprecated before 2.0
227
have been removed. (Jelmer Vernooij)
229
* Branch formats should now be registered on the format registry
230
(``bzrlib.branch.format_registry``) rather than using the class
231
methods on ``BranchFormat``. (Jelmer Vernooij, #714729)
233
* ``BranchFormat.supports_leaving_lock()`` and
234
``RepositoryFormat.supports_leaving_lock`` flags have been added.
237
* ``Branch.fetch`` implementations must now accept an optional
238
``fetch_spec`` keyword argument. (Andrew Bennetts)
240
* ``Branch.import_last_revision_info`` is deprecated. Use the
241
``import_last_revision_info_and_tags`` method instead.
244
* Because it was too specific to BzrDir implementations,
245
``ControlDir.sprout`` no longer has a default implementation; it now
246
raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
248
* ``ControlDirFormat.register_format`` has been removed. Instead,
249
``Prober`` implementations should now implement a ``known_formats``
250
method. (Jelmer Vernooij)
252
* ControlDirFormats can now provide a ``check_status`` method and
253
raise a custom exception or warning when an unsupported or deprecated
254
format is being opened. (Jelmer Vernooij, #731311)
256
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
257
Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
258
``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
259
instead. (Jelmer Vernooij, #721971)
261
* ``BzrDirFormat`` has a new attribute ``fixed_components`` that
262
indicates whether the components of the bzrdir can be upgraded
263
independent of the ``BzrDir``. (Jelmer Vernooij)
265
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
266
now deprecated in favour of the ``BzrProber.formats`` format registry.
269
* ``ControlDir`` implementations no longer have to provide the
270
``get_branch_transport``, ``get_workingtree_transport`` and
271
``get_repository_transport`` methods. (Jelmer Vernooij, #730325)
273
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
274
``bzrlib.controldir``. (Jelmer Vernooij)
276
* Repository formats can now provide
277
``_get_extra_interrepo_test_combinations`` in the same module
278
to provide extra test combinations for ``bzrlib.tests.per_repository``.
281
* Repository formats should now be registered on the format registry
282
(``bzrlib.repository.format_registry``) rather than using the class
283
methods on ``RepositoryFormat``. (Jelmer Vernooij)
285
* Repository formats can now indicate they do not support the full
286
VersionedFiles API by setting the ``supports_full_versioned_files``
287
attribute to False. A subset of the VersionedFiles API
288
(signatures and text graphs) still needs to be supported.
291
* Repository formats have a new method ``is_deprecated`` that
292
implementations can override to return True to trigger a deprecation
293
warning. (Jelmer Vernooij)
295
* The ``revision_id`` parameter of
296
``Repository.search_missing_revision_ids`` and
297
``InterRepository.search_missing_revision_ids`` is deprecated. It is
298
replaced by the ``revision_ids`` parameter. (Andrew Bennetts)
300
* Working tree formats should now be registered on the format registry
301
(``bzrlib.working_tree.format_registry``) rather than using the class
302
methods on ``WorkingTreeFormat``. (Jelmer Vernooij, #714730)
307
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
308
out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
309
outside of tests. This class makes it easier to track exceptions in threads
310
by cacthing them so they can be re-raised in the controlling thread. It's
311
available in the ``bzrlib.cethread`` module. (Vincent Ladeuil)
313
* Correctly propogate malloc failures from diff-delta.c code as MemoryError
314
so OOM conditions during groupcompress are clearly reported. This entailed a
315
change to several function signatures. (Martin [gz], #633336)
317
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install
318
hooks for which the callable is loaded lazily. (Jelmer Vernooij)
323
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
324
(Vincent Ladeuil, #731240)
327
vim: tw=74 ft=rst ff=unix