5
5
.. contents:: List of Releases
11
:2.3.b2: NOT RELEASED YET
16
* The ``bzr tags`` command sorts tag names using a natural sort by
17
default (so tag2 sorts before tag10). The previous default was
18
strictly "asciibetical". That behavior is still available as ``bzr tags
19
--sort=alpha``. (Neil Martinsen-Burrell, #640760)
24
* Add ``mainline`` revision specifier, which selects the revision that
25
merged a specified revision into the mainline. (Aaron Bentley)
27
* Add ``annotate`` revision specifier, which selects the revision that
28
introduced a specified line of a file. (Aaron Bentley)
30
* ``bzr status`` now displays a summary of existing shelves after
31
the other status information. This is done using a ``post_status``
33
(Parth Malwankar, #403687)
35
* GNU lsh is now a supported lsh client; just set BZR_SSH to 'lsh'.
36
Also, bzr will recognize if the 'ssh' comand is a symlink to lsh.
37
(Matthew Gordon, #374700)
42
* ``bzr break-lock --force`` breaks the lock without prompting. (Before
43
using this, make sure the process holding the lock really is dead.)
44
(Martin Pool, #397315)
46
* Don't force openssh to use protocol=2, since that is now the default.
47
(Neil Martinsen-Burrell, #561061)
49
* Print junk rather than throwing a UnicodeDecodeError from ``bzr version-info``
50
when using the rio format (with non-ascii information) on a non-utf-8 terminal.
51
(Andrej A Antonov, #518609)
53
* Skip tests that needs a bzr source tree when there isn't one. This is
54
needed to succesfully run the test suite for installed versions.
55
(Vincent Ladeuil, #644855).
57
* Skip the tests that requires respecting the chmod bits when running as root.
58
(Vincent Ladeuil, #646133)
60
* ``unshelve --preview`` now can show diff in a non-ascii encoding.
61
(Andrej A Antonov, #518916)
66
* ``bzr remove`` now takes a ``--no-backup`` option for when you don't want it
67
to backup anything, just delete it. This option used to be called ``--force``
68
which is now deprecated.
69
(Marius Kruger, #400554)
74
* Provide more detailed help on the Launchpad plugin at "bzr help
75
plugins/launchpad". (Neil Martinsen-Burrell, #589379)
83
* Small change to GroupCompressBlock to work more in terms of 'chunks'
84
rather than 'content' for its compressed storage. (John Arbash Meinel)
86
* When running ``bzr selftest --subunit`` the subunit stream will no
87
longer include the "log" information for tests which are considered to
88
be 'successes' (success, xfail, skip, etc) (John Arbash Meinel)
93
* Fix tests that failed when run under ``LANG=C``.
94
(Andrew Bennetts, #632387)
96
* Use tests.TestCaseInTempDir for tests that requires disk resources.
97
(Vincent Ladeuil, #650001)
104
This is the first beta of the 2.3 series, leading up to a 2.3.0
105
release in January or February. Beta releases are suitable for everyday use
106
but may cause some incompatibilities with plugins. Some plugins may need
107
small updates to work with 2.3b1.
109
2.3b1 includes some performance improvements in both speed and memory
110
consumption, some preliminary support for generating a texinfo version of
111
the doc and better support for launchpad. Many changes were made to make
112
our test suite more robust as well as numerous documentation fixes. It
113
improves the common infrastructure for dealing with colocated named
114
branches and foreign branches. We plan to continue with these themes
115
through the 2.3 series.
117
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
124
* BzrError subclasses no longer support the name "message" to be used
125
as an argument for __init__ or in _fmt format specification as this
126
breaks in some Python versions. errors.LockError.__init__ argument
127
is now named "msg" instead of earlier "message".
128
(Parth Malwankar, #603461)
130
* Additional merges after an unrelated branch has been merged with its
131
history no longer crash when deleted files are involved.
132
(Vincent Ladeuil, John Arbash Meinel, #375898)
134
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
135
previously-unversioned directory within the tree: the directory is
136
marked versioned too.
137
(Martin Pool, #192859)
139
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
140
target of the symlink.
141
(Martin Pool, John Arbash Meinel, #128562)
143
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
144
permissions as ``.bzr`` directory on a POSIX OS.
145
(Parth Malwankar, #262450)
147
* ``bzrlib.transform.TreeTransformBase.final_kind``,
148
``bzrlib.transform.TreeTransform.tree_kind`` and
149
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
150
of raising NoSuchFile. (Vincent Ladeuil)
152
* CommitBuilder now uses the committer instead of _config.username to generate
153
the revision-id. (Aaron Bentley, #614404)
155
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
156
way which should help avoid problems with concurrent writers.
157
(Vincent Ladeuil, #525571)
159
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
160
and `BzrDir`, respectively. `ControlDirFormat`
161
and `ControlDir` should be used as the base classes for new non-.bzr
164
`BzrDirFormat.register_control_format` has been renamed to
165
`ControlDirFormat.register_format`.
167
`BzrDirFormat.register_server_control_format` has been removed.
169
Probing for control directories is now done by separate objects derived
170
from `bzrlib.controldir.Prober` and registered using
171
`bzrlib.controldir.ControlDirFormat.register_prober` or
172
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
173
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
175
`BzrDirFormat.register_format` has been renamed to
176
`BzrProber.register_bzrdir_format`.
178
`bzrlib.bzrdir.network_format_registry` has been moved to
183
* Cope with Microsoft FTP server that returns reply '250 Directory
184
created' when mkdir succeeds. (Martin Pool, #224373)
186
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
187
contains only NUL bytes). Instead warn the user, and allow ``bzr
188
break-lock`` to remove it. (Andrew Bennetts, #619872)
190
* `decode` parameter to get() method in FtpTransport and GioTransport classes
191
is deprecated. (Alexander Belchenko)
193
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
197
* Fix ``AttributeError on parent.children`` when adding a file under a
198
directory that was a symlink in the previous commit.
199
(Martin Pool, #192859)
201
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
202
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
203
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
204
stderr in some other circumstances. (Andrew Bennetts, #633745)
206
* Only call ``setlocale`` in the bzr startup script on posix systems. This
207
avoids an issue with the newer windows C runtimes used by Python 2.6 and
208
later which can mangle bytestrings printed to the console.
209
(Martin [gz], #631350)
211
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
212
which can result in "missing referenced chk root keys" errors when
213
fetching from repositories with affected revisions.
214
(Andrew Bennetts, #522637)
216
* Raise ValueError instead of a string exception.
217
(John Arbash Meinel, #586926)
219
* Reduce peak memory by one copy of compressed text.
220
(John Arbash Meinel, #566940)
222
* Repositories accessed via a smart server now reject being stacked on a
223
repository in an incompatible format, as is the case when accessing them
224
via other methods. This was causing fetches from those repositories via
225
a smart server (e.g. using ``bzr branch``) to receive invalid data.
226
(Andrew Bennetts, #562380)
228
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
229
error. This error was caused by 2.0 not being updated when upstream
230
python merged the end of run patch, which chose ``stopTestRun`` rather than
231
``done``. (Robert Collins, #571437)
233
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
234
being thrown from ``xml_serializer`` on certain cElementTree setups.
235
(Martin [gz], #254278)
237
* The old ``bzr selftest --benchmark`` option has been removed.
238
<https://launchpad.net/bzr-usertest> is an actively-maintained
239
macrobenchmark suite.
242
* `tree_files` and `internal_tree_files` are now deprecated in favor of
243
`WorkingTree.open_containing_paths`.
246
* Upgrading or fetching from a non-rich-root repository to a rich-root
247
repository (e.g. from pack-0.92 to 2a) no longer fails with
248
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
249
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
251
* When passing a file to ``UTF8DirReader`` make sure to close the current
252
directory file handle after the chdir fails. Otherwise when passing many
253
filenames into a command line ``bzr status`` we would leak descriptors.
254
(John Arbash Meinel, #583486)
259
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
260
to register custom handlers which will be invoked before/after the
261
standard status output is displayed. (Parth Malwankar)
263
* ``bzr break-lock --config [location]`` can now break config files
264
locks. (Vincent Ladeuil, #525571)
266
* ``bzrlib.config.LockableConfig`` is a base class for config files that
267
needs to be protected against multiple writers. All methods that
268
change a configuration variable value must be decorated with
269
@needs_write_lock (set_option() for example).
270
(Vincent Ladeuil, #525571)
272
* The ``lp:`` prefix will now use your known username (from
273
``bzr launchpad-login``) to expand ``~`` to your username. For example:
274
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
275
push to ``lp:~user/project/branch``. (John Arbash Meinel)
277
* New development format ``development8-subtree`` which is similar to the
278
``2a`` format and adds subtree support. (Jelmer Vernooij)
280
* The ``pull`` and ``update`` commands now take a ``-show-base``
281
option that, in the case of conflicts, shows the base revision text.
282
(Rory Yorke, #202374)
287
* Fix traceback with python-2.7's xmlrpclib
288
(Toshio Kuratomi, #612096)
290
* Allow using both --using and --diff-options.
291
(Matthäus G. Chajdas, #234708)
293
* Allow using non-integer bug ID with generic bug trackers.
294
(Alexandre Garnier, #440472)
296
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
297
previously-unversioned directory within the tree: the directory is
298
marked versioned too.
299
(Martin Pool, #192859)
301
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
302
``InvalidPattern`` exception error message now shows faulting
304
(Parth Malwankar #300062)
306
* ``clean-tree`` issues a warning if it is unable to delete a file
307
due to ``errno.EACCES`` instead of exiting with an error on Windows.
308
(Parth Malwankar, #430785)
310
* CommitBuilder now uses the committer instead of _config.username to generate
311
the revision-id. (Aaron Bentley, #614404)
313
* Configuration files in ``${BZR_HOME}`` are now protected against
314
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
316
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
317
Directory created' when mkdir succeeds. (Martin Pool, #224373)
319
* Decrease peak memory during ``bzr send``. The old code was caching all
320
text content and all inventory strings for all revisions before
321
computing the diffs. Now we only cache as long as there is a child that
322
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
323
256MB peak. (John Arbash Meinel, #614576)
325
* Don't print internal object name when print an invalid revision spec
326
error. (Neil Martinsen-Burrell, #598701)
328
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
329
contains only NUL bytes). Instead warn the user, and allow ``bzr
330
break-lock`` to remove it. (Andrew Bennetts, #619872)
332
* ``EPIPE`` can be raised during test server shutdown. This happened on
333
gentoo only so far. (Vincent Ladeuil, #627277)
335
* Errors occurring during http(s) test server starts should now be
336
handled cleanly. (Vincent Ladeuil, #392402)
338
* Fix ``AttributeError on parent.children`` when adding a file under a
339
directory that was a symlink in the previous commit.
340
(Martin Pool, #192859)
342
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
343
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
344
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
345
stderr in some other circumstances. (Andrew Bennetts, #633745)
347
* Fix signature of RemoteBzrDir.create_workingtree to match that of its
348
superclass. (Neil Martinsen-Burrell, Martin Pool, #524627)
350
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
351
properly remove its warning filter. (Vincent Ladeuil, #625686)
353
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
354
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
356
* Most of the leaked threads during selftest are now fixed, allowing the
357
full test suite to pass on gentoo.
358
(Vincent Ladeuil, #392127)
360
* Only call ``setlocale`` in the bzr startup script on posix systems. This
361
avoids an issue with the newer windows C runtimes used by Python 2.6 and
362
later which can mangle bytestrings printed to the console.
363
(Martin [gz], #631350)
365
* `PathNotChild` should not give a traceback.
366
(Martin Pool, #98735)
368
* ``PQM`` will no longer ignore syntax errors in submissions.
369
(Vincent Ladeuil, #626667)
371
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
372
which can result in "missing referenced chk root keys" errors when
373
fetching from repositories with affected revisions.
374
(Andrew Bennetts, #522637)
376
* strace test-helper tests cope with the new Ubuntu policy of not allowing
377
users to attach to their own processes by default.
378
(Martin Pool, #626679)
380
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
381
be available from ``bzrlib.tests.*``. They used to be, but were
382
accidentally removed. (John Arbash Meinel, #627438)
384
* Treat all IO, OS, and socket errors consistently when establishing
385
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
387
* ``Transport.stat`` on a symlink, including a transport pointing directly
388
to a symlink, now returns information about the symlink.
391
* Upgrading or fetching from a non-rich-root repository to a rich-root
392
repository (e.g. from pack-0.92 to 2a) no longer fails with
393
``'Inter1and2Helper' object has no attribute 'source_repo'``.
394
(Andrew Bennetts, #636930)
396
* Wait for the SSH server to actually finish, rather than just waiting for
397
it to negotiate the key exchange. (John Arbash Meinel, #626876)
402
* ``bzr remove`` now just backs up changed files instead of exiting,
403
forcing you to choose to either keep or delete them. Bazaar will now delete
404
the files if they can easily be recovered using revert, otherwise they
405
will be backed up (adding an extention of the form .~#~).
406
(Marius Kruger, #400554)
408
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
409
with many changes by not repeatedly building a list of all file-ids.
412
* Decrease memory consumption when many chk index pages are loaded. (Such
413
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
414
read many chk pages because the individual chk map nodes will be spread
415
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
416
down to 247MB, expect even more significant savings on 64-bit platforms.
419
* ``DirState`` internals use a little bit less memory. For bzr.dev it
420
drops the memory from 1MB down to about 800kB. And replaces a few
421
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
423
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
424
have dropped from 68 bytes to 40, and directory entries from 120 bytes
425
to 48). (Andrew Bennetts)
427
* When building new working trees, default to reading from the repository
428
rather than the source tree unless explicitly requested. (via
429
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
430
``bzr checkout``. Generally, 2a format repositories extract
431
content faster than seeking and reading content from another tree,
432
especially in cold-cache situations. (John Arbash Meinel, #607298)
434
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
435
Python will use this directory to store bytecodes.
436
(Andrea Corbellini, #626687)
441
* Added a builder/writer sphinx extension that can generate texinfo files. The
442
generated files are syntactically correct but the info navigation nodes
443
needs more work. (Vincent Ladeuil, #219334)
445
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
446
to make the tests conditional.
449
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
450
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
451
(John Arbash Meinel, #617503)
453
* Suggest ``bzr revert`` for restoring locally deleted files in help text
454
for ``bzr update``. (John C Barstow, #191466)
459
* Configuration files should now use the ``from_string`` constructor rather
460
than the ``file`` parameter of the ``_get_parser`` method. The later has
461
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
462
have the configuration file immediately written to disk.
465
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
466
relative change in revno.
469
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
470
the rather than the ``file`` parameter of the ``_get_parser`` method. The
471
later has been deprecated. (Vincent Ladeuil)
473
* InventoryEntry instances now raise AttributeError if you try to assign
474
to attributes that are irrelevant to that kind of entry. e.g. setting
475
``symlink_target`` on an InventoryFile will fail. It is still okay to
476
read those attributes on any kind of InventoryEntry. The complete list
477
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
478
``text_size`` (only valid for kind == file); ``symlink_target`` (only
479
valid for kind == link); and ``reference_revision`` (only valid for kind
480
== tree-reference). (Andrew Bennetts)
482
* InventoryEntry objects no longer have ``_put_in_tar`` or
483
``_put_on_disk`` methods. (Andrew Bennetts)
485
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
486
constructor has been deprecated, use the ``file_name`` parameter instead.
489
* ``WorkingTree`` methods ``pull``, ``update``, and ``_update_tree``
490
now have an optional argument, ``show_base``, which is by default
491
False. This is flag is ultimately passed to ``merge.merge_inner``
492
in each case. (Rory Yorke, #202374)
497
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
503
* ``build_tree_contents`` can create symlinks.
504
(Martin Pool, John Arbash Meinel)
506
* Catch socket errors to avoid
507
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
508
random failures. (Vincent Ladeuil, #601804)
510
* HTTP test servers will leak less threads (and sockets) and will not hang on
511
AIX anymore. (Vincent Ladeuil, #405745)
513
* On platforms that don't support forking give a nice error message saying so
514
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
516
* Rearrange thread leak detection code to eliminate global state and make it
517
possible to extend the reporting. (Martin [gz], #633462)
519
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
520
warning on stderr emitted during ``test_dict_deepnested`` in
521
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
523
* The test suite now simply holds log files in memory, rather than writing them
524
out to disk and then reading them back in and deleting them.
527
* The way ``bzr selftest --parallel`` generates N partitions of tests to
528
run in parallel has changed. Instead of splitting the list of tests at
529
N-1 points, it distributes the tests one-by-one into the partitions in a
530
round robin fashion. This reduces the total time to run the tests in
531
parallel because a series of slow tests in the test suite will be
532
distributed evenly among the parallel test suites, rather than slowing
533
down just one suite. (Andrew Bennetts)
535
* Tracebacks from a parameterized test are no longer reported against every
536
parameterization of that test. This was done by adding a hack to
537
``bzrlib.tests.clone_test`` so that it no longer causes
538
testtools.TestCase instances to share a details dict.
539
(Andrew Bennetts, #625574)
545
:2.2.2: NOT RELEASED YET
556
* Skip tests that needs a bzr source tree when there isn't one. This is
557
needed to succesfully run the test suite for installed versions.
558
(Vincent Ladeuil, #644855).
560
* Skip the tests that requires respecting the chmod bits when running as root.
561
(Vincent Ladeuil, #646133)
578
* Fix tests that failed when run under ``LANG=C``.
579
(Andrew Bennetts, #632387)
587
This is a bugfix release which also includes bugfixes from 2.0.6 and
588
2.1.3. None are critical, but upgrading is recommended for all users on
589
earlier 2.2 releases.
594
* Additional merges after an unrelated branch has been merged with its
595
history no longer crash when deleted files are involved.
596
(Vincent Ladeuil, John Arbash Meinel, #375898)
598
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
599
previously-unversioned directory within the tree: the directory is
600
marked versioned too.
601
(Martin Pool, #192859)
603
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
604
target of the symlink.
605
(Martin Pool, John Arbash Meinel, #128562)
607
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
608
permissions as ``.bzr`` directory on a POSIX OS.
609
(Parth Malwankar, #262450)
611
* CommitBuilder now uses the committer instead of _config.username to generate
612
the revision-id. (Aaron Bentley, #614404)
614
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
615
way which should help avoid problems with concurrent writers.
616
(Vincent Ladeuil, #525571)
618
* Cope with Microsoft FTP server that returns reply '250 Directory
619
created' when mkdir succeeds. (Martin Pool, #224373)
621
* Don't traceback trying to unversion children files of an already
622
unversioned directory. (Vincent Ladeuil, #494221)
624
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
625
contains only NUL bytes). Instead warn the user, and allow ``bzr
626
break-lock`` to remove it. (Andrew Bennetts, #619872)
628
* Fix ``AttributeError on parent.children`` when adding a file under a
629
directory that was a symlink in the previous commit.
630
(Martin Pool, #192859)
632
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
633
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
634
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
635
stderr in some other circumstances. (Andrew Bennetts, #633745)
637
* Only call ``setlocale`` in the bzr startup script on posix systems. This
638
avoids an issue with the newer windows C runtimes used by Python 2.6 and
639
later which can mangle bytestrings printed to the console.
640
(Martin [gz], #631350)
642
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
643
which can result in "missing referenced chk root keys" errors when
644
fetching from repositories with affected revisions.
645
(Andrew Bennetts, #522637)
647
* Raise ValueError instead of a string exception.
648
(John Arbash Meinel, #586926)
650
* Reduce peak memory by one copy of compressed text.
651
(John Arbash Meinel, #566940)
653
* Repositories accessed via a smart server now reject being stacked on a
654
repository in an incompatible format, as is the case when accessing them
655
via other methods. This was causing fetches from those repositories via
656
a smart server (e.g. using ``bzr branch``) to receive invalid data.
657
(Andrew Bennetts, #562380)
659
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
660
error. This error was caused by 2.0 not being updated when upstream
661
python merged the end of run patch, which chose ``stopTestRun`` rather than
662
``done``. (Robert Collins, #571437)
664
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
665
being thrown from ``xml_serializer`` on certain cElementTree setups.
666
(Martin [gz], #254278)
668
* Upgrading or fetching from a non-rich-root repository to a rich-root
669
repository (e.g. from pack-0.92 to 2a) no longer fails with
670
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
671
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
673
* When passing a file to ``UTF8DirReader`` make sure to close the current
674
directory file handle after the chdir fails. Otherwise when passing many
675
filenames into a command line ``bzr status`` we would leak descriptors.
676
(John Arbash Meinel, #583486)
681
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
682
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
683
(John Arbash Meinel, #617503)
688
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
694
* ``build_tree_contents`` can create symlinks.
695
(Martin Pool, John Arbash Meinel)
697
* Tracebacks from a parameterized test are no longer reported against every
698
parameterization of that test. This was done by adding a hack to
699
``bzrlib.tests.clone_test`` so that it no longer causes
700
testtools.TestCase instances to share a details dict.
701
(Andrew Bennetts, #625574)
707
:2.1.4: NOT RELEASED YET
718
* Skip tests that needs a bzr source tree when there isn't one. This is
719
needed to succesfully run the test suite for installed versions.
720
(Vincent Ladeuil, #644855).
722
* Skip the tests that requires respecting the chmod bits when running as root.
723
(Vincent Ladeuil, #646133)
744
:Codename: Do run run
747
The third release in our 2.1 series addresses several user-inconvenience bugs
748
(and includes the fixes done in 2.0.6). None are critical, but upgrading is
749
recommended for all users on earlier 2.1 releases.
754
* Additional merges after an unrelated branch has been merged with its
755
history no longer crash when deleted files are involved.
756
(Vincent Ladeuil, John Arbash Meinel, #375898)
758
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
759
previously-unversioned directory within the tree: the directory is
760
marked versioned too.
761
(Martin Pool, #192859)
763
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
764
target of the symlink.
765
(Martin Pool, John Arbash Meinel, #128562)
767
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
768
permissions as ``.bzr`` directory on a POSIX OS.
769
(Parth Malwankar, #262450)
771
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
772
way which should help avoid problems with concurrent writers.
773
(Vincent Ladeuil, #525571)
775
* Don't traceback trying to unversion children files of an already
776
unversioned directory. (Vincent Ladeuil, #494221)
778
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
779
contains only NUL bytes). Instead warn the user, and allow ``bzr
780
break-lock`` to remove it. (Andrew Bennetts, #619872)
782
* Fix ``AttributeError on parent.children`` when adding a file under a
783
directory that was a symlink in the previous commit.
784
(Martin Pool, #192859)
786
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
787
which can result in "missing referenced chk root keys" errors when
788
fetching from repositories with affected revisions.
789
(Andrew Bennetts, #522637)
791
* Raise ValueError instead of a string exception.
792
(John Arbash Meinel, #586926)
794
* Reduce peak memory by one copy of compressed text.
795
(John Arbash Meinel, #566940)
797
* Repositories accessed via a smart server now reject being stacked on a
798
repository in an incompatible format, as is the case when accessing them
799
via other methods. This was causing fetches from those repositories via
800
a smart server (e.g. using ``bzr branch``) to receive invalid data.
801
(Andrew Bennetts, #562380)
803
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
804
error. This error was caused by 2.0 not being updated when upstream
805
python merged the end of run patch, which chose ``stopTestRun`` rather than
806
``done``. (Robert Collins, #571437)
808
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
809
being thrown from ``xml_serializer`` on certain cElementTree setups.
810
(Martin [gz], #254278)
812
* When passing a file to ``UTF8DirReader`` make sure to close the current
813
directory file handle after the chdir fails. Otherwise when passing many
814
filenames into a command line ``bzr status`` we would leak descriptors.
815
(John Arbash Meinel, #583486)
820
* ``build_tree_contents`` can create symlinks.
821
(Martin Pool, John Arbash Meinel)
829
The sixth release in our 2.0 series addresses several user-inconvenience
830
bugs. None are critical, but upgrading is recommended for all users on
831
earlier 2.0 releases.
836
* Additional merges after an unrelated branch has been merged with its
837
history no longer crash when deleted files are involved.
838
(Vincent Ladeuil, John Arbash Meinel, #375898)
840
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
841
previously-unversioned directory within the tree: the directory is
842
marked versioned too.
843
(Martin Pool, #192859)
845
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
846
target of the symlink.
847
(Martin Pool, John Arbash Meinel, #128562)
849
* ``bzr revert`` now only takes write lock on working tree, instead of on
850
both working tree and branch.
851
(Danny van Heumen, #498409)
853
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
854
permissions as ``.bzr`` directory on a POSIX OS.
855
(Parth Malwankar, #262450)
857
* Don't traceback trying to unversion children files of an already
858
unversioned directory. (Vincent Ladeuil, #494221)
860
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
861
contains only NUL bytes). Instead warn the user, and allow ``bzr
862
break-lock`` to remove it. (Andrew Bennetts, #619872)
864
* Fix ``AttributeError on parent.children`` when adding a file under a
865
directory that was a symlink in the previous commit.
866
(Martin Pool, #192859)
868
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
869
which can result in "missing referenced chk root keys" errors when
870
fetching from repositories with affected revisions.
871
(Andrew Bennetts, #522637)
873
* Raise ValueError instead of a string exception.
874
(John Arbash Meinel, #586926)
876
* Reduce peak memory by one copy of compressed text.
877
(John Arbash Meinel, #566940)
879
* Repositories accessed via a smart server now reject being stacked on a
880
repository in an incompatible format, as is the case when accessing them
881
via other methods. This was causing fetches from those repositories via
882
a smart server (e.g. using ``bzr branch``) to receive invalid data.
883
(Andrew Bennetts, #562380)
885
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
886
error. This error was caused by 2.0 not being updated when upstream
887
python merged the end of run patch, which chose ``stopTestRun`` rather than
888
``done``. (Robert Collins, #571437)
890
* When passing a file to ``UTF8DirReader`` make sure to close the current
891
directory file handle after the chdir fails. Otherwise when passing many
892
filenames into a command line ``bzr status`` we would leak descriptors.
893
(John Arbash Meinel, #583486)
899
* ``build_tree_contents`` can create symlinks.
900
(Martin Pool, John Arbash Meinel)
909
This release marks the start of another long-term-stable series. From
910
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
911
while 2.3 will become our new development series. The 2.0 and 2.1 series
912
will also continue to get bugfixes. (Currently 2.0 is planned to be
913
supported for another 6 months.)
915
This is primarily a bugfix and polish release over the 2.1 series, with
916
a large number of bugs fixed (>120), and some performance improvements.
918
There are some compatibility changes in this release. For users of bzrlib
919
as a library, we now request that they call ``bzrlib.initialize`` and use
920
the returned context manager appropriately. For commandline users we no
921
longer guess user identity for ``bzr commit``, users must specify their
922
identity using ``bzr whoami`` (you don't need to specify your identity for
923
readonly operations).
925
Users are encouraged to upgrade from the other stable series.
930
* BzrError subclasses no longer support the name "message" to be used
931
as an argument for __init__ or in _fmt format specification as this
932
breaks in some Python versions. errors.LockError.__init__ argument
933
is now named "msg" instead of earlier "message".
934
(Parth Malwankar, #603461)
936
* The old ``bzr selftest --benchmark`` option has been removed.
937
<https://launchpad.net/bzr-usertest> is an actively-maintained
938
macrobenchmark suite.
944
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
945
``InvalidPattern`` exception error message now shows faulting
947
(Parth Malwankar #300062)
949
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
950
way which should help avoid problems with concurrent writers.
951
(Vincent Ladeuil, #525571)
953
* Don't traceback trying to unversion children files of an already
954
unversioned directory. (Vincent Ladeuil, #494221)
956
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
957
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
959
* Progress bars prefer to truncate the text message rather than the
960
counters. The spinner is shown between the network transfer indicator
961
and the progress message. Progress bars are correctly cleared off when
962
they finish. (Martin Pool, #611127)
964
* Recursive binding for checkouts is now detected by bzr. A clear error
965
message is shown to the user. (Parth Malwankar, #405192)
970
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
971
tree, and works with unrelated branches. (Andrew Bennetts)
973
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
974
GUI with out have a console open in the background.
975
(Gary van der Merwe, #433781)
980
* ``bzr help patterns`` now explains case insensitive patterns and
981
points to Python regular expression documentation.
982
(Parth Malwankar, #594386)
987
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
992
* Unit test added to ensure that "message" is not uses as a format variable
993
name in BzrError subclasses as this conflicts with some Python versions.
994
(Parth Malwankar, #603461)
999
:Codename: Monkey Magic
1003
This fourth and final beta in the 2.2 series now stabilizes the internal
1004
APIs. Plugin authors are recommended to ensure their releases are
1005
compatible, so that 2.2rc1 can be a true release candidate, containing
1006
stable and compatible plugin versions.
1008
For users of bzrlib as a library, one of the primary changes is to request
1009
that they call ``bzrlib.initialize`` and use the returned context manager
1012
Better interaction with ``bzr-loom`` to make sure branching from a loom
1013
even over a smart server still yields a local loom. Not to mention lots of
1014
bugfixes over 2.2b3.
1016
Compatibility Breaks
1017
********************
1019
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
1020
the result of ``bzrlib.initialize``. This change was made when fixing
1021
the bad habit recent bzr versions have had of leaving progress bars
1022
behind on the screen. That required calling another function before
1023
exiting the program, and it made sense to provide a full context
1024
manager at the same time. (Robert Collins)
1026
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
1027
context manager in the Python 2.5 and above sense. The bzrlib base class
1028
is such a manager, but third party UI factories which do not derive from
1029
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
1032
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
1033
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
1034
scheme. Previously these URLs would be treated as local paths.
1041
* Support ``--directory`` option for a number of additional commands:
1042
conflicts, merge-directive, missing, resolve, shelve, switch,
1043
unshelve, whoami. (Martin von Gagern, #527878)
1048
* ``bzr branch`` to a new repository with a default stacking policy no
1049
longer transfers the full history unnecessarily.
1050
(Andrew Bennetts, #597942)
1052
* ``bzr init`` does not recursively scan directory contents anymore
1053
leading to faster init for directories with existing content.
1054
(Martin [gz], Parth Malwankar, #501307)
1056
* ``bzr log --exclude-common-ancestry`` is now taken into account for
1057
linear ancetries. (Vincent Ladeuil, #575631)
1059
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
1060
rather than trying to fetch the data locally and failing because of a
1061
readonly error. (Martin von Gagern, #149270)
1063
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
1064
or pull location in locations.conf or branch.conf.
1065
(Gordon Tyler, #534787)
1067
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
1068
smart server. (Andrew Bennetts, #551525)
1070
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
1071
(Marius Kruger, Robert Collins)
1073
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
1074
(Marius Kruger, Robert Collins)
1076
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
1077
proper error messages. (Vincent Ladeuil, #591215)
1079
* Explicitly removing ``--profile-imports`` option from parsed command-line
1080
arguments on Windows, because bzr script does the same.
1081
(Alexander Belchenko, #588277)
1083
* Fetching was slightly confused about the best code to use and was
1084
using a new code path for all branches, resulting in more lookups than
1085
necessary on old branches. (Robert Collins, #593515)
1087
* Final fix for 'no help for command' issue. We now show a clean message
1088
when a command has no help, document how to set help more clearly, and
1089
test that all commands available to the test suite have help.
1090
(Robert Collins, #177500)
1092
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
1093
``InvalidPattern`` exception showing clear error message to the user.
1094
(Parth Malwankar #300062)
1096
* Progress output is cleaned up when exiting. (Aaron Bentley)
1098
* Raise ValueError instead of a string exception.
1099
(John Arbash Meinel, #586926)
1101
* Relative imports in plugins are now handled correctly when using
1102
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
1104
* ``ScriptRunner`` now strips off leading indentation from test scripts,
1105
which previously caused "SyntaxError: No command for line".
1108
* Show unicode filenames in diff headers using terminal encoding.
1109
(Alexander Belchenko, Bug #382699)
1110
NOTE for Windows users: If user need to save diff to file then user need to
1111
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
1112
(e.g. ``chcp 1251`` for Russian Windows).
1114
* URL displayed for use with ``break-lock`` when smart server sees lock
1115
contention are now valid. Default timeout for lock contention retry is
1116
now 30 seconds instead of 300 seconds.
1117
(Parth Malwankar, #250451)
1119
* ``walkdirs`` now raises a useful message when the filenames are not using
1120
the filesystem encoding. (Eric Moritz, #488519)
1122
* Enable debugging of bzr on windows with pdb and other tools. This was
1123
broken because we call GetCommandLineW on windows. The fix adjusts the
1124
command line we get to be the same length as sys.argv.
1125
(Jason Spashett, Alexander Belchenko, #587868)
1130
* Bazaar now reads data from SSH connections more efficiently on platforms
1131
that provide the ``socketpair`` function, and when using paramiko.
1132
(Andrew Bennetts, #590637)
1134
* ``Branch.copy_content_into`` is now a convenience method dispatching to
1135
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
1136
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
1137
(Robert Collins, #201613)
1139
* ``Branch`` formats can now be loaded lazily by registering a
1140
``MetaDirBranchFormatFactory`` rather than an actual format. This will
1141
cause the named format class to be loaded only when an enumeration of
1142
formats is needed or when the format string for the object is
1143
encountered. (Robert Collins, Jelmer Vernooij)
1145
* The encoding that bzr uses to output things other than file content can
1146
now be overridden via the output_encoding configuration option.
1147
(Martin Pool, #340394)
1149
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
1150
do not cause modules to be loaded unnecessarily just because the plugin
1151
registers a merge hook. This improves ``bzr rocks`` time by about 25%
1152
in a default installation (with just the core plugins).
1158
* Added ``regression`` tag to our tags list. (Robert Collins)
1160
* Improved our release checklist to have a bit less churn and leave things
1161
ready-to-go for the next action (including other people doing
1162
development). (Robert Collins)
1164
* Remove obsolete discussion of PQM in documentation about how to
1165
contribute to Bazaar. (Martin Pool, #588444)
1170
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
1171
an iterable of format pairs, rather than just a single pair, permitting
1172
InterBranch objects that work with multiple permutations to be
1173
comprehensively tested. (Robert Collins)
1175
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
1176
profiles when concurrent profile requests are made. Instead the profile
1177
requests will be serialised. Reentrant requests will now deadlock.
1180
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
1181
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
1182
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
1184
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
1185
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
1186
case the default error message not suitable for the use case.
1189
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
1190
one method ``check_output``, and we now recommend checking command
1191
output using ``run_script``. (Martin Pool)
1193
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
1194
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
1195
Third-party implementations of ``SSHVendor`` may need to be updated
1196
accordingly. Similarly, any code using ``SSHConnection`` directly will
1197
need to be updated. (Andrew Bennetts)
1199
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
1200
changed to take an ``SSHParams`` instance (replacing many individual
1201
values). (Andrew Bennetts)
1206
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
1207
selection when explicitly requested; this avoids many duplicate calls
1208
being logged when helpers, wrappers and older code that manually calls
1209
it are executed it is now logged deliberately by the ui setup code.
1212
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
1214
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
1215
that ``sys.getsizeof`` and other memory analysis tools will report more
1216
accurate results. (Andrew Bennetts)
1218
* The symbol_versioning module can now cleanup after itself -
1219
``suppress_deprecation_warnings`` now returns a cleanup function.
1225
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
1226
to test. (Martin Pool)
1228
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
1229
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
1236
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
1237
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
1238
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
1239
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
1240
bash completion script and bzr will no longer guess at identity details -
1241
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
1242
For developers we have some API changes which may impact plugins as well
1243
as a bunch of our regular improvements to internal clarity and test
13
1246
Compatibility Breaks
14
1247
********************
1249
* An API break has been made to the lock_write method of ``Branch`` and
1250
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
1251
and ``repository.RepositoryWriteLockResult`` objects. This makes
1252
changing the API in future easier and permits some cleaner calling code.
1253
The lock_read method has also changed from having no defined return
1254
value to returning ``LogicalLockResult`` objects.
1257
* ``bzr`` does not try to guess the username as ``username@hostname``
1258
and requires it to be explictly set. This can be set using ``bzr
1259
whoami``. (Parth Malwankar, #549310)
1261
* ``bzrlib.commands.Command`` will now raise ValueError during
1262
construction if there is no __doc__ set. (Note, this will be reverted in
1263
2.2b4) (Robert Collins)
1265
* The source tree no longer contains a contrib/zsh/_bzr completion
1266
script. The new file contrib/zsh/README suggests alternatives.
1267
(Martin von Gagern, #560030)