11
:2.4b3: 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.
32
.. Fixes for situations where bzr would previously crash or give incorrect
33
or undesirable results.
38
.. Improved or updated documentation.
43
.. Changes that may require updates in plugins or other code that uses
49
.. Major internal changes, unlikely to be visible to users or plugin
50
developers, but interesting for bzr developers.
55
.. Fixes and changes that are only relevant to bzr's test framework and
56
suite. This can include new facilities for writing tests, fixes to
57
spurious test failures and changes to the way things should be tested.
65
This is the second beta of the 2.4 series, leading to a 2.4.0 release in
66
August 2011. Beta releases are suitable for everyday use but may cause some
67
incompatibilities with plugins.
69
This release includes all bug fixed in previous series known at the time of
73
External Compatibility Breaks
74
*****************************
76
.. These may require users to change the way they use Bazaar.
78
* Two command synonyms for ``bzr branch`` have been deprecated, to avoid
79
confusion and to allow the names to later be reused. The removed names
80
are: ``get`` and ``clone``. (Martin Pool, #506265)
85
.. New commands, options, etc that users may wish to try out.
87
* ``bzr commit`` now supports a ``--lossy`` argument that can be used
88
to discard any data that can not be natively represented when committing
89
to a foreign VCS. (Jelmer Vernooij, #587721)
94
.. Improvements to existing commands, especially improved performance
95
or memory usage, or better results.
97
* ``bzr merge`` in large trees is now significantly faster. On a 70k entry
98
tree, the time went from ~3min down to 30s.
99
(John Arbash Meinel, #759091)
101
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
102
the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
103
being handed off to the remote server anyway (xmlrpc has been mapping
104
``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
105
than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
106
months now.) By doing it ourselves, we can cut out substantial startup
107
time. From Netherlands to London it was taking 368ms to do the XMLRPC
108
call as much as 2s from Sydney. You can test the local logic by using
109
``-Dlaunchpad``. (John Arbash Meinel, #397739)
111
* When building a new WorkingTree (such as during ``bzr co`` or
112
``bzr branch``) we now properly store the stat and hash of files that
113
are old enough. This saves a fair amount of time on the first
114
``bzr status`` (on a 500MB tree, it saves about 30+s).
115
(John Arbash Meinel, #740932)
121
.. Fixes for situations where bzr would previously crash or give incorrect
122
or undesirable results.
124
* Arguments that can't be decoded to unicode in the current posix locale give
125
a clearer error message without a traceback. (Martin [gz], #745712)
127
* ``bzrlib.log._DEFAULT_REQUEST_PARAMS`` is no longer accidentally
128
mutated by ``bzrlib.log._apply_log_request_defaults``. In practice
129
these default values aren't relied on very often so this probably
130
wasn't causing any trouble. (Andrew Bennetts)
132
* ``bzr log`` now works on revisions which are not in the current branch.
133
(Matt Giuca, #241998)
135
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
137
* ``bzrlib.merge.Merge`` now calls ``iter_changes`` without
138
``include_unversioned=True``. This makes it significantly faster in many
139
cases, because it only looks at modified files, rather than building
140
information about all files. This can cause failures in other
141
TreeTransform code, because it had been expecting to know the names of
142
things which had not changed (such as parent directories). All cases we
143
know about so far have been fixed, but there may be fallout for edge
144
cases that we are missing. (John Arbash Meinel, #759091)
146
* Standalone bzr.exe installation on Windows: user can put additional python
147
libraries into ``site-packages`` subdirectory of the installation directory,
148
this might be required for "installing" extra dependencies for some plugins.
149
(Alexander Belchenko, #743256)
151
* ``TreeTransform.create_file/new_file`` can now take an optional ``sha1``
152
parameter. If supplied, when the transform is applied, it will then call
153
``self._tree._observed_sha1`` for those files. This lets us update the
154
hash-cache for content that we create, preventing us from re-reading the
155
content in the next ``bzr status``. (John Arbash Meinel, #740932)
160
* Added a section about using a shared SSH account on a server for bzr+ssh
161
access. (Russell Smith)
163
* The documentation now recommends using SSH rather than SFTP in the
164
tutorials and the examples, because that will generally be much faster
165
and better in cases where it can be used. SFTP is still available and
166
mentioned as an alternative. (Martin Pool, #636712)
171
.. Changes that may require updates in plugins or other code that uses
174
* Commands now have an `invoked_as` attribute, showing the name under
175
which they were called before alias expansion.
178
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
181
* If you call `bzrlib.initialize` but forget to enter the resulting object
182
as a context manager, bzrlib will now be initialized anyhow.
183
(Previously simple programs calling bzrlib might find the library was
184
mysteriously silent.)
187
* Inventory-specific functionality has been split out of ``Tree`` into
188
a new ``InventoryTree`` class. Tree instances no longer
189
necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
191
* Inventory-specific functionality has been split out of ``RevisionTree``
192
into a new ``InventoryRevisionTree`` class. RevisionTree instances no
193
longer necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
195
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
197
* ``revision_graph_can_have_wrong_parents`` is now an attribute
198
on ``RepositoryFormat`` rather than a method on ``Repository``.
201
* ``Testament`` now takes a ``tree`` rather than an
202
``inventory``. (Jelmer Vernooij, #762608)
204
* ``TestCase.failUnlessExists`` and ``failIfExists`` are deprecated in
205
favour of ``assertPathExists`` and ``assertPathDoesNotExist``
209
* The ``revno`` parameter of ``log.LogRevision`` may now be None,
210
representing a revision which is not in the current branch.
211
(Matt Giuca, #241998)
213
* The various knit pack repository format classes have been moved
214
from ``bzrlib.repofmt.pack_repo`` to
215
``bzrlib.repofmt.knitpack_repo``. (Jelmer Vernooij)
217
* ``RevisionTree`` now has a new method ``get_file_revision``.
220
* ``WorkingTree`` no longer provides an ``inventory``. Instead,
221
all inventory-related functionality is now on the subclass
222
``InventoryWorkingTree`` that all native Bazaar working tree
223
implementations derive from. (Jelmer Vernooij)
228
.. Major internal changes, unlikely to be visible to users or plugin
229
developers, but interesting for bzr developers.
231
* Added ``osutils.lstat`` and ``osutils.fstat``. These are just the ``os``
232
functions on Linux, but they are wrapped on Windows so that fstat
233
matches lstat results across all python versions.
236
* ``WorkingTree._observed_sha1`` also updates the 'size' column. It
237
happened to be updated as a side-effect of commit, but if we start using
238
the function elsewhere we might as well do it directly.
244
.. Fixes and changes that are only relevant to bzr's test framework and
245
suite. This can include new facilities for writing tests, fixes to
246
spurious test failures and changes to the way things should be tested.
248
* Stop using `failIf`, `failUnless`, `failIfEqual`, etc, that give
249
`PendingDeprecationWarnings` on Python2.7.
250
(Martin Pool, #760435)
258
This is the first beta of the 2.4 series, leading up to a 2.4.0
259
release in August 2011. Beta releases are suitable for everyday use
260
but may cause some incompatibilities with plugins. Some plugins may need
261
small updates to work with 2.4b1.
263
External Compatibility Breaks
264
*****************************
271
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
272
in GNU format. See ``bzr help changelog_merge`` for details.
275
* Configuration options can now use references to other options in the same
276
file by enclosing them with curly brackets (``{other_opt}``). This makes it
277
possible to use, for example,
278
``push_location=lp:~vila/bzr/config-{nickname}`` in ``branch.conf`` when
279
using a loom. During the beta period, the default behaviour is to disable
280
this feature. It can be activated by declaring ``bzr.config.expand = True``
281
in ``bazaar.conf``. (Vincent Ladeuil)
283
* External merge tools can now be configured in bazaar.conf. See
284
``bzr help configuration`` for more information. (Gordon Tyler, #489915)
286
* The ``lp:`` directory service now supports Launchpad's QA staging.
287
(Jelmer Vernooij, #667483)
292
* A new hidden command ``bzr repair-workingtree``. This is a way to force
293
the dirstate file to be rebuilt, rather than using a ``bzr checkout``
294
workaround. (John Arbash Meinel)
296
* Added a ``Branch.heads_to_fetch`` RPC to the smart server protocol.
297
This allows formats from plugins (such as looms) to efficiently tell the
298
client which revisions need to be fetched. (Andrew Bennetts)
300
* Branching, merging and pulling a branch now copies revisions named in
301
tags, not just the tag metadata. (Andrew Bennetts, #309682)
303
* ``bzr cat-revision`` no longer requires a working tree.
304
(Jelmer Vernooij, #704405)
306
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
307
override the mtime for trees exported on Python 2.7 and later, which
308
expose the 'mtime' field in gzip files. This makes the output of
309
``bzr export --per-file-timestamps`` for a particular tree
310
deterministic. (Jelmer Vernooij, #711226)
312
* ``bzr export --format=zip`` can now export to standard output,
313
like the other exporters can. (Jelmer Vernooij, #513752)
315
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
316
(Jelmer Vernooij, #551714)
318
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
319
sped up dramatically for large trees. Iterating by dir is not the best
320
way to load data from a CHK inventory, so it preloads all the items in
321
the correct order. (With the gcc-tree, this changes it (re)reading 8GB
322
of CHK data, down to just 150MB.) This has noticeable affects for things
323
like building checkouts, etc. (John Arbash Meinel, #737234)
329
* A MemoryError thrown on the server during a remote operation will now be
330
usefully reported, and other unexpected errors will include the class name.
331
(Martin [gz], #722416)
333
* ``bzr annotate -r-1 file`` will now properly annotate a deleted file.
334
(Andrew King, #537442)
336
* ``bzr export`` to zip files will now set a mode on directories.
337
(Jelmer Vernooij, #207253)
339
* ``bzr export`` to tgz files will only write out the basename of the
340
tarfile to the gzip file. (Jelmer Vernooij, #102234)
342
* ``bzr push --overwrite`` with an older revision specified will now correctly
343
roll back the target branch. (Jelmer Vernooij, #386576)
345
* ``bzr lp-propose`` can now propose merges against packaging branches on
346
Launchpad without requiring the target branch to be specified.
347
(Jelmer Vernooij, #704647)
349
* ``bzr lp-propose`` no longer requires a reviewer to be specified. It will
350
instead leave setting the reviewer up to Launchpad if it was not specified.
351
(Jelmer Vernooij, #583772)
353
* ``bzr pull`` will now exit with exit code 1 if there were tag conflicts.
354
(Jelmer Vernooij, #213185)
356
* ``bzr mv`` user errors no longer throw UnicodeEncodeError with non-ascii
357
paths, however they may still print junk if not on a UTF-8 terminal.
358
(Martin [gz], #707954)
360
* ``bzr reconfigure --unstacked`` now copies revisions (and their
361
ancestors) named in tags into the unstacked repository, not just the
362
ancestry of the branch's tip. (Andrew Bennetts, #401646)
364
* ``bzr serve`` no longer crashes when a server_started hook is installed and
365
IPv6 support is available on the system. (Jelmer Vernooij, #293697)
367
* ``bzr status`` will not rewrite the dirstate file if it only has
368
'trivial' changes. (Currently limited to dir updates and newly-added
369
files changing state.) This saves a bit of time for regular operations.
370
eg. ``bzr status`` in a 100k tree takes 1.4s to compute the status, but 1s
371
to re-save the dirstate file. (John Arbash Meinel, #765881)
373
* ``bzr tags`` will no longer choke on branches with ghost revisions in
374
their mainline and tags on revisions not in the branch ancestry.
375
(Jelmer Vernooij, #397556)
377
* ``bzr whoami`` will now display an error if both a new identity and
378
``--email`` were specified. (Jelmer Vernooij, #680449)
380
* ``launchpadlib`` doesn't provide the ``uris`` module in some old versions.
381
(Vincent Ladeuil, #706835)
383
* Empty entries in the ``NO_PROXY`` variable are no longer treated as matching
385
(Martin Pool, #586341)
387
* Plugins incompatible with the current version of bzr no longer produce a
388
warning on every command invocation. Instead, a message is shown by
389
``bzr plugins`` and in crash reports.
390
(#704195, Martin Pool)
392
* The "pretty" version of ``needs_read_lock`` and ``needs_write_lock`` now
393
preserves the identity of default parameter values.
394
(Andrew Bennetts, #718569)
396
* ``bzr dump-btree --raw`` no longer tracebacks on a B-Tree file
397
containing no rows. (Eric Siegerman, #715508)
399
* Fix ``bzr lp-mirror`` to work on command line branch URLs and branches
400
without an explicit public location. (Max Bowsher)
402
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
403
number of available processors. (Jelmer Vernooij, #693140)
408
* Added ``Branch.heads_to_fetch`` method. Implementations of the Branch API
409
must now inherit or implement this method. (Andrew Bennetts, #721328)
411
* Added ``bzrlib.mergetools`` module with helper functions for working with
412
the list of external merge tools. (Gordon Tyler, #489915)
414
* All methods and arguments that were deprecated before 2.0
415
have been removed. (Jelmer Vernooij)
417
* Branch formats should now be registered on the format registry
418
(``bzrlib.branch.format_registry``) rather than using the class
419
methods on ``BranchFormat``. (Jelmer Vernooij, #714729)
421
* ``Branch.set_revision_history`` is now deprecated.
424
* ``BranchFormat.supports_leaving_lock()`` and
425
``RepositoryFormat.supports_leaving_lock`` flags have been added.
428
* ``Branch.import_last_revision_info`` is deprecated. Use the
429
``import_last_revision_info_and_tags`` method instead.
432
* Because it was too specific to BzrDir implementations,
433
``ControlDir.sprout`` no longer has a default implementation; it now
434
raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
436
* ``ControlDirFormat.register_format`` has been removed. Instead,
437
``Prober`` implementations should now implement a ``known_formats``
438
method. (Jelmer Vernooij)
440
* ControlDirFormats can now provide a ``check_status`` method and
441
raise a custom exception or warning when an unsupported or deprecated
442
format is being opened. (Jelmer Vernooij, #731311)
444
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
445
Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
446
``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
447
instead. (Jelmer Vernooij, #721971)
449
* ``BzrDirFormat`` has a new attribute ``fixed_components`` that
450
indicates whether the components of the bzrdir can be upgraded
451
independent of the ``BzrDir``. (Jelmer Vernooij)
453
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
454
now deprecated in favour of the ``BzrProber.formats`` format registry.
457
* ``ControlDir`` implementations no longer have to provide the
458
``get_branch_transport``, ``get_workingtree_transport`` and
459
``get_repository_transport`` methods. (Jelmer Vernooij, #730325)
461
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
462
``bzrlib.controldir``. (Jelmer Vernooij)
464
* Repository formats can now provide
465
``_get_extra_interrepo_test_combinations`` in the same module
466
to provide extra test combinations for ``bzrlib.tests.per_repository``.
469
* Repository formats should now be registered on the format registry
470
(``bzrlib.repository.format_registry``) rather than using the class
471
methods on ``RepositoryFormat``. (Jelmer Vernooij)
473
* Repository formats can now indicate they do not support the full
474
VersionedFiles API by setting the ``supports_full_versioned_files``
475
attribute to False. A subset of the VersionedFiles API
476
(signatures and text graphs) still needs to be supported.
479
* Repository formats have a new method ``is_deprecated`` that
480
implementations can override to return True to trigger a deprecation
481
warning. (Jelmer Vernooij)
483
* The ``revision_id`` parameter of
484
``Repository.search_missing_revision_ids`` and
485
``InterRepository.search_missing_revision_ids`` is deprecated. It is
486
replaced by the ``revision_ids`` parameter. (Andrew Bennetts)
488
* Working tree formats should now be registered on the format registry
489
(``bzrlib.working_tree.format_registry``) rather than using the class
490
methods on ``WorkingTreeFormat``. (Jelmer Vernooij, #714730)
495
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
496
out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
497
outside of tests. This class makes it easier to track exceptions in threads
498
by catching them so they can be re-raised in the controlling thread. It's
499
available in the ``bzrlib.cethread`` module. (Vincent Ladeuil)
501
* Correctly propogate malloc failures from diff-delta.c code as MemoryError
502
so OOM conditions during groupcompress are clearly reported. This entailed a
503
change to several function signatures. (Martin [gz], #633336)
505
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install
506
hooks for which the callable is loaded lazily. (Jelmer Vernooij)
511
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
512
(Vincent Ladeuil, #731240)
515
vim: tw=74 ft=rst ff=unix