11
:2.4.2: 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
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
30
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
35
* Fixed loading of external merge tools from config to properly decode
36
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
41
.. Improved or updated documentation.
46
.. Changes that may require updates in plugins or other code that uses
52
.. Major internal changes, unlikely to be visible to users or plugin
53
developers, but interesting for bzr developers.
58
.. Fixes and changes that are only relevant to bzr's test framework and
59
suite. This can include new facilities for writing tests, fixes to
60
spurious test failures and changes to the way things should be tested.
68
This is a bugfix release. Upgrading is recommended for all users of earlier
71
It includes fixes from previous stable releases and address some issues with
75
External Compatibility Breaks
76
*****************************
78
.. These may require users to change the way they use Bazaar.
83
.. New commands, options, etc that users may wish to try out.
88
.. Improvements to existing commands, especially improved performance
89
or memory usage, or better results.
94
.. Fixes for situations where bzr would previously crash or give incorrect
95
or undesirable results.
97
* ``config.LocationMatcher`` properly excludes unrelated sections.
98
(Vincent Ladeuil, #829237)
100
* ``dirstate.fdatasync`` and ``repository.fdatasync`` can now properly be
101
disabled. (Vincent Ladeuil, #824513)
103
* Disable ``os.fsync`` and ``os.fdatasync`` by default when running
104
``bzr selftest``. You can use ``--sync`` to re-enable them.
105
(John Arbash Meinel, #837293)
107
* Fix i18n use when no environment variables are set. (Jelmer Vernooij, #810701)
109
* Avoid UnicodeDecode error when reporting EINVAL from transports.
110
(IWATA Hidetaka, #829237)
115
.. Improved or updated documentation.
117
* Corrected documentation for BZR_PROGRESS_BAR.
118
(Dennis Benzinger, #735417)
123
.. Changes that may require updates in plugins or other code that uses
129
.. Major internal changes, unlikely to be visible to users or plugin
130
developers, but interesting for bzr developers.
135
.. Fixes and changes that are only relevant to bzr's test framework and
136
suite. This can include new facilities for writing tests, fixes to
137
spurious test failures and changes to the way things should be tested.
139
* The test suite should now be able to run under weird environments where
140
``/etc/passwd`` doesn't contain the ``uid`` for the user running selftest
141
or where ``fakeroot`` is used but ``/root`` is inacessible.
142
(Vincent Ladeuil, #825027)
149
This release marks the start of a new long-term-stable series. From here, we
150
will only make bugfix releases on the 2.4 series (2.4.1, etc, and support it
151
until February 2013), while 2.5 will become our new development series.
153
This is a bugfix and polish release over the 2.3 series, with a large number
154
of bugs fixed (>150 for the 2.4 series alone), and some performance
155
improvements. Support for python 2.4 and 2.5 has been dropped, many large
156
working tree operations have been optimized as well as some stacked branches
159
Only bugfixes from other stables series have been included since 2.4b5 so
160
all known fixed bugs are included here.
162
Users are encouraged to upgrade from the other stable series.
165
External Compatibility Breaks
166
*****************************
168
.. These may require users to change the way they use Bazaar.
173
.. New commands, options, etc that users may wish to try out.
178
.. Improvements to existing commands, especially improved performance
179
or memory usage, or better results.
184
.. Fixes for situations where bzr would previously crash or give incorrect
185
or undesirable results.
187
* A call to CHKInventory's filter-method will not result in a
188
DuplicateFileId error, if you move a subfolder and change a file in
190
(Bastian Bowe, #809901)
192
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
193
checks to see if the most recent published source package version for
194
that project is present in the branch tags. This should help developers
195
trust whether the packaging branch is up-to-date and can be used for new
196
changes. The level of verbosity is controlled by the config item
197
``launchpad.packaging_verbosity``. It can be set to one of
204
only display if the branch is out-of-date
207
also display single-line up-to-date and missing,
211
(default) display multi-line content for all states
214
(John Arbash Meinel, #609187, #812928)
216
* Cope with not all Python versions having a ``clear`` method on
217
``TestCase._type_equality_funcs``.
218
(Martin [gz], Jelmer Vernooij, #809048)
220
* Fetching tags when fetching the tip revision of a branch is now
221
controlled by the config setting ``branch.fetch_tags``. The behavior has
222
been reverted to 2.3's not-fetching tagged revisions by default.
223
(John Arbash Meinel, #771184)
225
* The fix for bug #513709 caused us to open a new connection when
226
switching a lightweight checkout that was pointing at a bound branch.
227
This isn't necessary because we know the master URL without opening it,
228
avoiding an extra SSH connection, etc.
229
(John Arbash Meinel, #812285)
235
.. Improved or updated documentation.
240
.. Changes that may require updates in plugins or other code that uses
246
.. Major internal changes, unlikely to be visible to users or plugin
247
developers, but interesting for bzr developers.
252
.. Fixes and changes that are only relevant to bzr's test framework and
253
suite. This can include new facilities for writing tests, fixes to
254
spurious test failures and changes to the way things should be tested.
256
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
257
cleanly and reliably allows tests using `BranchBuilder` to construct
258
branches that e.g. rename files out of a directory and unversion that
259
directory in the same revision. Previously some changes were impossible
260
due to the order that `build_snapshot` performs its actions.
263
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
264
just compares the bytes in the dirstate file to its pristine state,
265
rather than opening the WorkingTree and calling ``last_revision()``.
266
This reduces the overall test suite time by about 10% on my laptop.
275
This is the fifth (and last) beta of the 2.4 series leading to
276
2.4.0 release in August 2011. Beta releases are suitable for
277
everyday use but may cause some incompatibilities with plugins.
279
This release includes all bug fixed in previous series known at
280
the time of this release.
282
External Compatibility Breaks
283
*****************************
290
* New command ``verify-signatures`` to check if all commits or specified commits
291
have digital signatures from trusted keys. Requires python-gpgme to be
294
* New option ``--signatures`` for ``bzr log`` to display digital signature
295
verification results for each commit.
297
* Config option acceptable_keys to list which GPG keys are verified as trusted.
299
* Config option validate_signatures_in_log to always show signatures in
305
* ``Branch.open`` is now about 3x faster (about 2ms instead of 6.5ms).
308
* Pack, dirstate, and index files are synced to persistent storage if
309
possible when writing finishes, to reduce the risk of problems caused by
310
a machine crash or similar problem. This can be turned off through the
311
``dirstate.fdatasync`` and ``repository.fdatasync`` options, which can
312
be set in ``locations.conf`` or ``bazaar.conf``. (Martin Pool,
318
* Display a proper error message when a config file content cannot be
319
decoded as UTF-8 or when it cannot be parsed.
320
(Vincent Ladeuil, #502060, #688677, #797246)
322
* Generate a single conflict (instead of two) when merging a branch
323
modifying and renaming a file in a branch that deleted it (or vice-versa).
324
(Vincent Ladeuil, #688101)
326
* Give a more helpful message when the bzr executable doesn't match the
327
library. (This typically happens because of a misconfigured PYTHONPATH
328
or half-installed bzr.)
329
(Martin Pool, #804553)
331
* Properly load utf8-encoded config files. (Vincent Ladeuil, #799212)
333
* ``GraphThunkIdsToKeys.merge_sort`` now properly returns
334
keys rather than ids. (Jelmer Vernooij, #799677)
336
* ``TreeTransformBase.fixup_new_roots`` can now check that a tree root
337
is present. (Jelmer Vernooij, #801257)
342
* New attributes ``WorkingTreeFormat.supports_versioned_directories`` and
343
``RepositoryFormat.supports_versioned_directories``.
344
(Jelmer Vernooij, #765815)
346
* The "revno" field type when using the python version-info format is now
347
a string (to handle dotted revnos) (Benoît Pierre, #796259)
352
* Start implementing localization, starting with command help text (but not
353
the command options themselves). This will allow bootstrapping the bzr
354
internationalization process. (Inada Naoki)
359
* Fix test failures when running as a homeless user (debian buildd). Tests
360
leaking into ``${HOME}/.bzr.log`` should be detected properly now.
361
(Vincent Ladeuil, #798698)
368
This is the fourth beta of the 2.4 series, leading to a 2.4.0 release in
369
August 2011. Beta releases are suitable for everyday use but may cause some
370
incompatibilities with plugins.
372
This release includes all bug fixed in previous series known at the time of
376
External Compatibility Breaks
377
*****************************
379
.. These may require users to change the way they use Bazaar.
381
* Do not treat configuration option 'check_signatures = require' as if
382
it were 'create_signatures = always' (Jonathan Riddell)
387
.. New commands, options, etc that users may wish to try out.
389
* Hooks have been added for config stacks: ``get``, ``set`` and ``remove``
390
are called when an option is respectively read, modified or deleted. Also
391
added ``load`` and ``save`` hooks for config stores, called when the
392
stores are loaded or saved. (Vincent Ladeuil)
394
* New hook server_exception in bzrlib.smart.server to catch any
395
exception caused while running bzr serve.
396
(Jonathan Riddell, #274578)
398
* New hook set_commit_message in bzrlib.msgeditor to set a commit message
399
and revision properties. (Jonathan Riddell, #274578)
401
* Support ``-S`` as an alias for ``--short`` for the ``log`` and
402
``missing`` commands. (Martin von Gagern, #38655)
407
.. Improvements to existing commands, especially improved performance
408
or memory usage, or better results.
410
* ``bzr annotate`` can be run without setting whoami data first.
411
(Jonathan Riddell, #667408)
416
.. Fixes for situations where bzr would previously crash or give incorrect
417
or undesirable results.
419
* Bazaar can now detect when a lock file is held by a dead process
420
originating from the same machine, and steal the lock after printing a
421
message to the user. This is off by default, for safety, but can be
422
turned on by setting the configuration variable ``locks.steal_dead`` to
424
(Martin Pool, #220464)
426
* ``bzr version-info`` now works when the tree is on a dotted revno.
427
(Benoît Pierre, #796259)
429
* Credentials in the log output produced by ``-Dhttp`` are masked so users
430
can more freely post them in bug reports. (Vincent Ladeuil, #723074)
432
* Fix a race condition for ``server_started`` hooks leading to a spurious
433
test failure. (Vincent Ladeuil, #789167)
435
* Fix exporting subdirectory with ``--per-file-timestamps``.
436
(Szilveszter Farkas, #795557)
438
* Handle files that get created but don't get used during TreeTransform.
439
``open()`` can create a file, and still raise an exception before it
440
returns. So anything we might have created, make sure we destroy during
441
``finalize()``. (Martin [gz], #597686)
443
* ``pack_repo`` now uses ``Transport.move`` instead of
444
``Transport.rename``, deleting any existing targets even on SFTP.
445
(Martin von Gagern, #421776)
447
* Pass the ``build_mo`` command to the rest of the setup() calls in
448
setup.py. The ``bdist_wininst`` and ``py2exe`` code paths were failing
449
because ``build_mo`` became a required step that they didn't know about.
450
(John Arbash Meinel, #787122)
452
* Preserve existing ``root-id`` when merging an unrelated branch.
453
(Aaron Bentley, #806356)
455
* Properly avoid re-adding a file after it changes case on CICP
456
filesystems. (John Arbash Meinel, #798130)
458
* Reports the original error when an InvalidHttpResponse exception is
459
encountered to facilitate debug. (Vincent Ladeuil, #788530)
461
* Reports a non-existent file error when trying to merge in a file
462
that does not exist. (Jonathan Riddell, #330063)
464
* ``UIFactory.prompt``, ``UIFactory.get_username``,
465
``UIFactory.get_password`` and ``UIFactory.get_boolean`` now require a
466
unicode prompt to be passed in. (Jelmer Vernooij, #592083)
468
* Support merging into the empty tree. (Aaron Bentley, #595328)
473
.. Improved or updated documentation.
475
* Improve documentation of ``bzr merge --force``.
476
(Neil Martinsen-Burrell, #767307)
478
* Make docs for configuration options for digital signatures match
479
reality. (Jonathan Riddell)
481
* Add user-guide page on GPG signatures. (Jonathan Riddell)
486
.. Changes that may require updates in plugins or other code that uses
489
* Checking for a file id in a `Tree` or `Inventory` using ``in`` is now
490
deprecated. Instead, use `has_id`.
493
* Exporters are now all exposed as generators, rather than as single-call
494
functions, so that calling code can take stream the output.
497
* Information about held lockdir locks returned from eg `LockDir.peek` is
498
now represented as a `LockHeldInfo` object, rather than a plain
502
* Remove `file_status` function.
505
* ``Repository.iter_reverse_revision_history`` is now deprecated.
506
Use ``Graph.iter_lefthand_ancestry`` instead.
507
(Jelmer Vernooij, #739481)
509
* ``Repository.get_ancestry`` has been deprecated. Use
510
``Graph.iter_ancestry`` instead.
511
(Jelmer Vernooij, #784511)
516
.. Major internal changes, unlikely to be visible to users or plugin
517
developers, but interesting for bzr developers.
519
* ``tools/check-newsbugs.py`` accepts a ``--browser`` option to open
520
corresponding launchpad pages in a browser. (Vincent Ladeuil)
525
.. Fixes and changes that are only relevant to bzr's test framework and
526
suite. This can include new facilities for writing tests, fixes to
527
spurious test failures and changes to the way things should be tested.
529
* A `ImportTariffTestCase` base class has been added in
530
``bzrlib.tests.test_import_tariff``, which can be used for import tariff
531
tests in plugins. (Jelmer Vernooij, #793465)
533
* Fix deadlock in `TestImportTariffs.test_simple_serve` when stderr gets
534
more output than fits in the default buffer. This was happening on the
535
Windows buildslave, and could easily happen in other circumstances where
536
the default OS buffer size for pipes is small or the ``python -v``
537
output is large. (Andrew Bennetts, #784802)
539
* Fix spurious test failure on OSX for WorkingTreeFormat2.
540
(Vincent Ladeuil, #787942)
542
* Re-target ``bb.test_merge.TestMerge.test_merge_reversed_revision_range``
543
and rewrite it as a parametrized test to avoid unrelated failures.
544
(Vincent Ladeuil, #795456)
546
* Show log file contents from subprocesses started by
547
`start_bzr_subprocess` in test failure details. This may help diagnose
548
strange hangs and failures involving subprocesses. (Andrew Bennetts)
550
* Skip ``utextwrap`` tests when ``sphinx`` breaks text_wrap by an hostile
551
monkey-patch to textwrap.TextWrapper.wordsep_re.
552
(Vincent Ladeuil, #785098)
554
* Multiple ``selftest --exclude`` options are now combined instead of
555
overriding each other. (Vincent Ladeuil, #746991)
557
* Restore some ``FTPTransport`` test coverage by allowing ``pyftpdlib
558
0.6.0`` to be used. Also restore ``medusa`` support while leaving it
559
disabled to make it easier to use if/when we can in the future.
560
(Vincent Ladeuil, #781140)
562
* `TestImportTariffs` no longer uses the real ``$HOME``. This prevents it
563
from polluting ``$HOME/.bzr.log`` or being accidentally influenced by
564
user configuration such as aliases. It still runs with all the user's
565
plugins enabled, as intended.
566
(Vincent Ladeuil, Andrew Bennetts, #789505)
574
This is the third beta of the 2.4 series, leading to a 2.4.0 release in
575
August 2011. Beta releases are suitable for everyday use but may cause some
576
incompatibilities with plugins.
578
This release includes all bug fixed in previous series known at the time of
582
External Compatibility Breaks
583
*****************************
585
.. These may require users to change the way they use Bazaar.
587
* ``bzr-2.4`` has officially dropped support for python2.4 and python2.5.
588
We will continue to maintain ``bzr-2.3`` for people who still need to
589
use those versions of python. (John Arbash Meinel)
594
.. New commands, options, etc that users may wish to try out.
596
* The text compressor used for 2a repositories now has a tweakable
597
parameter that can be set in bazaar.conf.
598
``bzr.groupcompress.max_entries_per_source`` default of 65536.
599
When doing compression, we build up an index of locations to match
600
against. Setting this higher will result in slightly better compression,
601
at a cost of more memory. Note that a value of 65k represents fully
602
sampling a 1MB file. So this only has an effect when compressing texts
603
larger than N*16 bytes. (John Arbash Meinel, #602614)
608
.. Improvements to existing commands, especially improved performance
609
or memory usage, or better results.
611
* ``bzr branch --stacked`` from a smart server uses the network a little
612
more efficiently. For a simple branch it reduces the number of
613
round-trips by about 20%. (Andrew Bennetts)
615
* ``bzr log --line`` scales the width of the author field with the size of
616
the line. This means that the full author name is shown when the
617
environment variable BZR_COLUMNS=0. (Neil Martinsen-Burrell)
619
* ``bzr pull`` now properly triggers the fast
620
``CHKInventory.iter_changes`` rather than the slow generic
621
inter-Inventory changes. It used to use a ``DirStateRevisionTree`` as
622
one of the source trees, which is faster when we have to read the whole
623
inventory anyway, but much slower when we can get just the delta out of
624
the repository. On a 70k record tree, this changes ``bzr pull`` from 28s
625
down to 17s. (John Arbash Meinel, #780677)
627
* Slightly reduced memory consumption when fetching into a 2a repository
628
by reusing existing caching a little better. (Andrew Bennetts)
630
* Speed up ``bzr status`` by a little bit when there are a couple of
631
modified files. We now track how many files we have seen that need
632
updating, and only rewrite the dirstate file if enough of them have
633
changed. The default is 10, and can be overridden by setting the branch
634
option "``bzr.workingtree.worth_saving_limit``".
635
(Ian Clatworthy, John Arbash Meinel, #380202)
637
* Speed up ``bzr uncommit``. Instead of resetting the dirstate from
638
scratch, use ``update_basis_by_delta``, computing the delta from the
639
repository. (John Arbash Meinel, #780544)
644
.. Fixes for situations where bzr would previously crash or give incorrect
645
or undesirable results.
647
* All Tree types can now be exported as tar.*, zip or directories.
650
* ``bzr merge --no-remember location`` never sets ``submit_branch``.
651
(Vincent Ladeuil, #782169)
653
* ``bzr pull --no-remember location`` never sets
654
``parent_location``. ``bzr push --no-remember location`` never
655
sets ``push_location``. ``bzr send --no-remember
656
submit_location public_location`` never sets ``submit_branch``
657
nor ``public_branch``. (Vincent Ladeuil)
659
* Conflicts involving non-ascii filenames are now properly reported rather
660
than failing with a UnicodeEncodeError. (Martin [GZ], #686161)
662
* Correct parent is now set when using 'switch -b' with bound branches.
663
(A. S. Budden, #513709)
665
* Fix `bzr plugins` regression in bzr 2.4 which resulted in a traceback
666
from writelines on ckj terminals. (Martin [GZ], #754082)
668
* ``WT.inventory`` and ``WT.iter_entries_by_dir()`` was not correctly
669
reporting subdirectories that were tree references (in formats that
670
supported them). (John Arbash Meinel, #764677)
672
* Merging into empty branches now gives an error as this is currently
673
not supported. (Jonathan Riddell, #242175)
675
* Do not show exception to user on pointless commit error.
676
(Jonathan Riddell #317357)
678
* ``WT.update_basis_by_delta`` no longer requires that the deltas match
679
the current WT state. This allows ``update_basis_by_delta`` to be used
680
by more commands than just commit. Updating with a delta allows us to
681
not load the whole inventory, which can take 10+s with large trees.
682
(Jonathan Riddell, John Arbash Meinel, #781168)
684
* ``bzr mv --after old_name new_name`` now works if "new_name" is newly
685
added. (Benoît Pierre)
691
.. Improved or updated documentation.
693
* Restore the workaround for option names including dots (--1.14) which was
694
disabled when we stopped listing --1.9 as a format.
695
(Vincent Ladeuil, #782289)
700
.. Changes that may require updates in plugins or other code that uses
703
* ``annotate_file`` has been deprecated in favor of
704
``annotate_file_revision_tree``. (Jelmer Vernooij, #775598)
706
* ``Branch.fetch`` now takes an optional ``limit`` argument.
707
(Andrew Bennetts, Jelmer Vernooij, #750175)
709
* ``Inter.get`` now raises ``NoCompatibleInter`` if there are no
710
compatible optimisers rather than an instance of the class it is called
711
on. (Jelmer Vernooij)
713
* ``Branch.push`` now takes a ``lossy`` argument.
714
``Branch.lossy_push`` has been removed.
717
* New method ``Repository.get_file_graph`` which can return the
718
per-file revision graph. (Jelmer Vernooij, #775578)
720
* The default implementation of ``Branch`` is now oriented to
721
storing the branch tip. Branch implementations which store the full
722
history should now subclass ``FullHistoryBzrBranch``.
723
``Branch._last_revision_info`` has been renamed to
724
``Branch._read_last_revision_info`` (Jelmer Vernooij)
726
* ``Tree.__iter__`` has been deprecated; use ``Tree.all_file_ids``
727
instead. (Jelmer Vernooij)
729
* ``Tree.get_symlink_target`` now takes an optional ``path``
730
argument. (Jelmer Vernooij)
735
.. Major internal changes, unlikely to be visible to users or plugin
736
developers, but interesting for bzr developers.
738
* ``MutableTree.smart_add`` now uses inventory deltas.
739
(Jelmer Vernooij, #146165)
741
* Removed ``bzrlib.branch._run_with_write_locked_target`` as
742
``bzrlib.cleanup`` provides the same functionality in a more general
743
way. (Andrew Bennetts)
748
.. Fixes and changes that are only relevant to bzr's test framework and
749
suite. This can include new facilities for writing tests, fixes to
750
spurious test failures and changes to the way things should be tested.
752
* A test that was expected to fail but passes instead now counts as a failure
753
catching up with new testtools and subunit handling. (Martin [GZ], #654474)
755
* Make it easier for plugins to reuse the per_workingtree scenarios by
756
restoring the wt_scenarios helper that was accidentally deleted.
757
(Vincent Ladeuil, #783472)
759
* Removed ``test_breakin`` tests that were excessively prone to hanging,
760
did not work on Wine, and partly already disabled.
761
(Martin Pool, #408814, #746985)
763
* Windows locations are different and should be tested accordingly.
764
(Vincent Ladeuil, #788131)
771
This is the second beta of the 2.4 series, leading to a 2.4.0 release in
772
August 2011. Beta releases are suitable for everyday use but may cause some
773
incompatibilities with plugins.
775
This release includes all bug fixed in previous series known at the time of
779
External Compatibility Breaks
780
*****************************
782
.. These may require users to change the way they use Bazaar.
784
* Two command synonyms for ``bzr branch`` have been deprecated, to avoid
785
confusion and to allow the names to later be reused. The removed names
786
are: ``get`` and ``clone``. (Martin Pool, #506265)
791
.. New commands, options, etc that users may wish to try out.
793
* ``bzr commit`` now supports a ``--lossy`` argument that can be used
794
to discard any data that can not be natively represented when committing
795
to a foreign VCS. (Jelmer Vernooij, #587721)
800
.. Improvements to existing commands, especially improved performance
801
or memory usage, or better results.
803
* ``bzr merge`` in large trees is now significantly faster. On a 70k entry
804
tree, the time went from ~3min down to 30s. This also effects ``bzr pull``
805
and ``bzr update`` since they use the same merge logic to update the
806
WorkingTree. (John Arbash Meinel, #759091)
808
* ``bzr revert`` now properly uses ``bzr status``'s optimized
809
``iter_changes``. This can be a significant performance difference (33s
810
to 5s on large trees). (John Arbash Meinel, #759096)
812
* Resolve ``lp:FOO`` urls locally rather than doing an XMLRPC request if
813
the user has done ``bzr launchpad-login``. The bzr+ssh URLs were already
814
being handed off to the remote server anyway (xmlrpc has been mapping
815
``lp:bzr`` to ``bzr+ssh://bazaar.launchpad.net/+branch/bzr``, rather
816
than ``bzr+ssh://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev`` for a few
817
months now.) By doing it ourselves, we can cut out substantial startup
818
time. From Netherlands to London it was taking 368ms to do the XMLRPC
819
call as much as 2s from Sydney. You can test the local logic by using
820
``-Dlaunchpad``. (John Arbash Meinel, #397739)
822
* When building a new WorkingTree (such as during ``bzr co`` or
823
``bzr branch``) we now properly store the stat and hash of files that
824
are old enough. This saves a fair amount of time on the first
825
``bzr status`` (on a 500MB tree, it saves about 30+s).
826
(John Arbash Meinel, #740932)
832
.. Fixes for situations where bzr would previously crash or give incorrect
833
or undesirable results.
835
* Arguments that can't be decoded to unicode in the current posix locale give
836
a clearer error message without a traceback. (Martin [gz], #745712)
838
* ``bzrlib.log._DEFAULT_REQUEST_PARAMS`` is no longer accidentally
839
mutated by ``bzrlib.log._apply_log_request_defaults``. In practice
840
these default values aren't relied on very often so this probably
841
wasn't causing any trouble. (Andrew Bennetts)
843
* ``bzr log`` now works on revisions which are not in the current branch.
844
(Matt Giuca, #241998)
846
* Don't rewrite the dirstate file when non-interesting changes have
847
occurred. This can significantly improve 'bzr status' times when there
848
are only small changes to a large tree.
849
(Ian Clatworthy, John Arbash Meinel, #380202)
851
* Lazy hooks are now reset between test runs. (Jelmer Vernooij, #745566)
853
* ``bzrlib.merge.Merge`` now calls ``iter_changes`` without
854
``include_unversioned=True``. This makes it significantly faster in many
855
cases, because it only looks at modified files, rather than building
856
information about all files. This can cause failures in other
857
TreeTransform code, because it had been expecting to know the names of
858
things which had not changed (such as parent directories). All cases we
859
know about so far have been fixed, but there may be fallout for edge
860
cases that we are missing. (John Arbash Meinel, #759091)
862
* ``SFTPTransport`` is more pro-active about closing file-handles. This
863
reduces the chance of having threads fail from async requests while
864
running the test suite. (John Arbash Meinel, #656170)
866
* Standalone bzr.exe installation on Windows: user can put additional python
867
libraries into ``site-packages`` subdirectory of the installation directory,
868
this might be required for "installing" extra dependencies for some plugins.
869
(Alexander Belchenko, #743256)
871
* ``transform.revert()`` has been updated to use
872
``wt.iter_changes(basis_tree)`` rather than
873
``basis_tree.iter_changes(wt)``. This allows the optimized code path to
874
kick in, improving ``bzr revert`` times significantly (33s to 4s on
875
large trees, 0.7s to 0.3s on small trees.) (John Arbash Meinel, #759096)
877
* ``TreeTransform.create_file/new_file`` can now take an optional ``sha1``
878
parameter. If supplied, when the transform is applied, it will then call
879
``self._tree._observed_sha1`` for those files. This lets us update the
880
hash-cache for content that we create, preventing us from re-reading the
881
content in the next ``bzr status``. (John Arbash Meinel, #740932)
886
* Added a section about using a shared SSH account on a server for bzr+ssh
887
access. (Russell Smith)
889
* The documentation now recommends using SSH rather than SFTP in the
890
tutorials and the examples, because that will generally be much faster
891
and better in cases where it can be used. SFTP is still available and
892
mentioned as an alternative. (Martin Pool, #636712)
897
.. Changes that may require updates in plugins or other code that uses
900
* ``Branch.update_revisions`` has been made private and should no
901
longer be used by external users. Use ``Branch.pull`` or ``Branch.push``
902
instead. (Jelmer Vernooij, #771765)
904
* Commands now have an `invoked_as` attribute, showing the name under
905
which they were called before alias expansion.
908
* ``Hooks.create_hook`` is now deprecated in favour of ``Hooks.add_hook``.
911
* If you call `bzrlib.initialize` but forget to enter the resulting object
912
as a context manager, bzrlib will now be initialized anyhow.
913
(Previously simple programs calling bzrlib might find the library was
914
mysteriously silent.)
917
* Inventory-specific functionality has been split out of ``Tree`` into
918
a new ``InventoryTree`` class. Tree instances no longer
919
necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
921
* Inventory-specific functionality has been split out of ``RevisionTree``
922
into a new ``InventoryRevisionTree`` class. RevisionTree instances no
923
longer necessarily provide an ``inventory`` attribute. (Jelmer Vernooij)
925
* New method ``Hooks.uninstall_named_hook``. (Jelmer Vernooij, #301472)
927
* ``revision_graph_can_have_wrong_parents`` is now an attribute
928
on ``RepositoryFormat`` rather than a method on ``Repository``.
931
* ``Testament`` now takes a ``tree`` rather than an
932
``inventory``. (Jelmer Vernooij, #762608)
934
* ``TestCase.failUnlessExists`` and ``failIfExists`` are deprecated in
935
favour of ``assertPathExists`` and ``assertPathDoesNotExist``
939
* The ``revno`` parameter of ``log.LogRevision`` may now be None,
940
representing a revision which is not in the current branch.
941
(Matt Giuca, #241998)
943
* The various knit pack repository format classes have been moved
944
from ``bzrlib.repofmt.pack_repo`` to
945
``bzrlib.repofmt.knitpack_repo``. (Jelmer Vernooij)
947
* ``RevisionTree`` now has a new method ``get_file_revision``.
950
* ``WorkingTree`` no longer provides an ``inventory``. Instead,
951
all inventory-related functionality is now on the subclass
952
``InventoryWorkingTree`` that all native Bazaar working tree
953
implementations derive from. (Jelmer Vernooij)
958
.. Major internal changes, unlikely to be visible to users or plugin
959
developers, but interesting for bzr developers.
961
* Added ``osutils.lstat`` and ``osutils.fstat``. These are just the ``os``
962
functions on Linux, but they are wrapped on Windows so that fstat
963
matches lstat results across all python versions.
966
* ``WorkingTree._observed_sha1`` also updates the 'size' column. It
967
happened to be updated as a side-effect of commit, but if we start using
968
the function elsewhere we might as well do it directly.
974
.. Fixes and changes that are only relevant to bzr's test framework and
975
suite. This can include new facilities for writing tests, fixes to
976
spurious test failures and changes to the way things should be tested.
978
* Stop using `failIf`, `failUnless`, `failIfEqual`, etc, that give
979
`PendingDeprecationWarnings` on Python2.7.
980
(Martin Pool, #760435)
988
This is the first beta of the 2.4 series, leading up to a 2.4.0
989
release in August 2011. Beta releases are suitable for everyday use
990
but may cause some incompatibilities with plugins. Some plugins may need
991
small updates to work with 2.4b1.
11
:2.4b1: NOT RELEASED YET
993
13
External Compatibility Breaks
994
14
*****************************
16
.. These may require users to change the way they use Bazaar.
1001
* Added ``changelog_merge`` plugin for merging changes to ``Changelog`` files
1002
in GNU format. See ``bzr help changelog_merge`` for details.
21
.. New commands, options, etc that users may wish to try out.
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)
1005
29
* Configuration options can now use references to other options in the same
1006
30
file by enclosing them with curly brackets (``{other_opt}``). This makes it
1007
31
possible to use, for example,