5
5
.. contents:: List of Releases
11
:2.3b3: NOT RELEASED YET
47
* The ``bzr tags`` command sorts tag names using a natural sort by
48
default (so tag2 sorts before tag10). The previous default was
49
strictly "asciibetical". That behavior is still available as ``bzr tags
50
--sort=alpha``. (Neil Martinsen-Burrell, #640760)
55
* Add ``mainline`` revision specifier, which selects the revision that
56
merged a specified revision into the mainline. (Aaron Bentley)
58
* Add ``annotate`` revision specifier, which selects the revision that
59
introduced a specified line of a file. (Aaron Bentley)
61
* ``bzr status`` now displays a summary of existing shelves after
62
the other status information. This is done using a ``post_status``
64
(Parth Malwankar, #403687)
66
* GNU lsh is now a supported lsh client; just set BZR_SSH to 'lsh'.
67
Also, bzr will recognize if the 'ssh' comand is a symlink to lsh.
68
(Matthew Gordon, #374700)
70
* The ``pull`` and ``update`` commands now take a ``-show-base``
71
option that, in the case of conflicts, shows the base revision text.
77
* Always set PATH in start_bzr.bat on Windows.
78
(Matthäus G. Chajdas, #470264)
80
* ``bzr break-lock --force`` breaks the lock without prompting. (Before
81
using this, make sure the process holding the lock really is dead.)
82
(Martin Pool, #397315)
84
* Don't force openssh to use protocol=2, since that is now the default.
85
(Neil Martinsen-Burrell, #561061)
87
* Fix signature of RemoteBzrDir.create_workingtree to match that of its
88
superclass. (Neil Martinsen-Burrell, Martin Pool, #524627)
90
* Fix traceback with python-2.7's xmlrpclib
91
(Toshio Kuratomi, #612096)
93
* Print junk rather than throwing a UnicodeDecodeError from ``bzr version-info``
94
when using the rio format (with non-ascii information) on a non-utf-8 terminal.
95
(Andrej A Antonov, #518609)
97
* Skip tests that needs a bzr source tree when there isn't one. This is
98
needed to succesfully run the test suite for installed versions.
99
(Vincent Ladeuil, #644855).
101
* Skip the tests that requires respecting the chmod bits when running as root.
102
(Vincent Ladeuil, #646133)
104
* Treat all IO, OS, and socket errors consistently when establishing
105
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
107
* ``unshelve --preview`` now can show diff in a non-ascii encoding.
108
(Andrej A Antonov, #518916)
113
* ``bzr remove`` now takes a ``--no-backup`` option for when you don't want it
114
to backup anything, just delete it. This option used to be called ``--force``
115
which is now deprecated.
116
(Marius Kruger, #400554)
121
* Provide more detailed help on the Launchpad plugin at "bzr help
122
plugins/launchpad". (Neil Martinsen-Burrell, #589379)
124
* Suggest ``bzr revert`` for restoring locally deleted files in help text
125
for ``bzr update``. (John C Barstow, #191466)
130
* ``WorkingTree`` methods ``pull``, ``update``, and ``_update_tree``
131
now have an optional argument, ``show_base``, which is by default
132
False. This is flag is ultimately passed to ``merge.merge_inner``
133
in each case. (Rory Yorke, #202374)
138
* Small change to GroupCompressBlock to work more in terms of 'chunks'
139
rather than 'content' for its compressed storage. (John Arbash Meinel)
141
* When running ``bzr selftest --subunit`` the subunit stream will no
142
longer include the "log" information for tests which are considered to
143
be 'successes' (success, xfail, skip, etc) (John Arbash Meinel)
148
* Add ``tests/ssl_certs/ca.crt`` to the required test files list. Test
149
involving the pycurl https test server fail otherwise when running
150
selftest from an installed version. (Vincent Ladeuil, #651706)
152
* Fix tests that failed when run under ``LANG=C``.
153
(Andrew Bennetts, #632387)
155
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
156
warning on stderr emitted during ``test_dict_deepnested`` in
157
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
159
* Use tests.TestCaseInTempDir for tests that requires disk resources.
160
(Vincent Ladeuil, #650001)
167
This is the first beta of the 2.3 series, leading up to a 2.3.0
168
release in January or February. Beta releases are suitable for everyday use
169
but may cause some incompatibilities with plugins. Some plugins may need
170
small updates to work with 2.3b1.
172
2.3b1 includes some performance improvements in both speed and memory
173
consumption, some preliminary support for generating a texinfo version of
174
the doc and better support for launchpad. Many changes were made to make
175
our test suite more robust as well as numerous documentation fixes. It
176
improves the common infrastructure for dealing with colocated named
177
branches and foreign branches. We plan to continue with these themes
178
through the 2.3 series.
180
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
187
* BzrError subclasses no longer support the name "message" to be used
188
as an argument for __init__ or in _fmt format specification as this
189
breaks in some Python versions. errors.LockError.__init__ argument
190
is now named "msg" instead of earlier "message".
191
(Parth Malwankar, #603461)
193
* Additional merges after an unrelated branch has been merged with its
194
history no longer crash when deleted files are involved.
195
(Vincent Ladeuil, John Arbash Meinel, #375898)
197
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
198
previously-unversioned directory within the tree: the directory is
199
marked versioned too.
200
(Martin Pool, #192859)
202
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
203
target of the symlink.
204
(Martin Pool, John Arbash Meinel, #128562)
206
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
207
permissions as ``.bzr`` directory on a POSIX OS.
208
(Parth Malwankar, #262450)
210
* ``bzrlib.transform.TreeTransformBase.final_kind``,
211
``bzrlib.transform.TreeTransform.tree_kind`` and
212
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
213
of raising NoSuchFile. (Vincent Ladeuil)
215
* CommitBuilder now uses the committer instead of _config.username to generate
216
the revision-id. (Aaron Bentley, #614404)
218
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
219
way which should help avoid problems with concurrent writers.
220
(Vincent Ladeuil, #525571)
222
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
223
and `BzrDir`, respectively. `ControlDirFormat`
224
and `ControlDir` should be used as the base classes for new non-.bzr
227
`BzrDirFormat.register_control_format` has been renamed to
228
`ControlDirFormat.register_format`.
230
`BzrDirFormat.register_server_control_format` has been removed.
232
Probing for control directories is now done by separate objects derived
233
from `bzrlib.controldir.Prober` and registered using
234
`bzrlib.controldir.ControlDirFormat.register_prober` or
235
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
236
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
238
`BzrDirFormat.register_format` has been renamed to
239
`BzrProber.register_bzrdir_format`.
241
`bzrlib.bzrdir.network_format_registry` has been moved to
246
* Cope with Microsoft FTP server that returns reply '250 Directory
247
created' when mkdir succeeds. (Martin Pool, #224373)
249
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
250
contains only NUL bytes). Instead warn the user, and allow ``bzr
251
break-lock`` to remove it. (Andrew Bennetts, #619872)
253
* `decode` parameter to get() method in FtpTransport and GioTransport classes
254
is deprecated. (Alexander Belchenko)
256
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
260
* Fix ``AttributeError on parent.children`` when adding a file under a
261
directory that was a symlink in the previous commit.
262
(Martin Pool, #192859)
264
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
265
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
266
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
267
stderr in some other circumstances. (Andrew Bennetts, #633745)
269
* Only call ``setlocale`` in the bzr startup script on posix systems. This
270
avoids an issue with the newer windows C runtimes used by Python 2.6 and
271
later which can mangle bytestrings printed to the console.
272
(Martin [gz], #631350)
274
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
275
which can result in "missing referenced chk root keys" errors when
276
fetching from repositories with affected revisions.
277
(Andrew Bennetts, #522637)
279
* Raise ValueError instead of a string exception.
280
(John Arbash Meinel, #586926)
282
* Reduce peak memory by one copy of compressed text.
283
(John Arbash Meinel, #566940)
285
* Repositories accessed via a smart server now reject being stacked on a
286
repository in an incompatible format, as is the case when accessing them
287
via other methods. This was causing fetches from those repositories via
288
a smart server (e.g. using ``bzr branch``) to receive invalid data.
289
(Andrew Bennetts, #562380)
291
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
292
error. This error was caused by 2.0 not being updated when upstream
293
python merged the end of run patch, which chose ``stopTestRun`` rather than
294
``done``. (Robert Collins, #571437)
296
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
297
being thrown from ``xml_serializer`` on certain cElementTree setups.
298
(Martin [gz], #254278)
300
* The old ``bzr selftest --benchmark`` option has been removed.
301
<https://launchpad.net/bzr-usertest> is an actively-maintained
302
macrobenchmark suite.
305
* `tree_files` and `internal_tree_files` are now deprecated in favor of
306
`WorkingTree.open_containing_paths`.
309
* Upgrading or fetching from a non-rich-root repository to a rich-root
310
repository (e.g. from pack-0.92 to 2a) no longer fails with
311
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
312
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
314
* When passing a file to ``UTF8DirReader`` make sure to close the current
315
directory file handle after the chdir fails. Otherwise when passing many
316
filenames into a command line ``bzr status`` we would leak descriptors.
317
(John Arbash Meinel, #583486)
322
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
323
to register custom handlers which will be invoked before/after the
324
standard status output is displayed. (Parth Malwankar)
326
* ``bzr break-lock --config [location]`` can now break config files
327
locks. (Vincent Ladeuil, #525571)
329
* ``bzrlib.config.LockableConfig`` is a base class for config files that
330
needs to be protected against multiple writers. All methods that
331
change a configuration variable value must be decorated with
332
@needs_write_lock (set_option() for example).
333
(Vincent Ladeuil, #525571)
335
* The ``lp:`` prefix will now use your known username (from
336
``bzr launchpad-login``) to expand ``~`` to your username. For example:
337
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
338
push to ``lp:~user/project/branch``. (John Arbash Meinel)
340
* New development format ``development8-subtree`` which is similar to the
341
``2a`` format and adds subtree support. (Jelmer Vernooij)
346
* Allow using both --using and --diff-options.
347
(Matthäus G. Chajdas, #234708)
349
* Allow using non-integer bug ID with generic bug trackers.
350
(Alexandre Garnier, #440472)
352
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
353
previously-unversioned directory within the tree: the directory is
354
marked versioned too.
355
(Martin Pool, #192859)
357
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
358
``InvalidPattern`` exception error message now shows faulting
360
(Parth Malwankar #300062)
362
* ``clean-tree`` issues a warning if it is unable to delete a file
363
due to ``errno.EACCES`` instead of exiting with an error on Windows.
364
(Parth Malwankar, #430785)
366
* CommitBuilder now uses the committer instead of _config.username to generate
367
the revision-id. (Aaron Bentley, #614404)
369
* Configuration files in ``${BZR_HOME}`` are now protected against
370
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
372
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
373
Directory created' when mkdir succeeds. (Martin Pool, #224373)
375
* Decrease peak memory during ``bzr send``. The old code was caching all
376
text content and all inventory strings for all revisions before
377
computing the diffs. Now we only cache as long as there is a child that
378
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
379
256MB peak. (John Arbash Meinel, #614576)
381
* Don't print internal object name when print an invalid revision spec
382
error. (Neil Martinsen-Burrell, #598701)
384
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
385
contains only NUL bytes). Instead warn the user, and allow ``bzr
386
break-lock`` to remove it. (Andrew Bennetts, #619872)
388
* ``EPIPE`` can be raised during test server shutdown. This happened on
389
gentoo only so far. (Vincent Ladeuil, #627277)
391
* Errors occurring during http(s) test server starts should now be
392
handled cleanly. (Vincent Ladeuil, #392402)
394
* Fix ``AttributeError on parent.children`` when adding a file under a
395
directory that was a symlink in the previous commit.
396
(Martin Pool, #192859)
398
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
399
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
400
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
401
stderr in some other circumstances. (Andrew Bennetts, #633745)
403
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
404
properly remove its warning filter. (Vincent Ladeuil, #625686)
406
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
407
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
409
* Most of the leaked threads during selftest are now fixed, allowing the
410
full test suite to pass on gentoo.
411
(Vincent Ladeuil, #392127)
413
* Only call ``setlocale`` in the bzr startup script on posix systems. This
414
avoids an issue with the newer windows C runtimes used by Python 2.6 and
415
later which can mangle bytestrings printed to the console.
416
(Martin [gz], #631350)
418
* `PathNotChild` should not give a traceback.
419
(Martin Pool, #98735)
421
* ``PQM`` will no longer ignore syntax errors in submissions.
422
(Vincent Ladeuil, #626667)
424
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
425
which can result in "missing referenced chk root keys" errors when
426
fetching from repositories with affected revisions.
427
(Andrew Bennetts, #522637)
429
* strace test-helper tests cope with the new Ubuntu policy of not allowing
430
users to attach to their own processes by default.
431
(Martin Pool, #626679)
433
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
434
be available from ``bzrlib.tests.*``. They used to be, but were
435
accidentally removed. (John Arbash Meinel, #627438)
437
* ``Transport.stat`` on a symlink, including a transport pointing directly
438
to a symlink, now returns information about the symlink.
441
* Upgrading or fetching from a non-rich-root repository to a rich-root
442
repository (e.g. from pack-0.92 to 2a) no longer fails with
443
``'Inter1and2Helper' object has no attribute 'source_repo'``.
444
(Andrew Bennetts, #636930)
446
* Wait for the SSH server to actually finish, rather than just waiting for
447
it to negotiate the key exchange. (John Arbash Meinel, #626876)
452
* ``bzr remove`` now just backs up changed files instead of exiting,
453
forcing you to choose to either keep or delete them. Bazaar will now delete
454
the files if they can easily be recovered using revert, otherwise they
455
will be backed up (adding an extention of the form .~#~).
456
(Marius Kruger, #400554)
458
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
459
with many changes by not repeatedly building a list of all file-ids.
462
* Decrease memory consumption when many chk index pages are loaded. (Such
463
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
464
read many chk pages because the individual chk map nodes will be spread
465
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
466
down to 247MB, expect even more significant savings on 64-bit platforms.
469
* ``DirState`` internals use a little bit less memory. For bzr.dev it
470
drops the memory from 1MB down to about 800kB. And replaces a few
471
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
473
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
474
have dropped from 68 bytes to 40, and directory entries from 120 bytes
475
to 48). (Andrew Bennetts)
477
* When building new working trees, default to reading from the repository
478
rather than the source tree unless explicitly requested. (via
479
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
480
``bzr checkout``. Generally, 2a format repositories extract
481
content faster than seeking and reading content from another tree,
482
especially in cold-cache situations. (John Arbash Meinel, #607298)
484
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
485
Python will use this directory to store bytecodes.
486
(Andrea Corbellini, #626687)
491
* Added a builder/writer sphinx extension that can generate texinfo files. The
492
generated files are syntactically correct but the info navigation nodes
493
needs more work. (Vincent Ladeuil, #219334)
495
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
496
to make the tests conditional.
499
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
500
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
501
(John Arbash Meinel, #617503)
506
* Configuration files should now use the ``from_string`` constructor rather
507
than the ``file`` parameter of the ``_get_parser`` method. The later has
508
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
509
have the configuration file immediately written to disk.
512
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
513
relative change in revno.
516
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
517
the rather than the ``file`` parameter of the ``_get_parser`` method. The
518
later has been deprecated. (Vincent Ladeuil)
520
* InventoryEntry instances now raise AttributeError if you try to assign
521
to attributes that are irrelevant to that kind of entry. e.g. setting
522
``symlink_target`` on an InventoryFile will fail. It is still okay to
523
read those attributes on any kind of InventoryEntry. The complete list
524
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
525
``text_size`` (only valid for kind == file); ``symlink_target`` (only
526
valid for kind == link); and ``reference_revision`` (only valid for kind
527
== tree-reference). (Andrew Bennetts)
529
* InventoryEntry objects no longer have ``_put_in_tar`` or
530
``_put_on_disk`` methods. (Andrew Bennetts)
532
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
533
constructor has been deprecated, use the ``file_name`` parameter instead.
539
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
545
* ``build_tree_contents`` can create symlinks.
546
(Martin Pool, John Arbash Meinel)
548
* Catch socket errors to avoid
549
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
550
random failures. (Vincent Ladeuil, #601804)
552
* HTTP test servers will leak less threads (and sockets) and will not hang on
553
AIX anymore. (Vincent Ladeuil, #405745)
555
* On platforms that don't support forking give a nice error message saying so
556
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
558
* Rearrange thread leak detection code to eliminate global state and make it
559
possible to extend the reporting. (Martin [gz], #633462)
561
* The test suite now simply holds log files in memory, rather than writing them
562
out to disk and then reading them back in and deleting them.
565
* The way ``bzr selftest --parallel`` generates N partitions of tests to
566
run in parallel has changed. Instead of splitting the list of tests at
567
N-1 points, it distributes the tests one-by-one into the partitions in a
568
round robin fashion. This reduces the total time to run the tests in
569
parallel because a series of slow tests in the test suite will be
570
distributed evenly among the parallel test suites, rather than slowing
571
down just one suite. (Andrew Bennetts)
573
* Tracebacks from a parameterized test are no longer reported against every
574
parameterization of that test. This was done by adding a hack to
575
``bzrlib.tests.clone_test`` so that it no longer causes
576
testtools.TestCase instances to share a details dict.
577
(Andrew Bennetts, #625574)
583
:2.2.2: NOT RELEASED YET
594
* Skip tests that needs a bzr source tree when there isn't one. This is
595
needed to succesfully run the test suite for installed versions.
596
(Vincent Ladeuil, #644855).
598
* Skip the tests that requires respecting the chmod bits when running as
599
root. Including the one that wasn't present in 2.1.
600
(Vincent Ladeuil, #646133)
602
* Using bzr with `lp:` urls behind an http proxy should work.
603
(Robert Collins, #558343)
620
* Add ``tests/ssl_certs/ca.crt`` to the required test files list. Test
621
involving the pycurl https test server fail otherwise when running
622
selftest from an installed version. (Vincent Ladeuil, #651706)
624
* Fix tests that failed when run under ``LANG=C``.
625
(Andrew Bennetts, #632387)
633
This is a bugfix release which also includes bugfixes from 2.0.6 and
634
2.1.3. None are critical, but upgrading is recommended for all users on
635
earlier 2.2 releases.
640
* Additional merges after an unrelated branch has been merged with its
641
history no longer crash when deleted files are involved.
642
(Vincent Ladeuil, John Arbash Meinel, #375898)
644
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
645
previously-unversioned directory within the tree: the directory is
646
marked versioned too.
647
(Martin Pool, #192859)
649
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
650
target of the symlink.
651
(Martin Pool, John Arbash Meinel, #128562)
653
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
654
permissions as ``.bzr`` directory on a POSIX OS.
655
(Parth Malwankar, #262450)
657
* CommitBuilder now uses the committer instead of _config.username to generate
658
the revision-id. (Aaron Bentley, #614404)
660
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
661
way which should help avoid problems with concurrent writers.
662
(Vincent Ladeuil, #525571)
664
* Cope with Microsoft FTP server that returns reply '250 Directory
665
created' when mkdir succeeds. (Martin Pool, #224373)
667
* Don't traceback trying to unversion children files of an already
668
unversioned directory. (Vincent Ladeuil, #494221)
670
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
671
contains only NUL bytes). Instead warn the user, and allow ``bzr
672
break-lock`` to remove it. (Andrew Bennetts, #619872)
674
* Fix ``AttributeError on parent.children`` when adding a file under a
675
directory that was a symlink in the previous commit.
676
(Martin Pool, #192859)
678
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
679
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
680
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
681
stderr in some other circumstances. (Andrew Bennetts, #633745)
683
* Only call ``setlocale`` in the bzr startup script on posix systems. This
684
avoids an issue with the newer windows C runtimes used by Python 2.6 and
685
later which can mangle bytestrings printed to the console.
686
(Martin [gz], #631350)
688
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
689
which can result in "missing referenced chk root keys" errors when
690
fetching from repositories with affected revisions.
691
(Andrew Bennetts, #522637)
693
* Raise ValueError instead of a string exception.
694
(John Arbash Meinel, #586926)
696
* Reduce peak memory by one copy of compressed text.
697
(John Arbash Meinel, #566940)
699
* Repositories accessed via a smart server now reject being stacked on a
700
repository in an incompatible format, as is the case when accessing them
701
via other methods. This was causing fetches from those repositories via
702
a smart server (e.g. using ``bzr branch``) to receive invalid data.
703
(Andrew Bennetts, #562380)
705
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
706
error. This error was caused by 2.0 not being updated when upstream
707
python merged the end of run patch, which chose ``stopTestRun`` rather than
708
``done``. (Robert Collins, #571437)
710
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
711
being thrown from ``xml_serializer`` on certain cElementTree setups.
712
(Martin [gz], #254278)
714
* Upgrading or fetching from a non-rich-root repository to a rich-root
715
repository (e.g. from pack-0.92 to 2a) no longer fails with
716
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
717
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
719
* When passing a file to ``UTF8DirReader`` make sure to close the current
720
directory file handle after the chdir fails. Otherwise when passing many
721
filenames into a command line ``bzr status`` we would leak descriptors.
722
(John Arbash Meinel, #583486)
727
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
728
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
729
(John Arbash Meinel, #617503)
734
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
740
* ``build_tree_contents`` can create symlinks.
741
(Martin Pool, John Arbash Meinel)
743
* Tracebacks from a parameterized test are no longer reported against every
744
parameterization of that test. This was done by adding a hack to
745
``bzrlib.tests.clone_test`` so that it no longer causes
746
testtools.TestCase instances to share a details dict.
747
(Andrew Bennetts, #625574)
753
:2.1.4: NOT RELEASED YET
764
* Skip tests that needs a bzr source tree when there isn't one. This is
765
needed to succesfully run the test suite for installed versions.
766
(Vincent Ladeuil, #644855).
768
* Skip the tests that requires respecting the chmod bits when running as root.
769
(Vincent Ladeuil, #646133)
771
* Using bzr with `lp:` urls behind an http proxy should work.
772
(Robert Collins, #558343)
793
:Codename: Do run run
796
The third release in our 2.1 series addresses several user-inconvenience bugs
797
(and includes the fixes done in 2.0.6). None are critical, but upgrading is
798
recommended for all users on earlier 2.1 releases.
803
* Additional merges after an unrelated branch has been merged with its
804
history no longer crash when deleted files are involved.
805
(Vincent Ladeuil, John Arbash Meinel, #375898)
807
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
808
previously-unversioned directory within the tree: the directory is
809
marked versioned too.
810
(Martin Pool, #192859)
812
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
813
target of the symlink.
814
(Martin Pool, John Arbash Meinel, #128562)
816
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
817
permissions as ``.bzr`` directory on a POSIX OS.
818
(Parth Malwankar, #262450)
820
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
821
way which should help avoid problems with concurrent writers.
822
(Vincent Ladeuil, #525571)
824
* Don't traceback trying to unversion children files of an already
825
unversioned directory. (Vincent Ladeuil, #494221)
827
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
828
contains only NUL bytes). Instead warn the user, and allow ``bzr
829
break-lock`` to remove it. (Andrew Bennetts, #619872)
831
* Fix ``AttributeError on parent.children`` when adding a file under a
832
directory that was a symlink in the previous commit.
833
(Martin Pool, #192859)
835
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
836
which can result in "missing referenced chk root keys" errors when
837
fetching from repositories with affected revisions.
838
(Andrew Bennetts, #522637)
840
* Raise ValueError instead of a string exception.
841
(John Arbash Meinel, #586926)
843
* Reduce peak memory by one copy of compressed text.
844
(John Arbash Meinel, #566940)
846
* Repositories accessed via a smart server now reject being stacked on a
847
repository in an incompatible format, as is the case when accessing them
848
via other methods. This was causing fetches from those repositories via
849
a smart server (e.g. using ``bzr branch``) to receive invalid data.
850
(Andrew Bennetts, #562380)
852
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
853
error. This error was caused by 2.0 not being updated when upstream
854
python merged the end of run patch, which chose ``stopTestRun`` rather than
855
``done``. (Robert Collins, #571437)
857
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
858
being thrown from ``xml_serializer`` on certain cElementTree setups.
859
(Martin [gz], #254278)
861
* When passing a file to ``UTF8DirReader`` make sure to close the current
862
directory file handle after the chdir fails. Otherwise when passing many
863
filenames into a command line ``bzr status`` we would leak descriptors.
864
(John Arbash Meinel, #583486)
869
* ``build_tree_contents`` can create symlinks.
870
(Martin Pool, John Arbash Meinel)
878
The sixth release in our 2.0 series addresses several user-inconvenience
879
bugs. None are critical, but upgrading is recommended for all users on
880
earlier 2.0 releases.
885
* Additional merges after an unrelated branch has been merged with its
886
history no longer crash when deleted files are involved.
887
(Vincent Ladeuil, John Arbash Meinel, #375898)
889
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
890
previously-unversioned directory within the tree: the directory is
891
marked versioned too.
892
(Martin Pool, #192859)
894
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
895
target of the symlink.
896
(Martin Pool, John Arbash Meinel, #128562)
898
* ``bzr revert`` now only takes write lock on working tree, instead of on
899
both working tree and branch.
900
(Danny van Heumen, #498409)
902
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
903
permissions as ``.bzr`` directory on a POSIX OS.
904
(Parth Malwankar, #262450)
906
* Don't traceback trying to unversion children files of an already
907
unversioned directory. (Vincent Ladeuil, #494221)
909
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
910
contains only NUL bytes). Instead warn the user, and allow ``bzr
911
break-lock`` to remove it. (Andrew Bennetts, #619872)
913
* Fix ``AttributeError on parent.children`` when adding a file under a
914
directory that was a symlink in the previous commit.
915
(Martin Pool, #192859)
917
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
918
which can result in "missing referenced chk root keys" errors when
919
fetching from repositories with affected revisions.
920
(Andrew Bennetts, #522637)
922
* Raise ValueError instead of a string exception.
923
(John Arbash Meinel, #586926)
925
* Reduce peak memory by one copy of compressed text.
926
(John Arbash Meinel, #566940)
928
* Repositories accessed via a smart server now reject being stacked on a
929
repository in an incompatible format, as is the case when accessing them
930
via other methods. This was causing fetches from those repositories via
931
a smart server (e.g. using ``bzr branch``) to receive invalid data.
932
(Andrew Bennetts, #562380)
934
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
935
error. This error was caused by 2.0 not being updated when upstream
936
python merged the end of run patch, which chose ``stopTestRun`` rather than
937
``done``. (Robert Collins, #571437)
939
* When passing a file to ``UTF8DirReader`` make sure to close the current
940
directory file handle after the chdir fails. Otherwise when passing many
941
filenames into a command line ``bzr status`` we would leak descriptors.
942
(John Arbash Meinel, #583486)
948
* ``build_tree_contents`` can create symlinks.
949
(Martin Pool, John Arbash Meinel)
958
This release marks the start of another long-term-stable series. From
959
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
960
while 2.3 will become our new development series. The 2.0 and 2.1 series
961
will also continue to get bugfixes. (Currently 2.0 is planned to be
962
supported for another 6 months.)
964
This is primarily a bugfix and polish release over the 2.1 series, with
965
a large number of bugs fixed (>120), and some performance improvements.
967
There are some compatibility changes in this release. For users of bzrlib
968
as a library, we now request that they call ``bzrlib.initialize`` and use
969
the returned context manager appropriately. For commandline users we no
970
longer guess user identity for ``bzr commit``, users must specify their
971
identity using ``bzr whoami`` (you don't need to specify your identity for
972
readonly operations).
974
Users are encouraged to upgrade from the other stable series.
979
* BzrError subclasses no longer support the name "message" to be used
980
as an argument for __init__ or in _fmt format specification as this
981
breaks in some Python versions. errors.LockError.__init__ argument
982
is now named "msg" instead of earlier "message".
983
(Parth Malwankar, #603461)
985
* The old ``bzr selftest --benchmark`` option has been removed.
986
<https://launchpad.net/bzr-usertest> is an actively-maintained
987
macrobenchmark suite.
993
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
994
``InvalidPattern`` exception error message now shows faulting
996
(Parth Malwankar #300062)
998
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
999
way which should help avoid problems with concurrent writers.
1000
(Vincent Ladeuil, #525571)
1002
* Don't traceback trying to unversion children files of an already
1003
unversioned directory. (Vincent Ladeuil, #494221)
1005
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
1006
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
1008
* Progress bars prefer to truncate the text message rather than the
1009
counters. The spinner is shown between the network transfer indicator
1010
and the progress message. Progress bars are correctly cleared off when
1011
they finish. (Martin Pool, #611127)
1013
* Recursive binding for checkouts is now detected by bzr. A clear error
1014
message is shown to the user. (Parth Malwankar, #405192)
1019
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
1020
tree, and works with unrelated branches. (Andrew Bennetts)
1022
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
1023
GUI with out have a console open in the background.
1024
(Gary van der Merwe, #433781)
1029
* ``bzr help patterns`` now explains case insensitive patterns and
1030
points to Python regular expression documentation.
1031
(Parth Malwankar, #594386)
1036
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
1041
* Unit test added to ensure that "message" is not uses as a format variable
1042
name in BzrError subclasses as this conflicts with some Python versions.
1043
(Parth Malwankar, #603461)
1048
:Codename: Monkey Magic
1052
This fourth and final beta in the 2.2 series now stabilizes the internal
1053
APIs. Plugin authors are recommended to ensure their releases are
1054
compatible, so that 2.2rc1 can be a true release candidate, containing
1055
stable and compatible plugin versions.
1057
For users of bzrlib as a library, one of the primary changes is to request
1058
that they call ``bzrlib.initialize`` and use the returned context manager
1061
Better interaction with ``bzr-loom`` to make sure branching from a loom
1062
even over a smart server still yields a local loom. Not to mention lots of
1063
bugfixes over 2.2b3.
1065
Compatibility Breaks
1066
********************
1068
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
1069
the result of ``bzrlib.initialize``. This change was made when fixing
1070
the bad habit recent bzr versions have had of leaving progress bars
1071
behind on the screen. That required calling another function before
1072
exiting the program, and it made sense to provide a full context
1073
manager at the same time. (Robert Collins)
1075
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
1076
context manager in the Python 2.5 and above sense. The bzrlib base class
1077
is such a manager, but third party UI factories which do not derive from
1078
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
1081
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
1082
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
1083
scheme. Previously these URLs would be treated as local paths.
1090
* Support ``--directory`` option for a number of additional commands:
1091
conflicts, merge-directive, missing, resolve, shelve, switch,
1092
unshelve, whoami. (Martin von Gagern, #527878)
1097
* ``bzr branch`` to a new repository with a default stacking policy no
1098
longer transfers the full history unnecessarily.
1099
(Andrew Bennetts, #597942)
1101
* ``bzr init`` does not recursively scan directory contents anymore
1102
leading to faster init for directories with existing content.
1103
(Martin [gz], Parth Malwankar, #501307)
1105
* ``bzr log --exclude-common-ancestry`` is now taken into account for
1106
linear ancetries. (Vincent Ladeuil, #575631)
1108
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
1109
rather than trying to fetch the data locally and failing because of a
1110
readonly error. (Martin von Gagern, #149270)
1112
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
1113
or pull location in locations.conf or branch.conf.
1114
(Gordon Tyler, #534787)
1116
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
1117
smart server. (Andrew Bennetts, #551525)
1119
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
1120
(Marius Kruger, Robert Collins)
1122
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
1123
(Marius Kruger, Robert Collins)
1125
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
1126
proper error messages. (Vincent Ladeuil, #591215)
1128
* Explicitly removing ``--profile-imports`` option from parsed command-line
1129
arguments on Windows, because bzr script does the same.
1130
(Alexander Belchenko, #588277)
1132
* Fetching was slightly confused about the best code to use and was
1133
using a new code path for all branches, resulting in more lookups than
1134
necessary on old branches. (Robert Collins, #593515)
1136
* Final fix for 'no help for command' issue. We now show a clean message
1137
when a command has no help, document how to set help more clearly, and
1138
test that all commands available to the test suite have help.
1139
(Robert Collins, #177500)
1141
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
1142
``InvalidPattern`` exception showing clear error message to the user.
1143
(Parth Malwankar #300062)
1145
* Progress output is cleaned up when exiting. (Aaron Bentley)
1147
* Raise ValueError instead of a string exception.
1148
(John Arbash Meinel, #586926)
1150
* Relative imports in plugins are now handled correctly when using
1151
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
1153
* ``ScriptRunner`` now strips off leading indentation from test scripts,
1154
which previously caused "SyntaxError: No command for line".
1157
* Show unicode filenames in diff headers using terminal encoding.
1158
(Alexander Belchenko, Bug #382699)
1159
NOTE for Windows users: If user need to save diff to file then user need to
1160
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
1161
(e.g. ``chcp 1251`` for Russian Windows).
1163
* URL displayed for use with ``break-lock`` when smart server sees lock
1164
contention are now valid. Default timeout for lock contention retry is
1165
now 30 seconds instead of 300 seconds.
1166
(Parth Malwankar, #250451)
1168
* ``walkdirs`` now raises a useful message when the filenames are not using
1169
the filesystem encoding. (Eric Moritz, #488519)
1171
* Enable debugging of bzr on windows with pdb and other tools. This was
1172
broken because we call GetCommandLineW on windows. The fix adjusts the
1173
command line we get to be the same length as sys.argv.
1174
(Jason Spashett, Alexander Belchenko, #587868)
1179
* Bazaar now reads data from SSH connections more efficiently on platforms
1180
that provide the ``socketpair`` function, and when using paramiko.
1181
(Andrew Bennetts, #590637)
1183
* ``Branch.copy_content_into`` is now a convenience method dispatching to
1184
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
1185
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
1186
(Robert Collins, #201613)
1188
* ``Branch`` formats can now be loaded lazily by registering a
1189
``MetaDirBranchFormatFactory`` rather than an actual format. This will
1190
cause the named format class to be loaded only when an enumeration of
1191
formats is needed or when the format string for the object is
1192
encountered. (Robert Collins, Jelmer Vernooij)
1194
* The encoding that bzr uses to output things other than file content can
1195
now be overridden via the output_encoding configuration option.
1196
(Martin Pool, #340394)
1198
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
1199
do not cause modules to be loaded unnecessarily just because the plugin
1200
registers a merge hook. This improves ``bzr rocks`` time by about 25%
1201
in a default installation (with just the core plugins).
1207
* Added ``regression`` tag to our tags list. (Robert Collins)
1209
* Improved our release checklist to have a bit less churn and leave things
1210
ready-to-go for the next action (including other people doing
1211
development). (Robert Collins)
1213
* Remove obsolete discussion of PQM in documentation about how to
1214
contribute to Bazaar. (Martin Pool, #588444)
1219
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
1220
an iterable of format pairs, rather than just a single pair, permitting
1221
InterBranch objects that work with multiple permutations to be
1222
comprehensively tested. (Robert Collins)
1224
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
1225
profiles when concurrent profile requests are made. Instead the profile
1226
requests will be serialised. Reentrant requests will now deadlock.
1229
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
1230
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
1231
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
1233
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
1234
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
1235
case the default error message not suitable for the use case.
1238
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
1239
one method ``check_output``, and we now recommend checking command
1240
output using ``run_script``. (Martin Pool)
1242
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
1243
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
1244
Third-party implementations of ``SSHVendor`` may need to be updated
1245
accordingly. Similarly, any code using ``SSHConnection`` directly will
1246
need to be updated. (Andrew Bennetts)
1248
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
1249
changed to take an ``SSHParams`` instance (replacing many individual
1250
values). (Andrew Bennetts)
1255
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
1256
selection when explicitly requested; this avoids many duplicate calls
1257
being logged when helpers, wrappers and older code that manually calls
1258
it are executed it is now logged deliberately by the ui setup code.
1261
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
1263
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
1264
that ``sys.getsizeof`` and other memory analysis tools will report more
1265
accurate results. (Andrew Bennetts)
1267
* The symbol_versioning module can now cleanup after itself -
1268
``suppress_deprecation_warnings`` now returns a cleanup function.
1274
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
1275
to test. (Martin Pool)
1277
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
1278
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
1285
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
1286
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
1287
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
1288
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
1289
bash completion script and bzr will no longer guess at identity details -
1290
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
1291
For developers we have some API changes which may impact plugins as well
1292
as a bunch of our regular improvements to internal clarity and test
13
1295
Compatibility Breaks
14
1296
********************
1298
* An API break has been made to the lock_write method of ``Branch`` and
1299
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
1300
and ``repository.RepositoryWriteLockResult`` objects. This makes
1301
changing the API in future easier and permits some cleaner calling code.
1302
The lock_read method has also changed from having no defined return
1303
value to returning ``LogicalLockResult`` objects.
1306
* ``bzr`` does not try to guess the username as ``username@hostname``
1307
and requires it to be explictly set. This can be set using ``bzr
1308
whoami``. (Parth Malwankar, #549310)
1310
* ``bzrlib.commands.Command`` will now raise ValueError during
1311
construction if there is no __doc__ set. (Note, this will be reverted in
1312
2.2b4) (Robert Collins)
1314
* The source tree no longer contains a contrib/zsh/_bzr completion
1315
script. The new file contrib/zsh/README suggests alternatives.
1316
(Martin von Gagern, #560030)