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
* ``bzr break-lock --force`` breaks the lock without prompting. (Before
78
using this, make sure the process holding the lock really is dead.)
79
(Martin Pool, #397315)
81
* Don't force openssh to use protocol=2, since that is now the default.
82
(Neil Martinsen-Burrell, #561061)
84
* Fix signature of RemoteBzrDir.create_workingtree to match that of its
85
superclass. (Neil Martinsen-Burrell, Martin Pool, #524627)
87
* Fix traceback with python-2.7's xmlrpclib
88
(Toshio Kuratomi, #612096)
90
* Print junk rather than throwing a UnicodeDecodeError from ``bzr version-info``
91
when using the rio format (with non-ascii information) on a non-utf-8 terminal.
92
(Andrej A Antonov, #518609)
94
* Skip tests that needs a bzr source tree when there isn't one. This is
95
needed to succesfully run the test suite for installed versions.
96
(Vincent Ladeuil, #644855).
98
* Skip the tests that requires respecting the chmod bits when running as root.
99
(Vincent Ladeuil, #646133)
101
* Treat all IO, OS, and socket errors consistently when establishing
102
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
104
* ``unshelve --preview`` now can show diff in a non-ascii encoding.
105
(Andrej A Antonov, #518916)
110
* ``bzr remove`` now takes a ``--no-backup`` option for when you don't want it
111
to backup anything, just delete it. This option used to be called ``--force``
112
which is now deprecated.
113
(Marius Kruger, #400554)
118
* Provide more detailed help on the Launchpad plugin at "bzr help
119
plugins/launchpad". (Neil Martinsen-Burrell, #589379)
121
* Suggest ``bzr revert`` for restoring locally deleted files in help text
122
for ``bzr update``. (John C Barstow, #191466)
127
* ``WorkingTree`` methods ``pull``, ``update``, and ``_update_tree``
128
now have an optional argument, ``show_base``, which is by default
129
False. This is flag is ultimately passed to ``merge.merge_inner``
130
in each case. (Rory Yorke, #202374)
135
* Small change to GroupCompressBlock to work more in terms of 'chunks'
136
rather than 'content' for its compressed storage. (John Arbash Meinel)
138
* When running ``bzr selftest --subunit`` the subunit stream will no
139
longer include the "log" information for tests which are considered to
140
be 'successes' (success, xfail, skip, etc) (John Arbash Meinel)
145
* Add ``tests/ssl_certs/ca.crt`` to the required test files list. Test
146
involving the pycurl https test server fail otherwise when running
147
selftest from an installed version. (Vincent Ladeuil, #651706)
149
* Fix tests that failed when run under ``LANG=C``.
150
(Andrew Bennetts, #632387)
152
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
153
warning on stderr emitted during ``test_dict_deepnested`` in
154
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
156
* Use tests.TestCaseInTempDir for tests that requires disk resources.
157
(Vincent Ladeuil, #650001)
164
This is the first beta of the 2.3 series, leading up to a 2.3.0
165
release in January or February. Beta releases are suitable for everyday use
166
but may cause some incompatibilities with plugins. Some plugins may need
167
small updates to work with 2.3b1.
169
2.3b1 includes some performance improvements in both speed and memory
170
consumption, some preliminary support for generating a texinfo version of
171
the doc and better support for launchpad. Many changes were made to make
172
our test suite more robust as well as numerous documentation fixes. It
173
improves the common infrastructure for dealing with colocated named
174
branches and foreign branches. We plan to continue with these themes
175
through the 2.3 series.
177
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
184
* BzrError subclasses no longer support the name "message" to be used
185
as an argument for __init__ or in _fmt format specification as this
186
breaks in some Python versions. errors.LockError.__init__ argument
187
is now named "msg" instead of earlier "message".
188
(Parth Malwankar, #603461)
190
* Additional merges after an unrelated branch has been merged with its
191
history no longer crash when deleted files are involved.
192
(Vincent Ladeuil, John Arbash Meinel, #375898)
194
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
195
previously-unversioned directory within the tree: the directory is
196
marked versioned too.
197
(Martin Pool, #192859)
199
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
200
target of the symlink.
201
(Martin Pool, John Arbash Meinel, #128562)
203
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
204
permissions as ``.bzr`` directory on a POSIX OS.
205
(Parth Malwankar, #262450)
207
* ``bzrlib.transform.TreeTransformBase.final_kind``,
208
``bzrlib.transform.TreeTransform.tree_kind`` and
209
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
210
of raising NoSuchFile. (Vincent Ladeuil)
212
* CommitBuilder now uses the committer instead of _config.username to generate
213
the revision-id. (Aaron Bentley, #614404)
215
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
216
way which should help avoid problems with concurrent writers.
217
(Vincent Ladeuil, #525571)
219
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
220
and `BzrDir`, respectively. `ControlDirFormat`
221
and `ControlDir` should be used as the base classes for new non-.bzr
224
`BzrDirFormat.register_control_format` has been renamed to
225
`ControlDirFormat.register_format`.
227
`BzrDirFormat.register_server_control_format` has been removed.
229
Probing for control directories is now done by separate objects derived
230
from `bzrlib.controldir.Prober` and registered using
231
`bzrlib.controldir.ControlDirFormat.register_prober` or
232
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
233
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
235
`BzrDirFormat.register_format` has been renamed to
236
`BzrProber.register_bzrdir_format`.
238
`bzrlib.bzrdir.network_format_registry` has been moved to
243
* Cope with Microsoft FTP server that returns reply '250 Directory
244
created' when mkdir succeeds. (Martin Pool, #224373)
246
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
247
contains only NUL bytes). Instead warn the user, and allow ``bzr
248
break-lock`` to remove it. (Andrew Bennetts, #619872)
250
* `decode` parameter to get() method in FtpTransport and GioTransport classes
251
is deprecated. (Alexander Belchenko)
253
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
257
* Fix ``AttributeError on parent.children`` when adding a file under a
258
directory that was a symlink in the previous commit.
259
(Martin Pool, #192859)
261
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
262
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
263
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
264
stderr in some other circumstances. (Andrew Bennetts, #633745)
266
* Only call ``setlocale`` in the bzr startup script on posix systems. This
267
avoids an issue with the newer windows C runtimes used by Python 2.6 and
268
later which can mangle bytestrings printed to the console.
269
(Martin [gz], #631350)
271
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
272
which can result in "missing referenced chk root keys" errors when
273
fetching from repositories with affected revisions.
274
(Andrew Bennetts, #522637)
276
* Raise ValueError instead of a string exception.
277
(John Arbash Meinel, #586926)
279
* Reduce peak memory by one copy of compressed text.
280
(John Arbash Meinel, #566940)
282
* Repositories accessed via a smart server now reject being stacked on a
283
repository in an incompatible format, as is the case when accessing them
284
via other methods. This was causing fetches from those repositories via
285
a smart server (e.g. using ``bzr branch``) to receive invalid data.
286
(Andrew Bennetts, #562380)
288
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
289
error. This error was caused by 2.0 not being updated when upstream
290
python merged the end of run patch, which chose ``stopTestRun`` rather than
291
``done``. (Robert Collins, #571437)
293
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
294
being thrown from ``xml_serializer`` on certain cElementTree setups.
295
(Martin [gz], #254278)
297
* The old ``bzr selftest --benchmark`` option has been removed.
298
<https://launchpad.net/bzr-usertest> is an actively-maintained
299
macrobenchmark suite.
302
* `tree_files` and `internal_tree_files` are now deprecated in favor of
303
`WorkingTree.open_containing_paths`.
306
* Upgrading or fetching from a non-rich-root repository to a rich-root
307
repository (e.g. from pack-0.92 to 2a) no longer fails with
308
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
309
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
311
* When passing a file to ``UTF8DirReader`` make sure to close the current
312
directory file handle after the chdir fails. Otherwise when passing many
313
filenames into a command line ``bzr status`` we would leak descriptors.
314
(John Arbash Meinel, #583486)
319
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
320
to register custom handlers which will be invoked before/after the
321
standard status output is displayed. (Parth Malwankar)
323
* ``bzr break-lock --config [location]`` can now break config files
324
locks. (Vincent Ladeuil, #525571)
326
* ``bzrlib.config.LockableConfig`` is a base class for config files that
327
needs to be protected against multiple writers. All methods that
328
change a configuration variable value must be decorated with
329
@needs_write_lock (set_option() for example).
330
(Vincent Ladeuil, #525571)
332
* The ``lp:`` prefix will now use your known username (from
333
``bzr launchpad-login``) to expand ``~`` to your username. For example:
334
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
335
push to ``lp:~user/project/branch``. (John Arbash Meinel)
337
* New development format ``development8-subtree`` which is similar to the
338
``2a`` format and adds subtree support. (Jelmer Vernooij)
343
* Allow using both --using and --diff-options.
344
(Matthäus G. Chajdas, #234708)
346
* Allow using non-integer bug ID with generic bug trackers.
347
(Alexandre Garnier, #440472)
349
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
350
previously-unversioned directory within the tree: the directory is
351
marked versioned too.
352
(Martin Pool, #192859)
354
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
355
``InvalidPattern`` exception error message now shows faulting
357
(Parth Malwankar #300062)
359
* ``clean-tree`` issues a warning if it is unable to delete a file
360
due to ``errno.EACCES`` instead of exiting with an error on Windows.
361
(Parth Malwankar, #430785)
363
* CommitBuilder now uses the committer instead of _config.username to generate
364
the revision-id. (Aaron Bentley, #614404)
366
* Configuration files in ``${BZR_HOME}`` are now protected against
367
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
369
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
370
Directory created' when mkdir succeeds. (Martin Pool, #224373)
372
* Decrease peak memory during ``bzr send``. The old code was caching all
373
text content and all inventory strings for all revisions before
374
computing the diffs. Now we only cache as long as there is a child that
375
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
376
256MB peak. (John Arbash Meinel, #614576)
378
* Don't print internal object name when print an invalid revision spec
379
error. (Neil Martinsen-Burrell, #598701)
381
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
382
contains only NUL bytes). Instead warn the user, and allow ``bzr
383
break-lock`` to remove it. (Andrew Bennetts, #619872)
385
* ``EPIPE`` can be raised during test server shutdown. This happened on
386
gentoo only so far. (Vincent Ladeuil, #627277)
388
* Errors occurring during http(s) test server starts should now be
389
handled cleanly. (Vincent Ladeuil, #392402)
391
* Fix ``AttributeError on parent.children`` when adding a file under a
392
directory that was a symlink in the previous commit.
393
(Martin Pool, #192859)
395
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
396
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
397
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
398
stderr in some other circumstances. (Andrew Bennetts, #633745)
400
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
401
properly remove its warning filter. (Vincent Ladeuil, #625686)
403
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
404
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
406
* Most of the leaked threads during selftest are now fixed, allowing the
407
full test suite to pass on gentoo.
408
(Vincent Ladeuil, #392127)
410
* Only call ``setlocale`` in the bzr startup script on posix systems. This
411
avoids an issue with the newer windows C runtimes used by Python 2.6 and
412
later which can mangle bytestrings printed to the console.
413
(Martin [gz], #631350)
415
* `PathNotChild` should not give a traceback.
416
(Martin Pool, #98735)
418
* ``PQM`` will no longer ignore syntax errors in submissions.
419
(Vincent Ladeuil, #626667)
421
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
422
which can result in "missing referenced chk root keys" errors when
423
fetching from repositories with affected revisions.
424
(Andrew Bennetts, #522637)
426
* strace test-helper tests cope with the new Ubuntu policy of not allowing
427
users to attach to their own processes by default.
428
(Martin Pool, #626679)
430
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
431
be available from ``bzrlib.tests.*``. They used to be, but were
432
accidentally removed. (John Arbash Meinel, #627438)
434
* ``Transport.stat`` on a symlink, including a transport pointing directly
435
to a symlink, now returns information about the symlink.
438
* Upgrading or fetching from a non-rich-root repository to a rich-root
439
repository (e.g. from pack-0.92 to 2a) no longer fails with
440
``'Inter1and2Helper' object has no attribute 'source_repo'``.
441
(Andrew Bennetts, #636930)
443
* Wait for the SSH server to actually finish, rather than just waiting for
444
it to negotiate the key exchange. (John Arbash Meinel, #626876)
449
* ``bzr remove`` now just backs up changed files instead of exiting,
450
forcing you to choose to either keep or delete them. Bazaar will now delete
451
the files if they can easily be recovered using revert, otherwise they
452
will be backed up (adding an extention of the form .~#~).
453
(Marius Kruger, #400554)
455
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
456
with many changes by not repeatedly building a list of all file-ids.
459
* Decrease memory consumption when many chk index pages are loaded. (Such
460
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
461
read many chk pages because the individual chk map nodes will be spread
462
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
463
down to 247MB, expect even more significant savings on 64-bit platforms.
466
* ``DirState`` internals use a little bit less memory. For bzr.dev it
467
drops the memory from 1MB down to about 800kB. And replaces a few
468
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
470
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
471
have dropped from 68 bytes to 40, and directory entries from 120 bytes
472
to 48). (Andrew Bennetts)
474
* When building new working trees, default to reading from the repository
475
rather than the source tree unless explicitly requested. (via
476
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
477
``bzr checkout``. Generally, 2a format repositories extract
478
content faster than seeking and reading content from another tree,
479
especially in cold-cache situations. (John Arbash Meinel, #607298)
481
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
482
Python will use this directory to store bytecodes.
483
(Andrea Corbellini, #626687)
488
* Added a builder/writer sphinx extension that can generate texinfo files. The
489
generated files are syntactically correct but the info navigation nodes
490
needs more work. (Vincent Ladeuil, #219334)
492
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
493
to make the tests conditional.
496
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
497
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
498
(John Arbash Meinel, #617503)
503
* Configuration files should now use the ``from_string`` constructor rather
504
than the ``file`` parameter of the ``_get_parser`` method. The later has
505
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
506
have the configuration file immediately written to disk.
509
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
510
relative change in revno.
513
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
514
the rather than the ``file`` parameter of the ``_get_parser`` method. The
515
later has been deprecated. (Vincent Ladeuil)
517
* InventoryEntry instances now raise AttributeError if you try to assign
518
to attributes that are irrelevant to that kind of entry. e.g. setting
519
``symlink_target`` on an InventoryFile will fail. It is still okay to
520
read those attributes on any kind of InventoryEntry. The complete list
521
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
522
``text_size`` (only valid for kind == file); ``symlink_target`` (only
523
valid for kind == link); and ``reference_revision`` (only valid for kind
524
== tree-reference). (Andrew Bennetts)
526
* InventoryEntry objects no longer have ``_put_in_tar`` or
527
``_put_on_disk`` methods. (Andrew Bennetts)
529
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
530
constructor has been deprecated, use the ``file_name`` parameter instead.
536
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
542
* ``build_tree_contents`` can create symlinks.
543
(Martin Pool, John Arbash Meinel)
545
* Catch socket errors to avoid
546
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
547
random failures. (Vincent Ladeuil, #601804)
549
* HTTP test servers will leak less threads (and sockets) and will not hang on
550
AIX anymore. (Vincent Ladeuil, #405745)
552
* On platforms that don't support forking give a nice error message saying so
553
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
555
* Rearrange thread leak detection code to eliminate global state and make it
556
possible to extend the reporting. (Martin [gz], #633462)
558
* The test suite now simply holds log files in memory, rather than writing them
559
out to disk and then reading them back in and deleting them.
562
* The way ``bzr selftest --parallel`` generates N partitions of tests to
563
run in parallel has changed. Instead of splitting the list of tests at
564
N-1 points, it distributes the tests one-by-one into the partitions in a
565
round robin fashion. This reduces the total time to run the tests in
566
parallel because a series of slow tests in the test suite will be
567
distributed evenly among the parallel test suites, rather than slowing
568
down just one suite. (Andrew Bennetts)
570
* Tracebacks from a parameterized test are no longer reported against every
571
parameterization of that test. This was done by adding a hack to
572
``bzrlib.tests.clone_test`` so that it no longer causes
573
testtools.TestCase instances to share a details dict.
574
(Andrew Bennetts, #625574)
580
:2.2.2: NOT RELEASED YET
591
* Skip tests that needs a bzr source tree when there isn't one. This is
592
needed to succesfully run the test suite for installed versions.
593
(Vincent Ladeuil, #644855).
595
* Skip the tests that requires respecting the chmod bits when running as
596
root. Including the one that wasn't present in 2.1.
597
(Vincent Ladeuil, #646133)
599
* Using bzr with `lp:` urls behind an http proxy should work.
600
(Robert Collins, #558343)
617
* Add ``tests/ssl_certs/ca.crt`` to the required test files list. Test
618
involving the pycurl https test server fail otherwise when running
619
selftest from an installed version. (Vincent Ladeuil, #651706)
621
* Fix tests that failed when run under ``LANG=C``.
622
(Andrew Bennetts, #632387)
630
This is a bugfix release which also includes bugfixes from 2.0.6 and
631
2.1.3. None are critical, but upgrading is recommended for all users on
632
earlier 2.2 releases.
637
* Additional merges after an unrelated branch has been merged with its
638
history no longer crash when deleted files are involved.
639
(Vincent Ladeuil, John Arbash Meinel, #375898)
641
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
642
previously-unversioned directory within the tree: the directory is
643
marked versioned too.
644
(Martin Pool, #192859)
646
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
647
target of the symlink.
648
(Martin Pool, John Arbash Meinel, #128562)
650
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
651
permissions as ``.bzr`` directory on a POSIX OS.
652
(Parth Malwankar, #262450)
654
* CommitBuilder now uses the committer instead of _config.username to generate
655
the revision-id. (Aaron Bentley, #614404)
657
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
658
way which should help avoid problems with concurrent writers.
659
(Vincent Ladeuil, #525571)
661
* Cope with Microsoft FTP server that returns reply '250 Directory
662
created' when mkdir succeeds. (Martin Pool, #224373)
664
* Don't traceback trying to unversion children files of an already
665
unversioned directory. (Vincent Ladeuil, #494221)
667
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
668
contains only NUL bytes). Instead warn the user, and allow ``bzr
669
break-lock`` to remove it. (Andrew Bennetts, #619872)
671
* Fix ``AttributeError on parent.children`` when adding a file under a
672
directory that was a symlink in the previous commit.
673
(Martin Pool, #192859)
675
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
676
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
677
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
678
stderr in some other circumstances. (Andrew Bennetts, #633745)
680
* Only call ``setlocale`` in the bzr startup script on posix systems. This
681
avoids an issue with the newer windows C runtimes used by Python 2.6 and
682
later which can mangle bytestrings printed to the console.
683
(Martin [gz], #631350)
685
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
686
which can result in "missing referenced chk root keys" errors when
687
fetching from repositories with affected revisions.
688
(Andrew Bennetts, #522637)
690
* Raise ValueError instead of a string exception.
691
(John Arbash Meinel, #586926)
693
* Reduce peak memory by one copy of compressed text.
694
(John Arbash Meinel, #566940)
696
* Repositories accessed via a smart server now reject being stacked on a
697
repository in an incompatible format, as is the case when accessing them
698
via other methods. This was causing fetches from those repositories via
699
a smart server (e.g. using ``bzr branch``) to receive invalid data.
700
(Andrew Bennetts, #562380)
702
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
703
error. This error was caused by 2.0 not being updated when upstream
704
python merged the end of run patch, which chose ``stopTestRun`` rather than
705
``done``. (Robert Collins, #571437)
707
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
708
being thrown from ``xml_serializer`` on certain cElementTree setups.
709
(Martin [gz], #254278)
711
* Upgrading or fetching from a non-rich-root repository to a rich-root
712
repository (e.g. from pack-0.92 to 2a) no longer fails with
713
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
714
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
716
* When passing a file to ``UTF8DirReader`` make sure to close the current
717
directory file handle after the chdir fails. Otherwise when passing many
718
filenames into a command line ``bzr status`` we would leak descriptors.
719
(John Arbash Meinel, #583486)
724
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
725
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
726
(John Arbash Meinel, #617503)
731
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
737
* ``build_tree_contents`` can create symlinks.
738
(Martin Pool, John Arbash Meinel)
740
* Tracebacks from a parameterized test are no longer reported against every
741
parameterization of that test. This was done by adding a hack to
742
``bzrlib.tests.clone_test`` so that it no longer causes
743
testtools.TestCase instances to share a details dict.
744
(Andrew Bennetts, #625574)
750
:2.1.4: NOT RELEASED YET
761
* Skip tests that needs a bzr source tree when there isn't one. This is
762
needed to succesfully run the test suite for installed versions.
763
(Vincent Ladeuil, #644855).
765
* Skip the tests that requires respecting the chmod bits when running as root.
766
(Vincent Ladeuil, #646133)
768
* Using bzr with `lp:` urls behind an http proxy should work.
769
(Robert Collins, #558343)
790
:Codename: Do run run
793
The third release in our 2.1 series addresses several user-inconvenience bugs
794
(and includes the fixes done in 2.0.6). None are critical, but upgrading is
795
recommended for all users on earlier 2.1 releases.
800
* Additional merges after an unrelated branch has been merged with its
801
history no longer crash when deleted files are involved.
802
(Vincent Ladeuil, John Arbash Meinel, #375898)
804
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
805
previously-unversioned directory within the tree: the directory is
806
marked versioned too.
807
(Martin Pool, #192859)
809
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
810
target of the symlink.
811
(Martin Pool, John Arbash Meinel, #128562)
813
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
814
permissions as ``.bzr`` directory on a POSIX OS.
815
(Parth Malwankar, #262450)
817
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
818
way which should help avoid problems with concurrent writers.
819
(Vincent Ladeuil, #525571)
821
* Don't traceback trying to unversion children files of an already
822
unversioned directory. (Vincent Ladeuil, #494221)
824
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
825
contains only NUL bytes). Instead warn the user, and allow ``bzr
826
break-lock`` to remove it. (Andrew Bennetts, #619872)
828
* Fix ``AttributeError on parent.children`` when adding a file under a
829
directory that was a symlink in the previous commit.
830
(Martin Pool, #192859)
832
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
833
which can result in "missing referenced chk root keys" errors when
834
fetching from repositories with affected revisions.
835
(Andrew Bennetts, #522637)
837
* Raise ValueError instead of a string exception.
838
(John Arbash Meinel, #586926)
840
* Reduce peak memory by one copy of compressed text.
841
(John Arbash Meinel, #566940)
843
* Repositories accessed via a smart server now reject being stacked on a
844
repository in an incompatible format, as is the case when accessing them
845
via other methods. This was causing fetches from those repositories via
846
a smart server (e.g. using ``bzr branch``) to receive invalid data.
847
(Andrew Bennetts, #562380)
849
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
850
error. This error was caused by 2.0 not being updated when upstream
851
python merged the end of run patch, which chose ``stopTestRun`` rather than
852
``done``. (Robert Collins, #571437)
854
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
855
being thrown from ``xml_serializer`` on certain cElementTree setups.
856
(Martin [gz], #254278)
858
* When passing a file to ``UTF8DirReader`` make sure to close the current
859
directory file handle after the chdir fails. Otherwise when passing many
860
filenames into a command line ``bzr status`` we would leak descriptors.
861
(John Arbash Meinel, #583486)
866
* ``build_tree_contents`` can create symlinks.
867
(Martin Pool, John Arbash Meinel)
875
The sixth release in our 2.0 series addresses several user-inconvenience
876
bugs. None are critical, but upgrading is recommended for all users on
877
earlier 2.0 releases.
882
* Additional merges after an unrelated branch has been merged with its
883
history no longer crash when deleted files are involved.
884
(Vincent Ladeuil, John Arbash Meinel, #375898)
886
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
887
previously-unversioned directory within the tree: the directory is
888
marked versioned too.
889
(Martin Pool, #192859)
891
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
892
target of the symlink.
893
(Martin Pool, John Arbash Meinel, #128562)
895
* ``bzr revert`` now only takes write lock on working tree, instead of on
896
both working tree and branch.
897
(Danny van Heumen, #498409)
899
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
900
permissions as ``.bzr`` directory on a POSIX OS.
901
(Parth Malwankar, #262450)
903
* Don't traceback trying to unversion children files of an already
904
unversioned directory. (Vincent Ladeuil, #494221)
906
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
907
contains only NUL bytes). Instead warn the user, and allow ``bzr
908
break-lock`` to remove it. (Andrew Bennetts, #619872)
910
* Fix ``AttributeError on parent.children`` when adding a file under a
911
directory that was a symlink in the previous commit.
912
(Martin Pool, #192859)
914
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
915
which can result in "missing referenced chk root keys" errors when
916
fetching from repositories with affected revisions.
917
(Andrew Bennetts, #522637)
919
* Raise ValueError instead of a string exception.
920
(John Arbash Meinel, #586926)
922
* Reduce peak memory by one copy of compressed text.
923
(John Arbash Meinel, #566940)
925
* Repositories accessed via a smart server now reject being stacked on a
926
repository in an incompatible format, as is the case when accessing them
927
via other methods. This was causing fetches from those repositories via
928
a smart server (e.g. using ``bzr branch``) to receive invalid data.
929
(Andrew Bennetts, #562380)
931
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
932
error. This error was caused by 2.0 not being updated when upstream
933
python merged the end of run patch, which chose ``stopTestRun`` rather than
934
``done``. (Robert Collins, #571437)
936
* When passing a file to ``UTF8DirReader`` make sure to close the current
937
directory file handle after the chdir fails. Otherwise when passing many
938
filenames into a command line ``bzr status`` we would leak descriptors.
939
(John Arbash Meinel, #583486)
945
* ``build_tree_contents`` can create symlinks.
946
(Martin Pool, John Arbash Meinel)
955
This release marks the start of another long-term-stable series. From
956
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
957
while 2.3 will become our new development series. The 2.0 and 2.1 series
958
will also continue to get bugfixes. (Currently 2.0 is planned to be
959
supported for another 6 months.)
961
This is primarily a bugfix and polish release over the 2.1 series, with
962
a large number of bugs fixed (>120), and some performance improvements.
964
There are some compatibility changes in this release. For users of bzrlib
965
as a library, we now request that they call ``bzrlib.initialize`` and use
966
the returned context manager appropriately. For commandline users we no
967
longer guess user identity for ``bzr commit``, users must specify their
968
identity using ``bzr whoami`` (you don't need to specify your identity for
969
readonly operations).
971
Users are encouraged to upgrade from the other stable series.
976
* BzrError subclasses no longer support the name "message" to be used
977
as an argument for __init__ or in _fmt format specification as this
978
breaks in some Python versions. errors.LockError.__init__ argument
979
is now named "msg" instead of earlier "message".
980
(Parth Malwankar, #603461)
982
* The old ``bzr selftest --benchmark`` option has been removed.
983
<https://launchpad.net/bzr-usertest> is an actively-maintained
984
macrobenchmark suite.
990
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
991
``InvalidPattern`` exception error message now shows faulting
993
(Parth Malwankar #300062)
995
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
996
way which should help avoid problems with concurrent writers.
997
(Vincent Ladeuil, #525571)
999
* Don't traceback trying to unversion children files of an already
1000
unversioned directory. (Vincent Ladeuil, #494221)
1002
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
1003
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
1005
* Progress bars prefer to truncate the text message rather than the
1006
counters. The spinner is shown between the network transfer indicator
1007
and the progress message. Progress bars are correctly cleared off when
1008
they finish. (Martin Pool, #611127)
1010
* Recursive binding for checkouts is now detected by bzr. A clear error
1011
message is shown to the user. (Parth Malwankar, #405192)
1016
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
1017
tree, and works with unrelated branches. (Andrew Bennetts)
1019
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
1020
GUI with out have a console open in the background.
1021
(Gary van der Merwe, #433781)
1026
* ``bzr help patterns`` now explains case insensitive patterns and
1027
points to Python regular expression documentation.
1028
(Parth Malwankar, #594386)
1033
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
1038
* Unit test added to ensure that "message" is not uses as a format variable
1039
name in BzrError subclasses as this conflicts with some Python versions.
1040
(Parth Malwankar, #603461)
1045
:Codename: Monkey Magic
1049
This fourth and final beta in the 2.2 series now stabilizes the internal
1050
APIs. Plugin authors are recommended to ensure their releases are
1051
compatible, so that 2.2rc1 can be a true release candidate, containing
1052
stable and compatible plugin versions.
1054
For users of bzrlib as a library, one of the primary changes is to request
1055
that they call ``bzrlib.initialize`` and use the returned context manager
1058
Better interaction with ``bzr-loom`` to make sure branching from a loom
1059
even over a smart server still yields a local loom. Not to mention lots of
1060
bugfixes over 2.2b3.
1062
Compatibility Breaks
1063
********************
1065
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
1066
the result of ``bzrlib.initialize``. This change was made when fixing
1067
the bad habit recent bzr versions have had of leaving progress bars
1068
behind on the screen. That required calling another function before
1069
exiting the program, and it made sense to provide a full context
1070
manager at the same time. (Robert Collins)
1072
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
1073
context manager in the Python 2.5 and above sense. The bzrlib base class
1074
is such a manager, but third party UI factories which do not derive from
1075
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
1078
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
1079
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
1080
scheme. Previously these URLs would be treated as local paths.
1087
* Support ``--directory`` option for a number of additional commands:
1088
conflicts, merge-directive, missing, resolve, shelve, switch,
1089
unshelve, whoami. (Martin von Gagern, #527878)
1094
* ``bzr branch`` to a new repository with a default stacking policy no
1095
longer transfers the full history unnecessarily.
1096
(Andrew Bennetts, #597942)
1098
* ``bzr init`` does not recursively scan directory contents anymore
1099
leading to faster init for directories with existing content.
1100
(Martin [gz], Parth Malwankar, #501307)
1102
* ``bzr log --exclude-common-ancestry`` is now taken into account for
1103
linear ancetries. (Vincent Ladeuil, #575631)
1105
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
1106
rather than trying to fetch the data locally and failing because of a
1107
readonly error. (Martin von Gagern, #149270)
1109
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
1110
or pull location in locations.conf or branch.conf.
1111
(Gordon Tyler, #534787)
1113
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
1114
smart server. (Andrew Bennetts, #551525)
1116
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
1117
(Marius Kruger, Robert Collins)
1119
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
1120
(Marius Kruger, Robert Collins)
1122
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
1123
proper error messages. (Vincent Ladeuil, #591215)
1125
* Explicitly removing ``--profile-imports`` option from parsed command-line
1126
arguments on Windows, because bzr script does the same.
1127
(Alexander Belchenko, #588277)
1129
* Fetching was slightly confused about the best code to use and was
1130
using a new code path for all branches, resulting in more lookups than
1131
necessary on old branches. (Robert Collins, #593515)
1133
* Final fix for 'no help for command' issue. We now show a clean message
1134
when a command has no help, document how to set help more clearly, and
1135
test that all commands available to the test suite have help.
1136
(Robert Collins, #177500)
1138
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
1139
``InvalidPattern`` exception showing clear error message to the user.
1140
(Parth Malwankar #300062)
1142
* Progress output is cleaned up when exiting. (Aaron Bentley)
1144
* Raise ValueError instead of a string exception.
1145
(John Arbash Meinel, #586926)
1147
* Relative imports in plugins are now handled correctly when using
1148
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
1150
* ``ScriptRunner`` now strips off leading indentation from test scripts,
1151
which previously caused "SyntaxError: No command for line".
1154
* Show unicode filenames in diff headers using terminal encoding.
1155
(Alexander Belchenko, Bug #382699)
1156
NOTE for Windows users: If user need to save diff to file then user need to
1157
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
1158
(e.g. ``chcp 1251`` for Russian Windows).
1160
* URL displayed for use with ``break-lock`` when smart server sees lock
1161
contention are now valid. Default timeout for lock contention retry is
1162
now 30 seconds instead of 300 seconds.
1163
(Parth Malwankar, #250451)
1165
* ``walkdirs`` now raises a useful message when the filenames are not using
1166
the filesystem encoding. (Eric Moritz, #488519)
1168
* Enable debugging of bzr on windows with pdb and other tools. This was
1169
broken because we call GetCommandLineW on windows. The fix adjusts the
1170
command line we get to be the same length as sys.argv.
1171
(Jason Spashett, Alexander Belchenko, #587868)
1176
* Bazaar now reads data from SSH connections more efficiently on platforms
1177
that provide the ``socketpair`` function, and when using paramiko.
1178
(Andrew Bennetts, #590637)
1180
* ``Branch.copy_content_into`` is now a convenience method dispatching to
1181
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
1182
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
1183
(Robert Collins, #201613)
1185
* ``Branch`` formats can now be loaded lazily by registering a
1186
``MetaDirBranchFormatFactory`` rather than an actual format. This will
1187
cause the named format class to be loaded only when an enumeration of
1188
formats is needed or when the format string for the object is
1189
encountered. (Robert Collins, Jelmer Vernooij)
1191
* The encoding that bzr uses to output things other than file content can
1192
now be overridden via the output_encoding configuration option.
1193
(Martin Pool, #340394)
1195
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
1196
do not cause modules to be loaded unnecessarily just because the plugin
1197
registers a merge hook. This improves ``bzr rocks`` time by about 25%
1198
in a default installation (with just the core plugins).
1204
* Added ``regression`` tag to our tags list. (Robert Collins)
1206
* Improved our release checklist to have a bit less churn and leave things
1207
ready-to-go for the next action (including other people doing
1208
development). (Robert Collins)
1210
* Remove obsolete discussion of PQM in documentation about how to
1211
contribute to Bazaar. (Martin Pool, #588444)
1216
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
1217
an iterable of format pairs, rather than just a single pair, permitting
1218
InterBranch objects that work with multiple permutations to be
1219
comprehensively tested. (Robert Collins)
1221
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
1222
profiles when concurrent profile requests are made. Instead the profile
1223
requests will be serialised. Reentrant requests will now deadlock.
1226
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
1227
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
1228
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
1230
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
1231
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
1232
case the default error message not suitable for the use case.
1235
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
1236
one method ``check_output``, and we now recommend checking command
1237
output using ``run_script``. (Martin Pool)
1239
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
1240
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
1241
Third-party implementations of ``SSHVendor`` may need to be updated
1242
accordingly. Similarly, any code using ``SSHConnection`` directly will
1243
need to be updated. (Andrew Bennetts)
1245
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
1246
changed to take an ``SSHParams`` instance (replacing many individual
1247
values). (Andrew Bennetts)
1252
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
1253
selection when explicitly requested; this avoids many duplicate calls
1254
being logged when helpers, wrappers and older code that manually calls
1255
it are executed it is now logged deliberately by the ui setup code.
1258
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
1260
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
1261
that ``sys.getsizeof`` and other memory analysis tools will report more
1262
accurate results. (Andrew Bennetts)
1264
* The symbol_versioning module can now cleanup after itself -
1265
``suppress_deprecation_warnings`` now returns a cleanup function.
1271
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
1272
to test. (Martin Pool)
1274
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
1275
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
1282
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
1283
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
1284
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
1285
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
1286
bash completion script and bzr will no longer guess at identity details -
1287
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
1288
For developers we have some API changes which may impact plugins as well
1289
as a bunch of our regular improvements to internal clarity and test
13
1292
Compatibility Breaks
14
1293
********************
1295
* An API break has been made to the lock_write method of ``Branch`` and
1296
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
1297
and ``repository.RepositoryWriteLockResult`` objects. This makes
1298
changing the API in future easier and permits some cleaner calling code.
1299
The lock_read method has also changed from having no defined return
1300
value to returning ``LogicalLockResult`` objects.
1303
* ``bzr`` does not try to guess the username as ``username@hostname``
1304
and requires it to be explictly set. This can be set using ``bzr
1305
whoami``. (Parth Malwankar, #549310)
1307
* ``bzrlib.commands.Command`` will now raise ValueError during
1308
construction if there is no __doc__ set. (Note, this will be reverted in
1309
2.2b4) (Robert Collins)
1311
* The source tree no longer contains a contrib/zsh/_bzr completion
1312
script. The new file contrib/zsh/README suggests alternatives.
1313
(Martin von Gagern, #560030)