11
:2.4.3: 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.
35
* Cope with Unix filesystems, such as smbfs, where chmod gives 'permission
36
denied'. (Martin Pool, #606537)
38
* Fix a traceback when trying to checkout a tree that also has an entry
39
with file-id `TREE_ROOT` somewhere other than at the root directory.
40
(John Arbash Meinel, #830947)
42
* When the ``limbo`` or ``pending-deletion`` directories exist, typically
43
because of an interrupted tree update, but are empty, bzr no longer
44
errors out, because there is nothing for the user to clean up. Also,
45
errors in creation of these directories are no longer squelched.
46
(Martin Pool, #427773)
48
* During merges, when two entries end up using the same path for two
49
different file-ids (the same file being 'bzr added' in two different
50
branches) , 'duplicate' conflicts are created instead of 'content'
51
ones. This was previously leading to a 'Malformed tramsform' exception.
52
(Vincent Ladeuil, #880701)
54
* 'Malformed transform' exceptions are now recognized as internal errors
55
instead of user errors and report a traceback. This will reduce user
56
confusion as there is generally nothing users can do about them.
57
(Vincent Ladeuil, #880701)
59
* Prevent a traceback being printed to stderr when logging has problems and
60
accept utf-8 byte string without breaking. (Martin Packman, #714449)
62
* Some filesystems give ``EOPNOTSUPP`` when trying to call ``fdatasync``.
63
This shouldn't be treated as a fatal error.
64
(John Arbash Meinel, #1075108)
66
* Use ``encoding_type='exact'`` for ``bzr testament`` so that on Windows
67
the sha hash of the long testament matches the sha hash in the short
68
form. (John Arbash Meinel, #1010339)
70
* _Win32Stat object provides members st_uid and st_gid, those are present
71
in Python's os.stat object. These members required for external tools like
72
bzr-git and dulwich. (Alexander Belchenko, #967060)
77
.. Improved or updated documentation.
82
.. Changes that may require updates in plugins or other code that uses
88
.. Major internal changes, unlikely to be visible to users or plugin
89
developers, but interesting for bzr developers.
94
.. Fixes and changes that are only relevant to bzr's test framework and
95
suite. This can include new facilities for writing tests, fixes to
96
spurious test failures and changes to the way things should be tested.
98
* Account for slightly improved compression with newer versions of zlib in
99
``bt.test_btree_index`` tests. (Martin Packman, #940453)
107
This is a bugfix release. Most of the bugs dealt with portability
108
issues. Upgrading is recommended for all users of earlier 2.4 releases.
110
External Compatibility Breaks
111
*****************************
123
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
124
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
129
* Fixed an infinite loop when creating a repo at the root of the filesystem,
130
i.e. "/", due to posixpath.normpath() not collapsing 2 leading slashes into
131
one, thus respecting the POSIX standard, but making relpath() loop infinitely.
132
(Florian Vichot, #861008)
134
* Fixed loading of external merge tools from config to properly decode
135
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
137
* Include declaration of 'changed' to avoid an UnboundLocalError in dirstate
138
pyrex code with new Cython versions. (Denys Duchier, #837221)
140
* Prevent several kinds of OverflowError and other fallout from failing to fit
141
stat fields into four bytes in dirstate pack_stat implementations.
142
(Martin Packman, #683191 #706957)
144
* Return early from create_delta_index_from_delta given tiny inputs. This
145
avoids raising a spurious MemoryError on certain platforms such as AIX.
146
(John Arbash Meinel, #856731)
151
* Corrected documentation for ``bzr serve`` in the Admin Guide.
152
(Morten Bøgeskov, Martin Pool, #832576)
167
* Accept both old and new style testtools output in selftest tests.
168
(Jelmer Vernooij, Martin Packman, #815423)
170
* Fix the race for TestingThreadingTCPServer in
171
test_server_crash_while_responding. (Vincent Ladeuil, #869366)
173
* Really corrupt the pack file without depending on a special length or value.
174
(Vincent Ladeuil, #807032)
182
This is a bugfix release. Upgrading is recommended for all users of earlier
185
It includes fixes from previous stable releases and address some issues with
189
External Compatibility Breaks
190
*****************************
192
.. These may require users to change the way they use Bazaar.
197
.. New commands, options, etc that users may wish to try out.
202
.. Improvements to existing commands, especially improved performance
203
or memory usage, or better results.
208
.. Fixes for situations where bzr would previously crash or give incorrect
209
or undesirable results.
211
* ``config.LocationMatcher`` properly excludes unrelated sections.
212
(Vincent Ladeuil, #829237)
214
* ``dirstate.fdatasync`` and ``repository.fdatasync`` can now properly be
215
disabled. (Vincent Ladeuil, #824513)
217
* Disable ``os.fsync`` and ``os.fdatasync`` by default when running
218
``bzr selftest``. You can use ``--sync`` to re-enable them.
219
(John Arbash Meinel, #837293)
221
* Fix i18n use when no environment variables are set. (Jelmer Vernooij, #810701)
223
* Avoid UnicodeDecode error when reporting EINVAL from transports.
224
(IWATA Hidetaka, #829237)
229
.. Improved or updated documentation.
231
* Corrected documentation for BZR_PROGRESS_BAR.
232
(Dennis Benzinger, #735417)
237
.. Changes that may require updates in plugins or other code that uses
243
.. Major internal changes, unlikely to be visible to users or plugin
244
developers, but interesting for bzr developers.
249
.. Fixes and changes that are only relevant to bzr's test framework and
250
suite. This can include new facilities for writing tests, fixes to
251
spurious test failures and changes to the way things should be tested.
253
* The test suite should now be able to run under weird environments where
254
``/etc/passwd`` doesn't contain the ``uid`` for the user running selftest
255
or where ``fakeroot`` is used but ``/root`` is inacessible.
256
(Vincent Ladeuil, #825027)
263
This release marks the start of a new long-term-stable series. From here, we
264
will only make bugfix releases on the 2.4 series (2.4.1, etc, and support it
265
until February 2013), while 2.5 will become our new development series.
267
This is a bugfix and polish release over the 2.3 series, with a large number
268
of bugs fixed (>150 for the 2.4 series alone), and some performance
269
improvements. Support for python 2.4 and 2.5 has been dropped, many large
270
working tree operations have been optimized as well as some stacked branches
273
Only bugfixes from other stables series have been included since 2.4b5 so
274
all known fixed bugs are included here.
276
Users are encouraged to upgrade from the other stable series.
279
External Compatibility Breaks
280
*****************************
282
.. These may require users to change the way they use Bazaar.
287
.. New commands, options, etc that users may wish to try out.
292
.. Improvements to existing commands, especially improved performance
293
or memory usage, or better results.
298
.. Fixes for situations where bzr would previously crash or give incorrect
299
or undesirable results.
301
* A call to CHKInventory's filter-method will not result in a
302
DuplicateFileId error, if you move a subfolder and change a file in
304
(Bastian Bowe, #809901)
306
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
307
checks to see if the most recent published source package version for
308
that project is present in the branch tags. This should help developers
309
trust whether the packaging branch is up-to-date and can be used for new
310
changes. The level of verbosity is controlled by the config item
311
``launchpad.packaging_verbosity``. It can be set to one of
318
only display if the branch is out-of-date
321
also display single-line up-to-date and missing,
325
(default) display multi-line content for all states
328
(John Arbash Meinel, #609187, #812928)
330
* Cope with not all Python versions having a ``clear`` method on
331
``TestCase._type_equality_funcs``.
332
(Martin [gz], Jelmer Vernooij, #809048)
334
* Fetching tags when fetching the tip revision of a branch is now
335
controlled by the config setting ``branch.fetch_tags``. The behavior has
336
been reverted to 2.3's not-fetching tagged revisions by default.
337
(John Arbash Meinel, #771184)
339
* The fix for bug #513709 caused us to open a new connection when
340
switching a lightweight checkout that was pointing at a bound branch.
341
This isn't necessary because we know the master URL without opening it,
342
avoiding an extra SSH connection, etc.
343
(John Arbash Meinel, #812285)
349
.. Improved or updated documentation.
354
.. Changes that may require updates in plugins or other code that uses
360
.. Major internal changes, unlikely to be visible to users or plugin
361
developers, but interesting for bzr developers.
366
.. Fixes and changes that are only relevant to bzr's test framework and
367
suite. This can include new facilities for writing tests, fixes to
368
spurious test failures and changes to the way things should be tested.
370
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
371
cleanly and reliably allows tests using `BranchBuilder` to construct
372
branches that e.g. rename files out of a directory and unversion that
373
directory in the same revision. Previously some changes were impossible
374
due to the order that `build_snapshot` performs its actions.
377
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
378
just compares the bytes in the dirstate file to its pristine state,
379
rather than opening the WorkingTree and calling ``last_revision()``.
380
This reduces the overall test suite time by about 10% on my laptop.
389
This is the fifth (and last) beta of the 2.4 series leading to
390
2.4.0 release in August 2011. Beta releases are suitable for
391
everyday use but may cause some incompatibilities with plugins.
393
This release includes all bug fixed in previous series known at
394
the time of this release.
396
External Compatibility Breaks
397
*****************************
404
* New command ``verify-signatures`` to check if all commits or specified commits
405
have digital signatures from trusted keys. Requires python-gpgme to be
408
* New option ``--signatures`` for ``bzr log`` to display digital signature
409
verification results for each commit.
411
* Config option acceptable_keys to list which GPG keys are verified as trusted.
413
* Config option validate_signatures_in_log to always show signatures in
419
* ``Branch.open`` is now about 3x faster (about 2ms instead of 6.5ms).
422
* Pack, dirstate, and index files are synced to persistent storage if
423
possible when writing finishes, to reduce the risk of problems caused by
424
a machine crash or similar problem. This can be turned off through the
425
``dirstate.fdatasync`` and ``repository.fdatasync`` options, which can
426
be set in ``locations.conf`` or ``bazaar.conf``. (Martin Pool,
432
* Display a proper error message when a config file content cannot be
433
decoded as UTF-8 or when it cannot be parsed.
434
(Vincent Ladeuil, #502060, #688677, #797246)
436
* Generate a single conflict (instead of two) when merging a branch
437
modifying and renaming a file in a branch that deleted it (or vice-versa).
438
(Vincent Ladeuil, #688101)
440
* Give a more helpful message when the bzr executable doesn't match the
441
library. (This typically happens because of a misconfigured PYTHONPATH
442
or half-installed bzr.)
443
(Martin Pool, #804553)
445
* Properly load utf8-encoded config files. (Vincent Ladeuil, #799212)
447
* ``GraphThunkIdsToKeys.merge_sort`` now properly returns
448
keys rather than ids. (Jelmer Vernooij, #799677)
450
* ``TreeTransformBase.fixup_new_roots`` can now check that a tree root
451
is present. (Jelmer Vernooij, #801257)
456
* New attributes ``WorkingTreeFormat.supports_versioned_directories`` and
457
``RepositoryFormat.supports_versioned_directories``.
458
(Jelmer Vernooij, #765815)
460
* The "revno" field type when using the python version-info format is now
461
a string (to handle dotted revnos) (Benoît Pierre, #796259)
466
* Start implementing localization, starting with command help text (but not
467
the command options themselves). This will allow bootstrapping the bzr
468
internationalization process. (Inada Naoki)
473
* Fix test failures when running as a homeless user (debian buildd). Tests
474
leaking into ``${HOME}/.bzr.log`` should be detected properly now.
475
(Vincent Ladeuil, #798698)
482
This is the fourth beta of the 2.4 series, leading to a 2.4.0 release in
483
August 2011. Beta releases are suitable for everyday use but may cause some
484
incompatibilities with plugins.
486
This release includes all bug fixed in previous series known at the time of
490
External Compatibility Breaks
491
*****************************
493
.. These may require users to change the way they use Bazaar.
495
* Do not treat configuration option 'check_signatures = require' as if
496
it were 'create_signatures = always' (Jonathan Riddell)
501
.. New commands, options, etc that users may wish to try out.
503
* Hooks have been added for config stacks: ``get``, ``set`` and ``remove``
504
are called when an option is respectively read, modified or deleted. Also
505
added ``load`` and ``save`` hooks for config stores, called when the
506
stores are loaded or saved. (Vincent Ladeuil)
508
* New hook server_exception in bzrlib.smart.server to catch any
509
exception caused while running bzr serve.
510
(Jonathan Riddell, #274578)
512
* New hook set_commit_message in bzrlib.msgeditor to set a commit message
513
and revision properties. (Jonathan Riddell, #274578)
515
* Support ``-S`` as an alias for ``--short`` for the ``log`` and
516
``missing`` commands. (Martin von Gagern, #38655)
521
.. Improvements to existing commands, especially improved performance
522
or memory usage, or better results.
524
* ``bzr annotate`` can be run without setting whoami data first.
525
(Jonathan Riddell, #667408)
530
.. Fixes for situations where bzr would previously crash or give incorrect
531
or undesirable results.
533
* Bazaar can now detect when a lock file is held by a dead process
534
originating from the same machine, and steal the lock after printing a
535
message to the user. This is off by default, for safety, but can be
536
turned on by setting the configuration variable ``locks.steal_dead`` to
538
(Martin Pool, #220464)
540
* ``bzr version-info`` now works when the tree is on a dotted revno.
541
(Benoît Pierre, #796259)
543
* Credentials in the log output produced by ``-Dhttp`` are masked so users
544
can more freely post them in bug reports. (Vincent Ladeuil, #723074)
546
* Fix a race condition for ``server_started`` hooks leading to a spurious
547
test failure. (Vincent Ladeuil, #789167)
549
* Fix exporting subdirectory with ``--per-file-timestamps``.
550
(Szilveszter Farkas, #795557)
552
* Handle files that get created but don't get used during TreeTransform.
553
``open()`` can create a file, and still raise an exception before it
554
returns. So anything we might have created, make sure we destroy during
555
``finalize()``. (Martin [gz], #597686)
557
* ``pack_repo`` now uses ``Transport.move`` instead of
558
``Transport.rename``, deleting any existing targets even on SFTP.
559
(Martin von Gagern, #421776)
561
* Pass the ``build_mo`` command to the rest of the setup() calls in
562
setup.py. The ``bdist_wininst`` and ``py2exe`` code paths were failing
563
because ``build_mo`` became a required step that they didn't know about.
564
(John Arbash Meinel, #787122)
566
* Preserve existing ``root-id`` when merging an unrelated branch.
567
(Aaron Bentley, #806356)
569
* Properly avoid re-adding a file after it changes case on CICP
570
filesystems. (John Arbash Meinel, #798130)
572
* Reports the original error when an InvalidHttpResponse exception is
573
encountered to facilitate debug. (Vincent Ladeuil, #788530)
575
* Reports a non-existent file error when trying to merge in a file
576
that does not exist. (Jonathan Riddell, #330063)
578
* ``UIFactory.prompt``, ``UIFactory.get_username``,
579
``UIFactory.get_password`` and ``UIFactory.get_boolean`` now require a
580
unicode prompt to be passed in. (Jelmer Vernooij, #592083)
582
* Support merging into the empty tree. (Aaron Bentley, #595328)
587
.. Improved or updated documentation.
589
* Improve documentation of ``bzr merge --force``.
590
(Neil Martinsen-Burrell, #767307)
592
* Make docs for configuration options for digital signatures match
593
reality. (Jonathan Riddell)
595
* Add user-guide page on GPG signatures. (Jonathan Riddell)
600
.. Changes that may require updates in plugins or other code that uses
603
* Checking for a file id in a `Tree` or `Inventory` using ``in`` is now
604
deprecated. Instead, use `has_id`.
607
* Exporters are now all exposed as generators, rather than as single-call
608
functions, so that calling code can take stream the output.
611
* Information about held lockdir locks returned from eg `LockDir.peek` is
612
now represented as a `LockHeldInfo` object, rather than a plain
616
* Remove `file_status` function.
619
* ``Repository.iter_reverse_revision_history`` is now deprecated.
620
Use ``Graph.iter_lefthand_ancestry`` instead.
621
(Jelmer Vernooij, #739481)
623
* ``Repository.get_ancestry`` has been deprecated. Use
624
``Graph.iter_ancestry`` instead.
625
(Jelmer Vernooij, #784511)
630
.. Major internal changes, unlikely to be visible to users or plugin
631
developers, but interesting for bzr developers.
633
* ``tools/check-newsbugs.py`` accepts a ``--browser`` option to open
634
corresponding launchpad pages in a browser. (Vincent Ladeuil)
639
.. Fixes and changes that are only relevant to bzr's test framework and
640
suite. This can include new facilities for writing tests, fixes to
641
spurious test failures and changes to the way things should be tested.
643
* A `ImportTariffTestCase` base class has been added in
644
``bzrlib.tests.test_import_tariff``, which can be used for import tariff
645
tests in plugins. (Jelmer Vernooij, #793465)
647
* Fix deadlock in `TestImportTariffs.test_simple_serve` when stderr gets
648
more output than fits in the default buffer. This was happening on the
649
Windows buildslave, and could easily happen in other circumstances where
650
the default OS buffer size for pipes is small or the ``python -v``
651
output is large. (Andrew Bennetts, #784802)
653
* Fix spurious test failure on OSX for WorkingTreeFormat2.
654
(Vincent Ladeuil, #787942)
656
* Re-target ``bb.test_merge.TestMerge.test_merge_reversed_revision_range``
657
and rewrite it as a parametrized test to avoid unrelated failures.
658
(Vincent Ladeuil, #795456)
660
* Show log file contents from subprocesses started by
661
`start_bzr_subprocess` in test failure details. This may help diagnose
662
strange hangs and failures involving subprocesses. (Andrew Bennetts)
664
* Skip ``utextwrap`` tests when ``sphinx`` breaks text_wrap by an hostile
665
monkey-patch to textwrap.TextWrapper.wordsep_re.
666
(Vincent Ladeuil, #785098)
668
* Multiple ``selftest --exclude`` options are now combined instead of
669
overriding each other. (Vincent Ladeuil, #746991)
671
* Restore some ``FTPTransport`` test coverage by allowing ``pyftpdlib
672
0.6.0`` to be used. Also restore ``medusa`` support while leaving it
673
disabled to make it easier to use if/when we can in the future.
674
(Vincent Ladeuil, #781140)
676
* `TestImportTariffs` no longer uses the real ``$HOME``. This prevents it
677
from polluting ``$HOME/.bzr.log`` or being accidentally influenced by
678
user configuration such as aliases. It still runs with all the user's
679
plugins enabled, as intended.
680
(Vincent Ladeuil, Andrew Bennetts, #789505)
688
This is the third beta of the 2.4 series, leading to a 2.4.0 release in
689
August 2011. Beta releases are suitable for everyday use but may cause some
690
incompatibilities with plugins.
692
This release includes all bug fixed in previous series known at the time of
696
External Compatibility Breaks
697
*****************************
699
.. These may require users to change the way they use Bazaar.
701
* ``bzr-2.4`` has officially dropped support for python2.4 and python2.5.
702
We will continue to maintain ``bzr-2.3`` for people who still need to
703
use those versions of python. (John Arbash Meinel)
708
.. New commands, options, etc that users may wish to try out.
710
* The text compressor used for 2a repositories now has a tweakable
711
parameter that can be set in bazaar.conf.
712
``bzr.groupcompress.max_entries_per_source`` default of 65536.
713
When doing compression, we build up an index of locations to match
714
against. Setting this higher will result in slightly better compression,
715
at a cost of more memory. Note that a value of 65k represents fully
716
sampling a 1MB file. So this only has an effect when compressing texts
717
larger than N*16 bytes. (John Arbash Meinel, #602614)
722
.. Improvements to existing commands, especially improved performance
723
or memory usage, or better results.
725
* ``bzr branch --stacked`` from a smart server uses the network a little
726
more efficiently. For a simple branch it reduces the number of
727
round-trips by about 20%. (Andrew Bennetts)
729
* ``bzr log --line`` scales the width of the author field with the size of
730
the line. This means that the full author name is shown when the
731
environment variable BZR_COLUMNS=0. (Neil Martinsen-Burrell)
733
* ``bzr pull`` now properly triggers the fast
734
``CHKInventory.iter_changes`` rather than the slow generic
735
inter-Inventory changes. It used to use a ``DirStateRevisionTree`` as
736
one of the source trees, which is faster when we have to read the whole
737
inventory anyway, but much slower when we can get just the delta out of
738
the repository. On a 70k record tree, this changes ``bzr pull`` from 28s
739
down to 17s. (John Arbash Meinel, #780677)
741
* Slightly reduced memory consumption when fetching into a 2a repository
742
by reusing existing caching a little better. (Andrew Bennetts)
744
* Speed up ``bzr status`` by a little bit when there are a couple of
745
modified files. We now track how many files we have seen that need
746
updating, and only rewrite the dirstate file if enough of them have
747
changed. The default is 10, and can be overridden by setting the branch
748
option "``bzr.workingtree.worth_saving_limit``".
749
(Ian Clatworthy, John Arbash Meinel, #380202)
751
* Speed up ``bzr uncommit``. Instead of resetting the dirstate from
752
scratch, use ``update_basis_by_delta``, computing the delta from the
753
repository. (John Arbash Meinel, #780544)
758
.. Fixes for situations where bzr would previously crash or give incorrect
759
or undesirable results.
761
* All Tree types can now be exported as tar.*, zip or directories.
764
* ``bzr merge --no-remember location`` never sets ``submit_branch``.
765
(Vincent Ladeuil, #782169)
767
* ``bzr pull --no-remember location`` never sets
768
``parent_location``. ``bzr push --no-remember location`` never
769
sets ``push_location``. ``bzr send --no-remember
770
submit_location public_location`` never sets ``submit_branch``
771
nor ``public_branch``. (Vincent Ladeuil)
773
* Conflicts involving non-ascii filenames are now properly reported rather
774
than failing with a UnicodeEncodeError. (Martin [GZ], #686161)
776
* Correct parent is now set when using 'switch -b' with bound branches.
777
(A. S. Budden, #513709)
779
* Fix `bzr plugins` regression in bzr 2.4 which resulted in a traceback
780
from writelines on ckj terminals. (Martin [GZ], #754082)
782
* ``WT.inventory`` and ``WT.iter_entries_by_dir()`` was not correctly
783
reporting subdirectories that were tree references (in formats that
784
supported them). (John Arbash Meinel, #764677)
786
* Merging into empty branches now gives an error as this is currently
787
not supported. (Jonathan Riddell, #242175)
789
* Do not show exception to user on pointless commit error.
790
(Jonathan Riddell #317357)
792
* ``WT.update_basis_by_delta`` no longer requires that the deltas match
793
the current WT state. This allows ``update_basis_by_delta`` to be used
794
by more commands than just commit. Updating with a delta allows us to
795
not load the whole inventory, which can take 10+s with large trees.
796
(Jonathan Riddell, John Arbash Meinel, #781168)
798
* ``bzr mv --after old_name new_name`` now works if "new_name" is newly
799
added. (Benoît Pierre)
805
.. Improved or updated documentation.
807
* Restore the workaround for option names including dots (--1.14) which was
808
disabled when we stopped listing --1.9 as a format.
809
(Vincent Ladeuil, #782289)
814
.. Changes that may require updates in plugins or other code that uses
817
* ``annotate_file`` has been deprecated in favor of
818
``annotate_file_revision_tree``. (Jelmer Vernooij, #775598)
820
* ``Branch.fetch`` now takes an optional ``limit`` argument.
821
(Andrew Bennetts, Jelmer Vernooij, #750175)
823
* ``Inter.get`` now raises ``NoCompatibleInter`` if there are no
824
compatible optimisers rather than an instance of the class it is called
825
on. (Jelmer Vernooij)
827
* ``Branch.push`` now takes a ``lossy`` argument.
828
``Branch.lossy_push`` has been removed.
831
* New method ``Repository.get_file_graph`` which can return the
832
per-file revision graph. (Jelmer Vernooij, #775578)
834
* The default implementation of ``Branch`` is now oriented to
835
storing the branch tip. Branch implementations which store the full
836
history should now subclass ``FullHistoryBzrBranch``.
837
``Branch._last_revision_info`` has been renamed to
838
``Branch._read_last_revision_info`` (Jelmer Vernooij)
840
* ``Tree.__iter__`` has been deprecated; use ``Tree.all_file_ids``
841
instead. (Jelmer Vernooij)
843
* ``Tree.get_symlink_target`` now takes an optional ``path``
844
argument. (Jelmer Vernooij)
849
.. Major internal changes, unlikely to be visible to users or plugin
850
developers, but interesting for bzr developers.
852
* ``MutableTree.smart_add`` now uses inventory deltas.
853
(Jelmer Vernooij, #146165)
855
* Removed ``bzrlib.branch._run_with_write_locked_target`` as
856
``bzrlib.cleanup`` provides the same functionality in a more general
857
way. (Andrew Bennetts)
862
.. Fixes and changes that are only relevant to bzr's test framework and
863
suite. This can include new facilities for writing tests, fixes to
864
spurious test failures and changes to the way things should be tested.
866
* A test that was expected to fail but passes instead now counts as a failure
867
catching up with new testtools and subunit handling. (Martin [GZ], #654474)
869
* Make it easier for plugins to reuse the per_workingtree scenarios by
870
restoring the wt_scenarios helper that was accidentally deleted.
871
(Vincent Ladeuil, #783472)
873
* Removed ``test_breakin`` tests that were excessively prone to hanging,
874
did not work on Wine, and partly already disabled.
875
(Martin Pool, #408814, #746985)
877
* Windows locations are different and should be tested accordingly.
878
(Vincent Ladeuil, #788131)
885
This is the second beta of the 2.4 series, leading to a 2.4.0 release in
886
August 2011. Beta releases are suitable for everyday use but may cause some
887
incompatibilities with plugins.
889
This release includes all bug fixed in previous series known at the time of
893
External Compatibility Breaks
894
*****************************
896
.. These may require users to change the way they use Bazaar.
898
* Two command synonyms for ``bzr branch`` have been deprecated, to avoid
899
confusion and to allow the names to later be reused. The removed names
900
are: ``get`` and ``clone``. (Martin Pool, #506265)
905
.. New commands, options, etc that users may wish to try out.
907
* ``bzr commit`` now supports a ``--lossy`` argument that can be used
908
to discard any data that can not be natively represented when committing
909
to a foreign VCS. (Jelmer Vernooij, #587721)
914
.. Improvements to existing commands, especially improved performance
915
or memory usage, or better results.
917
* ``bzr merge`` in large trees is now significantly faster. On a 70k entry
918
tree, the time went from ~3min down to 30s. This also effects ``bzr pull``
919
and ``bzr update`` since they use the same merge logic to update the
920
WorkingTree. (John Arbash Meinel, #759091)
922
* ``bzr revert`` now properly uses ``bzr status``'s optimized
923
``iter_changes``. This can be a significant performance difference (33s
924
to 5s on large trees). (John Arbash Meinel, #759096)
926
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
927
the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
928
being handed off to the remote server anyway (xmlrpc has been mapping
929
``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
930
than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
931
months now.) By doing it ourselves, we can cut out substantial startup
932
time. From Netherlands to London it was taking 368ms to do the XMLRPC
933
call as much as 2s from Sydney. You can test the local logic by using
934
``-Dlaunchpad``. (John Arbash Meinel, #397739)
936
* When building a new WorkingTree (such as during ``bzr co`` or
937
``bzr branch``) we now properly store the stat and hash of files that
938
are old enough. This saves a fair amount of time on the first
939
``bzr status`` (on a 500MB tree, it saves about 30+s).
940
(John Arbash Meinel, #740932)
946
.. Fixes for situations where bzr would previously crash or give incorrect
947
or undesirable results.
949
* Arguments that can't be decoded to unicode in the current posix locale give
950
a clearer error message without a traceback. (Martin [gz], #745712)
952
* ``bzrlib.log._DEFAULT_REQUEST_PARAMS`` is no longer accidentally
953
mutated by ``bzrlib.log._apply_log_request_defaults``. In practice
954
these default values aren't relied on very often so this probably
955
wasn't causing any trouble. (Andrew Bennetts)
957
* ``bzr log`` now works on revisions which are not in the current branch.
958
(Matt Giuca, #241998)
960
* Don't rewrite the dirstate file when non-interesting changes have
961
occurred. This can significantly improve 'bzr status' times when there
962
are only small changes to a large tree.
963
(Ian Clatworthy, John Arbash Meinel, #380202)
965
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
967
* ``bzrlib.merge.Merge`` now calls ``iter_changes`` without
968
``include_unversioned=True``. This makes it significantly faster in many
969
cases, because it only looks at modified files, rather than building
970
information about all files. This can cause failures in other
971
TreeTransform code, because it had been expecting to know the names of
972
things which had not changed (such as parent directories). All cases we
973
know about so far have been fixed, but there may be fallout for edge
974
cases that we are missing. (John Arbash Meinel, #759091)
976
* ``SFTPTransport`` is more pro-active about closing file-handles. This
977
reduces the chance of having threads fail from async requests while
978
running the test suite. (John Arbash Meinel, #656170)
980
* Standalone bzr.exe installation on Windows: user can put additional python
981
libraries into ``site-packages`` subdirectory of the installation directory,
982
this might be required for "installing" extra dependencies for some plugins.
983
(Alexander Belchenko, #743256)
985
* ``transform.revert()`` has been updated to use
986
``wt.iter_changes(basis_tree)`` rather than
987
``basis_tree.iter_changes(wt)``. This allows the optimized code path to
988
kick in, improving ``bzr revert`` times significantly (33s to 4s on
989
large trees, 0.7s to 0.3s on small trees.) (John Arbash Meinel, #759096)
991
* ``TreeTransform.create_file/new_file`` can now take an optional ``sha1``
992
parameter. If supplied, when the transform is applied, it will then call
993
``self._tree._observed_sha1`` for those files. This lets us update the
994
hash-cache for content that we create, preventing us from re-reading the
995
content in the next ``bzr status``. (John Arbash Meinel, #740932)
1000
* Added a section about using a shared SSH account on a server for bzr+ssh
1001
access. (Russell Smith)
1003
* The documentation now recommends using SSH rather than SFTP in the
1004
tutorials and the examples, because that will generally be much faster
1005
and better in cases where it can be used. SFTP is still available and
1006
mentioned as an alternative. (Martin Pool, #636712)
1011
.. Changes that may require updates in plugins or other code that uses
1014
* ``Branch.update_revisions`` has been made private and should no
1015
longer be used by external users. Use ``Branch.pull`` or ``Branch.push``
1016
instead. (Jelmer Vernooij, #771765)
1018
* Commands now have an `invoked_as` attribute, showing the name under
1019
which they were called before alias expansion.
1022
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
1025
* If you call `bzrlib.initialize` but forget to enter the resulting object
1026
as a context manager, bzrlib will now be initialized anyhow.
1027
(Previously simple programs calling bzrlib might find the library was
1028
mysteriously silent.)
1031
* Inventory-specific functionality has been split out of ``Tree`` into
1032
a new ``InventoryTree`` class. Tree instances no longer
1033
necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
1035
* Inventory-specific functionality has been split out of ``RevisionTree``
1036
into a new ``InventoryRevisionTree`` class. RevisionTree instances no
1037
longer necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
1039
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
1041
* ``revision_graph_can_have_wrong_parents`` is now an attribute
1042
on ``RepositoryFormat`` rather than a method on ``Repository``.
1045
* ``Testament`` now takes a ``tree`` rather than an
1046
``inventory``. (Jelmer Vernooij, #762608)
1048
* ``TestCase.failUnlessExists`` and ``failIfExists`` are deprecated in
1049
favour of ``assertPathExists`` and ``assertPathDoesNotExist``
1053
* The ``revno`` parameter of ``log.LogRevision`` may now be None,
1054
representing a revision which is not in the current branch.
1055
(Matt Giuca, #241998)
1057
* The various knit pack repository format classes have been moved
1058
from ``bzrlib.repofmt.pack_repo`` to
1059
``bzrlib.repofmt.knitpack_repo``. (Jelmer Vernooij)
1061
* ``RevisionTree`` now has a new method ``get_file_revision``.
1064
* ``WorkingTree`` no longer provides an ``inventory``. Instead,
1065
all inventory-related functionality is now on the subclass
1066
``InventoryWorkingTree`` that all native Bazaar working tree
1067
implementations derive from. (Jelmer Vernooij)
1072
.. Major internal changes, unlikely to be visible to users or plugin
1073
developers, but interesting for bzr developers.
1075
* Added ``osutils.lstat`` and ``osutils.fstat``. These are just the ``os``
1076
functions on Linux, but they are wrapped on Windows so that fstat
1077
matches lstat results across all python versions.
1078
(John Arbash Meinel)
1080
* ``WorkingTree._observed_sha1`` also updates the 'size' column. It
1081
happened to be updated as a side-effect of commit, but if we start using
1082
the function elsewhere we might as well do it directly.
1083
(John Arbash Meinel)
1088
.. Fixes and changes that are only relevant to bzr's test framework and
1089
suite. This can include new facilities for writing tests, fixes to
1090
spurious test failures and changes to the way things should be tested.
1092
* Stop using `failIf`, `failUnless`, `failIfEqual`, etc, that give
1093
`PendingDeprecationWarnings` on Python2.7.
1094
(Martin Pool, #760435)
1102
This is the first beta of the 2.4 series, leading up to a 2.4.0
1103
release in August 2011. Beta releases are suitable for everyday use
1104
but may cause some incompatibilities with plugins. Some plugins may need
1105
small updates to work with 2.4b1.
1107
External Compatibility Breaks
1108
*****************************
1115
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
1116
in GNU format. See ``bzr help changelog_merge`` for details.
1119
* Configuration options can now use references to other options in the same
1120
file by enclosing them with curly brackets (``{other_opt}``). This makes it
1121
possible to use, for example,
1122
``push_location=lp:~vila/bzr/config-{nickname}`` in ``branch.conf`` when
1123
using a loom. During the beta period, the default behaviour is to disable
1124
this feature. It can be activated by declaring ``bzr.config.expand = True``
1125
in ``bazaar.conf``. (Vincent Ladeuil)
1127
* External merge tools can now be configured in bazaar.conf. See
1128
``bzr help configuration`` for more information. (Gordon Tyler, #489915)
1130
* The ``lp:`` directory service now supports Launchpad's QA staging.
1131
(Jelmer Vernooij, #667483)
1136
* A new hidden command ``bzr repair-workingtree``. This is a way to force
1137
the dirstate file to be rebuilt, rather than using a ``bzr checkout``
1138
workaround. (John Arbash Meinel)
1140
* Added a ``Branch.heads_to_fetch`` RPC to the smart server protocol.
1141
This allows formats from plugins (such as looms) to efficiently tell the
1142
client which revisions need to be fetched. (Andrew Bennetts)
1144
* Branching, merging and pulling a branch now copies revisions named in
1145
tags, not just the tag metadata. (Andrew Bennetts, #309682)
1147
* ``bzr cat-revision`` no longer requires a working tree.
1148
(Jelmer Vernooij, #704405)
1150
* ``bzr export --per-file-timestamps`` for .tar.gz files will now
1151
override the mtime for trees exported on Python 2.7 and later, which
1152
expose the 'mtime' field in gzip files. This makes the output of
1153
``bzr export --per-file-timestamps`` for a particular tree
1154
deterministic. (Jelmer Vernooij, #711226)
1156
* ``bzr export --format=zip`` can now export to standard output,
1157
like the other exporters can. (Jelmer Vernooij, #513752)
1159
* ``bzr export`` can now create ``.tar.xz`` and ``.tar.lzma`` files.
1160
(Jelmer Vernooij, #551714)
1162
* Getting all entries from ``CHKInventory.iter_entries_by_dir()`` has been
1163
sped up dramatically for large trees. Iterating by dir is not the best
1164
way to load data from a CHK inventory, so it preloads all the items in
1165
the correct order. (With the gcc-tree, this changes it (re)reading 8GB
1166
of CHK data, down to just 150MB.) This has noticeable affects for things
1167
like building checkouts, etc. (John Arbash Meinel, #737234)
1172
* A MemoryError thrown on the server during a remote operation will now be
1173
usefully reported, and other unexpected errors will include the class name.
1174
(Martin [gz], #722416)
1176
* ``bzr annotate -r-1 file`` will now properly annotate a deleted file.
1177
(Andrew King, #537442)
1179
* ``bzr export`` to zip files will now set a mode on directories.
1180
(Jelmer Vernooij, #207253)
1182
* ``bzr export`` to tgz files will only write out the basename of the
1183
tarfile to the gzip file. (Jelmer Vernooij, #102234)
1185
* ``bzr push --overwrite`` with an older revision specified will now correctly
1186
roll back the target branch. (Jelmer Vernooij, #386576)
1188
* ``bzr lp-propose`` can now propose merges against packaging branches on
1189
Launchpad without requiring the target branch to be specified.
1190
(Jelmer Vernooij, #704647)
1192
* ``bzr lp-propose`` no longer requires a reviewer to be specified. It will
1193
instead leave setting the reviewer up to Launchpad if it was not specified.
1194
(Jelmer Vernooij, #583772)
1196
* ``bzr pull`` will now exit with exit code 1 if there were tag conflicts.
1197
(Jelmer Vernooij, #213185)
1199
* ``bzr mv`` user errors no longer throw UnicodeEncodeError with non-ascii
1200
paths, however they may still print junk if not on a UTF-8 terminal.
1201
(Martin [gz], #707954)
1203
* ``bzr reconfigure --unstacked`` now copies revisions (and their
1204
ancestors) named in tags into the unstacked repository, not just the
1205
ancestry of the branch's tip. (Andrew Bennetts, #401646)
1207
* ``bzr serve`` no longer crashes when a server_started hook is installed and
1208
IPv6 support is available on the system. (Jelmer Vernooij, #293697)
1210
* ``bzr status`` will not rewrite the dirstate file if it only has
1211
'trivial' changes. (Currently limited to dir updates and newly-added
1212
files changing state.) This saves a bit of time for regular operations.
1213
eg. ``bzr status`` in a 100k tree takes 1.4s to compute the status, but 1s
1214
to re-save the dirstate file. (John Arbash Meinel, #765881)
1216
* ``bzr tags`` will no longer choke on branches with ghost revisions in
1217
their mainline and tags on revisions not in the branch ancestry.
1218
(Jelmer Vernooij, #397556)
1220
* ``bzr whoami`` will now display an error if both a new identity and
1221
``--email`` were specified. (Jelmer Vernooij, #680449)
1223
* ``launchpadlib`` doesn't provide the ``uris`` module in some old versions.
1224
(Vincent Ladeuil, #706835)
1226
* Empty entries in the ``NO_PROXY`` variable are no longer treated as matching
1228
(Martin Pool, #586341)
1230
* Plugins incompatible with the current version of bzr no longer produce a
1231
warning on every command invocation. Instead, a message is shown by
1232
``bzr plugins`` and in crash reports.
1233
(#704195, Martin Pool)
1235
* The "pretty" version of ``needs_read_lock`` and ``needs_write_lock`` now
1236
preserves the identity of default parameter values.
1237
(Andrew Bennetts, #718569)
1239
* ``bzr dump-btree --raw`` no longer tracebacks on a B-Tree file
1240
containing no rows. (Eric Siegerman, #715508)
1242
* Fix ``bzr lp-mirror`` to work on command line branch URLs and branches
1243
without an explicit public location. (Max Bowsher)
1245
* On Python 2.6 and higher, use multiprocessing.cpu_count() to retrieve the
1246
number of available processors. (Jelmer Vernooij, #693140)
1251
* Added ``Branch.heads_to_fetch`` method. Implementations of the Branch API
1252
must now inherit or implement this method. (Andrew Bennetts, #721328)
1254
* Added ``bzrlib.mergetools`` module with helper functions for working with
1255
the list of external merge tools. (Gordon Tyler, #489915)
1257
* All methods and arguments that were deprecated before 2.0
1258
have been removed. (Jelmer Vernooij)
1260
* Branch formats should now be registered on the format registry
1261
(``bzrlib.branch.format_registry``) rather than using the class
1262
methods on ``BranchFormat``. (Jelmer Vernooij, #714729)
1264
* ``Branch.set_revision_history`` is now deprecated.
1267
* ``BranchFormat.supports_leaving_lock()`` and
1268
``RepositoryFormat.supports_leaving_lock`` flags have been added.
1271
* ``Branch.fetch`` implementations must now accept an optional
1272
``fetch_tags`` keyword argument. (Andrew Bennetts)
1274
* ``Branch.import_last_revision_info`` is deprecated. Use the
1275
``import_last_revision_info_and_tags`` method instead.
1278
* Because it was too specific to BzrDir implementations,
1279
``ControlDir.sprout`` no longer has a default implementation; it now
1280
raises ``NotImplementedError``. (Jelmer Vernooij, #717937)
1282
* ``bzrlib.deprecated_graph`` has been removed. ``bzrlib.graph``
1283
scales better tree and should be used instead.
1284
(Jelmer Vernooij, #733612)
1286
* ``ControlDirFormat.register_format`` has been removed. Instead,
1287
``Prober`` implementations should now implement a ``known_formats``
1288
method. (Jelmer Vernooij)
1290
* ControlDirFormats can now provide a ``check_status`` method and
1291
raise a custom exception or warning when an unsupported or deprecated
1292
format is being opened. (Jelmer Vernooij, #731311)
1294
* ``bzrlib.revionspec.dwim_revspecs`` is deprecated.
1295
Use ``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_revspec`` and
1296
``bzrlib.revisionspec.RevisionSpec_dwim.append_possible_lazy_revspec``
1297
instead. (Jelmer Vernooij, #721971)
1299
* ``BzrDirFormat`` has a new attribute ``fixed_components`` that
1300
indicates whether the components of the bzrdir can be upgraded
1301
independent of the ``BzrDir``. (Jelmer Vernooij)
1303
* ``BzrProber.register_format`` and ``BzrProber.unregister_format`` are
1304
now deprecated in favour of the ``BzrProber.formats`` format registry.
1307
* ``ControlDir`` implementations no longer have to provide the
1308
``get_branch_transport``, ``get_workingtree_transport`` and
1309
``get_repository_transport`` methods. (Jelmer Vernooij, #730325)
1311
* ``Converter`` has been moved from ``bzrlib.bzrdir`` to
1312
``bzrlib.controldir``. (Jelmer Vernooij)
1314
* Repository formats can now provide
1315
``_get_extra_interrepo_test_combinations`` in the same module
1316
to provide extra test combinations for ``bzrlib.tests.per_repository``.
1319
* Repository formats should now be registered on the format registry
1320
(``bzrlib.repository.format_registry``) rather than using the class
1321
methods on ``RepositoryFormat``. (Jelmer Vernooij)
1323
* Repository formats can now indicate they do not support the full
1324
VersionedFiles API by setting the ``supports_full_versioned_files``
1325
attribute to False. A subset of the VersionedFiles API
1326
(signatures and text graphs) still needs to be supported.
1329
* Repository formats have a new method ``is_deprecated`` that
1330
implementations can override to return True to trigger a deprecation
1331
warning. (Jelmer Vernooij)
1333
* The ``revision_id`` parameter of
1334
``Repository.search_missing_revision_ids`` and
1335
``InterRepository.search_missing_revision_ids`` is deprecated. It is
1336
replaced by the ``revision_ids`` parameter. (Andrew Bennetts)
1338
* Working tree formats should now be registered on the format registry
1339
(``bzrlib.working_tree.format_registry``) rather than using the class
1340
methods on ``WorkingTreeFormat``. (Jelmer Vernooij, #714730)
1342
* Exporting may now be done with a generator
1343
(``bzrlib.export.get_export_generator``) (Geoff/xaav, #791005)
1348
* ``CatchingExceptionThread`` (formerly ThreadWithException) has been moved
1349
out of the ``bzrlib.tests`` hierarchy to make it clearer that it can be used
1350
outside of tests. This class makes it easier to track exceptions in threads
1351
by catching them so they can be re-raised in the controlling thread. It's
1352
available in the ``bzrlib.cethread`` module. (Vincent Ladeuil)
1354
* Correctly propagate malloc failures from diff-delta.c code as MemoryError
1355
so OOM conditions during groupcompress are clearly reported. This entailed a
1356
change to several function signatures. (Martin [gz], #633336)
1358
* ``HookPoint.lazy_hook`` and ``Hooks.install_named_lazy_hook`` can install
1359
hooks for which the callable is loaded lazily. (Jelmer Vernooij)
1364
* The Range parsing for HTTP requests will correctly parse incomplete ranges.
1365
(Vincent Ladeuil, #731240)
1368
vim: tw=74 ft=rst ff=unix