5
5
.. contents:: List of Releases
11
:2.3.b2: NOT RELEASED YET
19
* Add ``mainline`` revision specifier, which selects the revision that
20
merged a specified revision into the mainline. (Aaron Bentley)
22
* Add ``annotate`` revision specifier, which selects the revision that
23
introduced a specified line of a file. (Aaron Bentley)
25
* ``bzr status`` now displays a summary of existing shelves after
26
the other status information. This is done using a ``post_status``
28
(Parth Malwankar, #403687)
33
* ``bzr break-lock --force`` breaks the lock without prompting. (Before
34
using this, make sure the process holding the lock really is dead.)
35
(Martin Pool, #392315)
37
* Print junk rather than throwing a UnicodeDecodeError from ``bzr version-info``
38
when using the rio format (with non-ascii information) on a non-utf-8 terminal.
39
(Andrej A Antonov, #518609)
41
* Skip tests that needs a bzr source tree when there isn't one. This is
42
needed to succesfully run the test suite for installed versions.
43
(Vincent Ladeuil, #644855).
45
* Skip the tests that requires respecting the chmod bits when running as root.
46
(Vincent Ladeuil, #646133)
48
* ``unshelve --preview`` now can show diff in a non-ascii encoding.
49
(Andrej A Antonov, #518916)
63
* Small change to GroupCompressBlock to work more in terms of 'chunks'
64
rather than 'content' for its compressed storage. (John Arbash Meinel)
66
* When running ``bzr selftest --subunit`` the subunit stream will no
67
longer include the "log" information for tests which are considered to
68
be 'successes' (success, xfail, skip, etc) (John Arbash Meinel)
73
* Fix tests that failed when run under ``LANG=C``.
74
(Andrew Bennetts, #632387)
76
* Use tests.TestCaseInTempDir for tests that requires disk resources.
77
(Vincent Ladeuil, #650001)
84
This is the first beta of the 2.3 series, leading up to a 2.3.0
85
release in January or February. Beta releases are suitable for everyday use
86
but may cause some incompatibilities with plugins. Some plugins may need
87
small updates to work with 2.3b1.
89
2.3b1 includes some performance improvements in both speed and memory
90
consumption, some preliminary support for generating a texinfo version of
91
the doc and better support for launchpad. Many changes were made to make
92
our test suite more robust as well as numerous documentation fixes. It
93
improves the common infrastructure for dealing with colocated named
94
branches and foreign branches. We plan to continue with these themes
95
through the 2.3 series.
97
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
104
* BzrError subclasses no longer support the name "message" to be used
105
as an argument for __init__ or in _fmt format specification as this
106
breaks in some Python versions. errors.LockError.__init__ argument
107
is now named "msg" instead of earlier "message".
108
(Parth Malwankar, #603461)
110
* Additional merges after an unrelated branch has been merged with its
111
history no longer crash when deleted files are involved.
112
(Vincent Ladeuil, John Arbash Meinel, #375898)
114
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
115
previously-unversioned directory within the tree: the directory is
116
marked versioned too.
117
(Martin Pool, #192859)
119
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
120
target of the symlink.
121
(Martin Pool, John Arbash Meinel, #128562)
123
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
124
permissions as ``.bzr`` directory on a POSIX OS.
125
(Parth Malwankar, #262450)
127
* ``bzrlib.transform.TreeTransformBase.final_kind``,
128
``bzrlib.transform.TreeTransform.tree_kind`` and
129
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
130
of raising NoSuchFile. (Vincent Ladeuil)
132
* CommitBuilder now uses the committer instead of _config.username to generate
133
the revision-id. (Aaron Bentley, #614404)
135
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
136
way which should help avoid problems with concurrent writers.
137
(Vincent Ladeuil, #525571)
139
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
140
and `BzrDir`, respectively. `ControlDirFormat`
141
and `ControlDir` should be used as the base classes for new non-.bzr
144
`BzrDirFormat.register_control_format` has been renamed to
145
`ControlDirFormat.register_format`.
147
`BzrDirFormat.register_server_control_format` has been removed.
149
Probing for control directories is now done by separate objects derived
150
from `bzrlib.controldir.Prober` and registered using
151
`bzrlib.controldir.ControlDirFormat.register_prober` or
152
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
153
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
155
`BzrDirFormat.register_format` has been renamed to
156
`BzrProber.register_bzrdir_format`.
158
`bzrlib.bzrdir.network_format_registry` has been moved to
163
* Cope with Microsoft FTP server that returns reply '250 Directory
164
created' when mkdir succeeds. (Martin Pool, #224373)
166
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
167
contains only NUL bytes). Instead warn the user, and allow ``bzr
168
break-lock`` to remove it. (Andrew Bennetts, #619872)
170
* `decode` parameter to get() method in FtpTransport and GioTransport classes
171
is deprecated. (Alexander Belchenko)
173
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
177
* Fix ``AttributeError on parent.children`` when adding a file under a
178
directory that was a symlink in the previous commit.
179
(Martin Pool, #192859)
181
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
182
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
183
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
184
stderr in some other circumstances. (Andrew Bennetts, #633745)
186
* Only call ``setlocale`` in the bzr startup script on posix systems. This
187
avoids an issue with the newer windows C runtimes used by Python 2.6 and
188
later which can mangle bytestrings printed to the console.
189
(Martin [gz], #631350)
191
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
192
which can result in "missing referenced chk root keys" errors when
193
fetching from repositories with affected revisions.
194
(Andrew Bennetts, #522637)
196
* Raise ValueError instead of a string exception.
197
(John Arbash Meinel, #586926)
199
* Reduce peak memory by one copy of compressed text.
200
(John Arbash Meinel, #566940)
202
* Repositories accessed via a smart server now reject being stacked on a
203
repository in an incompatible format, as is the case when accessing them
204
via other methods. This was causing fetches from those repositories via
205
a smart server (e.g. using ``bzr branch``) to receive invalid data.
206
(Andrew Bennetts, #562380)
208
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
209
error. This error was caused by 2.0 not being updated when upstream
210
python merged the end of run patch, which chose ``stopTestRun`` rather than
211
``done``. (Robert Collins, #571437)
213
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
214
being thrown from ``xml_serializer`` on certain cElementTree setups.
215
(Martin [gz], #254278)
217
* The old ``bzr selftest --benchmark`` option has been removed.
218
<https://launchpad.net/bzr-usertest> is an actively-maintained
219
macrobenchmark suite.
222
* `tree_files` and `internal_tree_files` are now deprecated in favor of
223
`WorkingTree.open_containing_paths`.
226
* Upgrading or fetching from a non-rich-root repository to a rich-root
227
repository (e.g. from pack-0.92 to 2a) no longer fails with
228
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
229
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
231
* When passing a file to ``UTF8DirReader`` make sure to close the current
232
directory file handle after the chdir fails. Otherwise when passing many
233
filenames into a command line ``bzr status`` we would leak descriptors.
234
(John Arbash Meinel, #583486)
239
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
240
to register custom handlers which will be invoked before/after the
241
standard status output is displayed. (Parth Malwankar)
243
* ``bzr break-lock --config [location]`` can now break config files
244
locks. (Vincent Ladeuil, #525571)
246
* ``bzrlib.config.LockableConfig`` is a base class for config files that
247
needs to be protected against multiple writers. All methods that
248
change a configuration variable value must be decorated with
249
@needs_write_lock (set_option() for example).
250
(Vincent Ladeuil, #525571)
252
* The ``lp:`` prefix will now use your known username (from
253
``bzr launchpad-login``) to expand ``~`` to your username. For example:
254
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
255
push to ``lp:~user/project/branch``. (John Arbash Meinel)
257
* New development format ``development8-subtree`` which is similar to the
258
``2a`` format and adds subtree support. (Jelmer Vernooij)
260
* The ``pull`` and ``update`` commands now take a ``-show-base``
261
option that, in the case of conflicts, shows the base revision text.
262
(Rory Yorke, #202374)
267
* Fix traceback with python-2.7's xmlrpclib
268
(Toshio Kuratomi, #612096)
270
* Allow using both --using and --diff-options.
271
(Matthäus G. Chajdas, #234708)
273
* Allow using non-integer bug ID with generic bug trackers.
274
(Alexandre Garnier, #440472)
276
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
277
previously-unversioned directory within the tree: the directory is
278
marked versioned too.
279
(Martin Pool, #192859)
281
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
282
``InvalidPattern`` exception error message now shows faulting
284
(Parth Malwankar #300062)
286
* ``clean-tree`` issues a warning if it is unable to delete a file
287
due to ``errno.EACCES`` instead of exiting with an error on Windows.
288
(Parth Malwankar, #430785)
290
* CommitBuilder now uses the committer instead of _config.username to generate
291
the revision-id. (Aaron Bentley, #614404)
293
* Configuration files in ``${BZR_HOME}`` are now protected against
294
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
296
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
297
Directory created' when mkdir succeeds. (Martin Pool, #224373)
299
* Decrease peak memory during ``bzr send``. The old code was caching all
300
text content and all inventory strings for all revisions before
301
computing the diffs. Now we only cache as long as there is a child that
302
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
303
256MB peak. (John Arbash Meinel, #614576)
305
* Don't print internal object name when print an invalid revision spec
306
error. (Neil Martinsen-Burrell, #598701)
308
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
309
contains only NUL bytes). Instead warn the user, and allow ``bzr
310
break-lock`` to remove it. (Andrew Bennetts, #619872)
312
* ``EPIPE`` can be raised during test server shutdown. This happened on
313
gentoo only so far. (Vincent Ladeuil, #627277)
315
* Errors occurring during http(s) test server starts should now be
316
handled cleanly. (Vincent Ladeuil, #392402)
318
* Fix ``AttributeError on parent.children`` when adding a file under a
319
directory that was a symlink in the previous commit.
320
(Martin Pool, #192859)
322
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
323
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
324
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
325
stderr in some other circumstances. (Andrew Bennetts, #633745)
327
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
328
properly remove its warning filter. (Vincent Ladeuil, #625686)
330
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
331
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
333
* Most of the leaked threads during selftest are now fixed, allowing the
334
full test suite to pass on gentoo.
335
(Vincent Ladeuil, #392127)
337
* Only call ``setlocale`` in the bzr startup script on posix systems. This
338
avoids an issue with the newer windows C runtimes used by Python 2.6 and
339
later which can mangle bytestrings printed to the console.
340
(Martin [gz], #631350)
342
* `PathNotChild` should not give a traceback.
343
(Martin Pool, #98735)
345
* ``PQM`` will no longer ignore syntax errors in submissions.
346
(Vincent Ladeuil, #626667)
348
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
349
which can result in "missing referenced chk root keys" errors when
350
fetching from repositories with affected revisions.
351
(Andrew Bennetts, #522637)
353
* strace test-helper tests cope with the new Ubuntu policy of not allowing
354
users to attach to their own processes by default.
355
(Martin Pool, #626679)
357
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
358
be available from ``bzrlib.tests.*``. They used to be, but were
359
accidentally removed. (John Arbash Meinel, #627438)
361
* Treat all IO, OS, and socket errors consistently when establishing
362
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
364
* ``Transport.stat`` on a symlink, including a transport pointing directly
365
to a symlink, now returns information about the symlink.
368
* Upgrading or fetching from a non-rich-root repository to a rich-root
369
repository (e.g. from pack-0.92 to 2a) no longer fails with
370
``'Inter1and2Helper' object has no attribute 'source_repo'``.
371
(Andrew Bennetts, #636930)
373
* Wait for the SSH server to actually finish, rather than just waiting for
374
it to negotiate the key exchange. (John Arbash Meinel, #626876)
379
* ``bzr remove`` now just backs up changed files instead of exiting,
380
forcing you to choose to either keep or delete them. Bazaar will now delete
381
the files if they can easily be recovered using revert, otherwise they
382
will be backed up (adding an extention of the form .~#~).
383
(Marius Kruger, #400554)
385
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
386
with many changes by not repeatedly building a list of all file-ids.
389
* Decrease memory consumption when many chk index pages are loaded. (Such
390
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
391
read many chk pages because the individual chk map nodes will be spread
392
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
393
down to 247MB, expect even more significant savings on 64-bit platforms.
396
* ``DirState`` internals use a little bit less memory. For bzr.dev it
397
drops the memory from 1MB down to about 800kB. And replaces a few
398
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
400
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
401
have dropped from 68 bytes to 40, and directory entries from 120 bytes
402
to 48). (Andrew Bennetts)
404
* When building new working trees, default to reading from the repository
405
rather than the source tree unless explicitly requested. (via
406
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
407
``bzr checkout``. Generally, 2a format repositories extract
408
content faster than seeking and reading content from another tree,
409
especially in cold-cache situations. (John Arbash Meinel, #607298)
411
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
412
Python will use this directory to store bytecodes.
413
(Andrea Corbellini, #626687)
418
* Added a builder/writer sphinx extension that can generate texinfo files. The
419
generated files are syntactically correct but the info navigation nodes
420
needs more work. (Vincent Ladeuil, #219334)
422
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
423
to make the tests conditional.
426
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
427
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
428
(John Arbash Meinel, #617503)
430
* Suggest ``bzr revert`` for restoring locally deleted files in help text
431
for ``bzr update``. (John C Barstow, #191466)
436
* Configuration files should now use the ``from_string`` constructor rather
437
than the ``file`` parameter of the ``_get_parser`` method. The later has
438
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
439
have the configuration file immediately written to disk.
442
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
443
relative change in revno.
446
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
447
the rather than the ``file`` parameter of the ``_get_parser`` method. The
448
later has been deprecated. (Vincent Ladeuil)
450
* InventoryEntry instances now raise AttributeError if you try to assign
451
to attributes that are irrelevant to that kind of entry. e.g. setting
452
``symlink_target`` on an InventoryFile will fail. It is still okay to
453
read those attributes on any kind of InventoryEntry. The complete list
454
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
455
``text_size`` (only valid for kind == file); ``symlink_target`` (only
456
valid for kind == link); and ``reference_revision`` (only valid for kind
457
== tree-reference). (Andrew Bennetts)
459
* InventoryEntry objects no longer have ``_put_in_tar`` or
460
``_put_on_disk`` methods. (Andrew Bennetts)
462
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
463
constructor has been deprecated, use the ``file_name`` parameter instead.
466
* ``WorkingTree`` methods ``pull``, ``update``, and ``_update_tree``
467
now have an optional argument, ``show_base``, which is by default
468
False. This is flag is ultimately passed to ``merge.merge_inner``
469
in each case. (Rory Yorke, #202374)
474
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
480
* ``build_tree_contents`` can create symlinks.
481
(Martin Pool, John Arbash Meinel)
483
* Catch socket errors to avoid
484
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
485
random failures. (Vincent Ladeuil, #601804)
487
* HTTP test servers will leak less threads (and sockets) and will not hang on
488
AIX anymore. (Vincent Ladeuil, #405745)
490
* On platforms that don't support forking give a nice error message saying so
491
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
493
* Rearrange thread leak detection code to eliminate global state and make it
494
possible to extend the reporting. (Martin [gz], #633462)
496
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
497
warning on stderr emitted during ``test_dict_deepnested`` in
498
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
500
* The test suite now simply holds log files in memory, rather than writing them
501
out to disk and then reading them back in and deleting them.
504
* The way ``bzr selftest --parallel`` generates N partitions of tests to
505
run in parallel has changed. Instead of splitting the list of tests at
506
N-1 points, it distributes the tests one-by-one into the partitions in a
507
round robin fashion. This reduces the total time to run the tests in
508
parallel because a series of slow tests in the test suite will be
509
distributed evenly among the parallel test suites, rather than slowing
510
down just one suite. (Andrew Bennetts)
512
* Tracebacks from a parameterized test are no longer reported against every
513
parameterization of that test. This was done by adding a hack to
514
``bzrlib.tests.clone_test`` so that it no longer causes
515
testtools.TestCase instances to share a details dict.
516
(Andrew Bennetts, #625574)
522
:2.2.2: NOT RELEASED YET
533
* Skip tests that needs a bzr source tree when there isn't one. This is
534
needed to succesfully run the test suite for installed versions.
535
(Vincent Ladeuil, #644855).
537
* Skip the tests that requires respecting the chmod bits when running as root.
538
(Vincent Ladeuil, #646133)
555
* Fix tests that failed when run under ``LANG=C``.
556
(Andrew Bennetts, #632387)
564
This is a bugfix release which also includes bugfixes from 2.0.6 and
565
2.1.3. None are critical, but upgrading is recommended for all users on
566
earlier 2.2 releases.
571
* Additional merges after an unrelated branch has been merged with its
572
history no longer crash when deleted files are involved.
573
(Vincent Ladeuil, John Arbash Meinel, #375898)
575
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
576
previously-unversioned directory within the tree: the directory is
577
marked versioned too.
578
(Martin Pool, #192859)
580
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
581
target of the symlink.
582
(Martin Pool, John Arbash Meinel, #128562)
584
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
585
permissions as ``.bzr`` directory on a POSIX OS.
586
(Parth Malwankar, #262450)
588
* CommitBuilder now uses the committer instead of _config.username to generate
589
the revision-id. (Aaron Bentley, #614404)
591
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
592
way which should help avoid problems with concurrent writers.
593
(Vincent Ladeuil, #525571)
595
* Cope with Microsoft FTP server that returns reply '250 Directory
596
created' when mkdir succeeds. (Martin Pool, #224373)
598
* Don't traceback trying to unversion children files of an already
599
unversioned directory. (Vincent Ladeuil, #494221)
601
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
602
contains only NUL bytes). Instead warn the user, and allow ``bzr
603
break-lock`` to remove it. (Andrew Bennetts, #619872)
605
* Fix ``AttributeError on parent.children`` when adding a file under a
606
directory that was a symlink in the previous commit.
607
(Martin Pool, #192859)
609
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
610
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
611
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
612
stderr in some other circumstances. (Andrew Bennetts, #633745)
614
* Only call ``setlocale`` in the bzr startup script on posix systems. This
615
avoids an issue with the newer windows C runtimes used by Python 2.6 and
616
later which can mangle bytestrings printed to the console.
617
(Martin [gz], #631350)
619
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
620
which can result in "missing referenced chk root keys" errors when
621
fetching from repositories with affected revisions.
622
(Andrew Bennetts, #522637)
624
* Raise ValueError instead of a string exception.
625
(John Arbash Meinel, #586926)
627
* Reduce peak memory by one copy of compressed text.
628
(John Arbash Meinel, #566940)
630
* Repositories accessed via a smart server now reject being stacked on a
631
repository in an incompatible format, as is the case when accessing them
632
via other methods. This was causing fetches from those repositories via
633
a smart server (e.g. using ``bzr branch``) to receive invalid data.
634
(Andrew Bennetts, #562380)
636
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
637
error. This error was caused by 2.0 not being updated when upstream
638
python merged the end of run patch, which chose ``stopTestRun`` rather than
639
``done``. (Robert Collins, #571437)
641
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
642
being thrown from ``xml_serializer`` on certain cElementTree setups.
643
(Martin [gz], #254278)
645
* Upgrading or fetching from a non-rich-root repository to a rich-root
646
repository (e.g. from pack-0.92 to 2a) no longer fails with
647
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
648
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
650
* When passing a file to ``UTF8DirReader`` make sure to close the current
651
directory file handle after the chdir fails. Otherwise when passing many
652
filenames into a command line ``bzr status`` we would leak descriptors.
653
(John Arbash Meinel, #583486)
658
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
659
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
660
(John Arbash Meinel, #617503)
665
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
671
* ``build_tree_contents`` can create symlinks.
672
(Martin Pool, John Arbash Meinel)
674
* Tracebacks from a parameterized test are no longer reported against every
675
parameterization of that test. This was done by adding a hack to
676
``bzrlib.tests.clone_test`` so that it no longer causes
677
testtools.TestCase instances to share a details dict.
678
(Andrew Bennetts, #625574)
684
:2.1.4: NOT RELEASED YET
695
* Skip tests that needs a bzr source tree when there isn't one. This is
696
needed to succesfully run the test suite for installed versions.
697
(Vincent Ladeuil, #644855).
699
* Skip the tests that requires respecting the chmod bits when running as root.
700
(Vincent Ladeuil, #646133)
721
:Codename: Do run run
724
The third release in our 2.1 series addresses several user-inconvenience bugs
725
(and includes the fixes done in 2.0.6). None are critical, but upgrading is
726
recommended for all users on earlier 2.1 releases.
731
* Additional merges after an unrelated branch has been merged with its
732
history no longer crash when deleted files are involved.
733
(Vincent Ladeuil, John Arbash Meinel, #375898)
735
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
736
previously-unversioned directory within the tree: the directory is
737
marked versioned too.
738
(Martin Pool, #192859)
740
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
741
target of the symlink.
742
(Martin Pool, John Arbash Meinel, #128562)
744
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
745
permissions as ``.bzr`` directory on a POSIX OS.
746
(Parth Malwankar, #262450)
748
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
749
way which should help avoid problems with concurrent writers.
750
(Vincent Ladeuil, #525571)
752
* Don't traceback trying to unversion children files of an already
753
unversioned directory. (Vincent Ladeuil, #494221)
755
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
756
contains only NUL bytes). Instead warn the user, and allow ``bzr
757
break-lock`` to remove it. (Andrew Bennetts, #619872)
759
* Fix ``AttributeError on parent.children`` when adding a file under a
760
directory that was a symlink in the previous commit.
761
(Martin Pool, #192859)
763
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
764
which can result in "missing referenced chk root keys" errors when
765
fetching from repositories with affected revisions.
766
(Andrew Bennetts, #522637)
768
* Raise ValueError instead of a string exception.
769
(John Arbash Meinel, #586926)
771
* Reduce peak memory by one copy of compressed text.
772
(John Arbash Meinel, #566940)
774
* Repositories accessed via a smart server now reject being stacked on a
775
repository in an incompatible format, as is the case when accessing them
776
via other methods. This was causing fetches from those repositories via
777
a smart server (e.g. using ``bzr branch``) to receive invalid data.
778
(Andrew Bennetts, #562380)
780
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
781
error. This error was caused by 2.0 not being updated when upstream
782
python merged the end of run patch, which chose ``stopTestRun`` rather than
783
``done``. (Robert Collins, #571437)
785
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
786
being thrown from ``xml_serializer`` on certain cElementTree setups.
787
(Martin [gz], #254278)
789
* When passing a file to ``UTF8DirReader`` make sure to close the current
790
directory file handle after the chdir fails. Otherwise when passing many
791
filenames into a command line ``bzr status`` we would leak descriptors.
792
(John Arbash Meinel, #583486)
797
* ``build_tree_contents`` can create symlinks.
798
(Martin Pool, John Arbash Meinel)
806
The sixth release in our 2.0 series addresses several user-inconvenience
807
bugs. None are critical, but upgrading is recommended for all users on
808
earlier 2.0 releases.
813
* Additional merges after an unrelated branch has been merged with its
814
history no longer crash when deleted files are involved.
815
(Vincent Ladeuil, John Arbash Meinel, #375898)
817
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
818
previously-unversioned directory within the tree: the directory is
819
marked versioned too.
820
(Martin Pool, #192859)
822
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
823
target of the symlink.
824
(Martin Pool, John Arbash Meinel, #128562)
826
* ``bzr revert`` now only takes write lock on working tree, instead of on
827
both working tree and branch.
828
(Danny van Heumen, #498409)
830
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
831
permissions as ``.bzr`` directory on a POSIX OS.
832
(Parth Malwankar, #262450)
834
* Don't traceback trying to unversion children files of an already
835
unversioned directory. (Vincent Ladeuil, #494221)
837
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
838
contains only NUL bytes). Instead warn the user, and allow ``bzr
839
break-lock`` to remove it. (Andrew Bennetts, #619872)
841
* Fix ``AttributeError on parent.children`` when adding a file under a
842
directory that was a symlink in the previous commit.
843
(Martin Pool, #192859)
845
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
846
which can result in "missing referenced chk root keys" errors when
847
fetching from repositories with affected revisions.
848
(Andrew Bennetts, #522637)
850
* Raise ValueError instead of a string exception.
851
(John Arbash Meinel, #586926)
853
* Reduce peak memory by one copy of compressed text.
854
(John Arbash Meinel, #566940)
856
* Repositories accessed via a smart server now reject being stacked on a
857
repository in an incompatible format, as is the case when accessing them
858
via other methods. This was causing fetches from those repositories via
859
a smart server (e.g. using ``bzr branch``) to receive invalid data.
860
(Andrew Bennetts, #562380)
862
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
863
error. This error was caused by 2.0 not being updated when upstream
864
python merged the end of run patch, which chose ``stopTestRun`` rather than
865
``done``. (Robert Collins, #571437)
867
* When passing a file to ``UTF8DirReader`` make sure to close the current
868
directory file handle after the chdir fails. Otherwise when passing many
869
filenames into a command line ``bzr status`` we would leak descriptors.
870
(John Arbash Meinel, #583486)
876
* ``build_tree_contents`` can create symlinks.
877
(Martin Pool, John Arbash Meinel)
886
This release marks the start of another long-term-stable series. From
887
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
888
while 2.3 will become our new development series. The 2.0 and 2.1 series
889
will also continue to get bugfixes. (Currently 2.0 is planned to be
890
supported for another 6 months.)
892
This is primarily a bugfix and polish release over the 2.1 series, with
893
a large number of bugs fixed (>120), and some performance improvements.
895
There are some compatibility changes in this release. For users of bzrlib
896
as a library, we now request that they call ``bzrlib.initialize`` and use
897
the returned context manager appropriately. For commandline users we no
898
longer guess user identity for ``bzr commit``, users must specify their
899
identity using ``bzr whoami`` (you don't need to specify your identity for
900
readonly operations).
902
Users are encouraged to upgrade from the other stable series.
907
* BzrError subclasses no longer support the name "message" to be used
908
as an argument for __init__ or in _fmt format specification as this
909
breaks in some Python versions. errors.LockError.__init__ argument
910
is now named "msg" instead of earlier "message".
911
(Parth Malwankar, #603461)
913
* The old ``bzr selftest --benchmark`` option has been removed.
914
<https://launchpad.net/bzr-usertest> is an actively-maintained
915
macrobenchmark suite.
921
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
922
``InvalidPattern`` exception error message now shows faulting
924
(Parth Malwankar #300062)
926
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
927
way which should help avoid problems with concurrent writers.
928
(Vincent Ladeuil, #525571)
930
* Don't traceback trying to unversion children files of an already
931
unversioned directory. (Vincent Ladeuil, #494221)
933
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
934
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
936
* Progress bars prefer to truncate the text message rather than the
937
counters. The spinner is shown between the network transfer indicator
938
and the progress message. Progress bars are correctly cleared off when
939
they finish. (Martin Pool, #611127)
941
* Recursive binding for checkouts is now detected by bzr. A clear error
942
message is shown to the user. (Parth Malwankar, #405192)
947
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
948
tree, and works with unrelated branches. (Andrew Bennetts)
950
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
951
GUI with out have a console open in the background.
952
(Gary van der Merwe, #433781)
957
* ``bzr help patterns`` now explains case insensitive patterns and
958
points to Python regular expression documentation.
959
(Parth Malwankar, #594386)
964
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
969
* Unit test added to ensure that "message" is not uses as a format variable
970
name in BzrError subclasses as this conflicts with some Python versions.
971
(Parth Malwankar, #603461)
976
:Codename: Monkey Magic
980
This fourth and final beta in the 2.2 series now stabilizes the internal
981
APIs. Plugin authors are recommended to ensure their releases are
982
compatible, so that 2.2rc1 can be a true release candidate, containing
983
stable and compatible plugin versions.
985
For users of bzrlib as a library, one of the primary changes is to request
986
that they call ``bzrlib.initialize`` and use the returned context manager
989
Better interaction with ``bzr-loom`` to make sure branching from a loom
990
even over a smart server still yields a local loom. Not to mention lots of
996
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
997
the result of ``bzrlib.initialize``. This change was made when fixing
998
the bad habit recent bzr versions have had of leaving progress bars
999
behind on the screen. That required calling another function before
1000
exiting the program, and it made sense to provide a full context
1001
manager at the same time. (Robert Collins)
1003
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
1004
context manager in the Python 2.5 and above sense. The bzrlib base class
1005
is such a manager, but third party UI factories which do not derive from
1006
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
1009
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
1010
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
1011
scheme. Previously these URLs would be treated as local paths.
1018
* Support ``--directory`` option for a number of additional commands:
1019
conflicts, merge-directive, missing, resolve, shelve, switch,
1020
unshelve, whoami. (Martin von Gagern, #527878)
1025
* ``bzr branch`` to a new repository with a default stacking policy no
1026
longer transfers the full history unnecessarily.
1027
(Andrew Bennetts, #597942)
1029
* ``bzr init`` does not recursively scan directory contents anymore
1030
leading to faster init for directories with existing content.
1031
(Martin [gz], Parth Malwankar, #501307)
1033
* ``bzr log --exclude-common-ancestry`` is now taken into account for
1034
linear ancetries. (Vincent Ladeuil, #575631)
1036
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
1037
rather than trying to fetch the data locally and failing because of a
1038
readonly error. (Martin von Gagern, #149270)
1040
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
1041
or pull location in locations.conf or branch.conf.
1042
(Gordon Tyler, #534787)
1044
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
1045
smart server. (Andrew Bennetts, #551525)
1047
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
1048
(Marius Kruger, Robert Collins)
1050
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
1051
(Marius Kruger, Robert Collins)
1053
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
1054
proper error messages. (Vincent Ladeuil, #591215)
1056
* Explicitly removing ``--profile-imports`` option from parsed command-line
1057
arguments on Windows, because bzr script does the same.
1058
(Alexander Belchenko, #588277)
1060
* Fetching was slightly confused about the best code to use and was
1061
using a new code path for all branches, resulting in more lookups than
1062
necessary on old branches. (Robert Collins, #593515)
1064
* Final fix for 'no help for command' issue. We now show a clean message
1065
when a command has no help, document how to set help more clearly, and
1066
test that all commands available to the test suite have help.
1067
(Robert Collins, #177500)
1069
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
1070
``InvalidPattern`` exception showing clear error message to the user.
1071
(Parth Malwankar #300062)
1073
* Progress output is cleaned up when exiting. (Aaron Bentley)
1075
* Raise ValueError instead of a string exception.
1076
(John Arbash Meinel, #586926)
1078
* Relative imports in plugins are now handled correctly when using
1079
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
1081
* ``ScriptRunner`` now strips off leading indentation from test scripts,
1082
which previously caused "SyntaxError: No command for line".
1085
* Show unicode filenames in diff headers using terminal encoding.
1086
(Alexander Belchenko, Bug #382699)
1087
NOTE for Windows users: If user need to save diff to file then user need to
1088
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
1089
(e.g. ``chcp 1251`` for Russian Windows).
1091
* URL displayed for use with ``break-lock`` when smart server sees lock
1092
contention are now valid. Default timeout for lock contention retry is
1093
now 30 seconds instead of 300 seconds.
1094
(Parth Malwankar, #250451)
1096
* ``walkdirs`` now raises a useful message when the filenames are not using
1097
the filesystem encoding. (Eric Moritz, #488519)
1099
* Enable debugging of bzr on windows with pdb and other tools. This was
1100
broken because we call GetCommandLineW on windows. The fix adjusts the
1101
command line we get to be the same length as sys.argv.
1102
(Jason Spashett, Alexander Belchenko, #587868)
1107
* Bazaar now reads data from SSH connections more efficiently on platforms
1108
that provide the ``socketpair`` function, and when using paramiko.
1109
(Andrew Bennetts, #590637)
1111
* ``Branch.copy_content_into`` is now a convenience method dispatching to
1112
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
1113
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
1114
(Robert Collins, #201613)
1116
* ``Branch`` formats can now be loaded lazily by registering a
1117
``MetaDirBranchFormatFactory`` rather than an actual format. This will
1118
cause the named format class to be loaded only when an enumeration of
1119
formats is needed or when the format string for the object is
1120
encountered. (Robert Collins, Jelmer Vernooij)
1122
* The encoding that bzr uses to output things other than file content can
1123
now be overridden via the output_encoding configuration option.
1124
(Martin Pool, #340394)
1126
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
1127
do not cause modules to be loaded unnecessarily just because the plugin
1128
registers a merge hook. This improves ``bzr rocks`` time by about 25%
1129
in a default installation (with just the core plugins).
1135
* Added ``regression`` tag to our tags list. (Robert Collins)
1137
* Improved our release checklist to have a bit less churn and leave things
1138
ready-to-go for the next action (including other people doing
1139
development). (Robert Collins)
1141
* Remove obsolete discussion of PQM in documentation about how to
1142
contribute to Bazaar. (Martin Pool, #588444)
1147
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
1148
an iterable of format pairs, rather than just a single pair, permitting
1149
InterBranch objects that work with multiple permutations to be
1150
comprehensively tested. (Robert Collins)
1152
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
1153
profiles when concurrent profile requests are made. Instead the profile
1154
requests will be serialised. Reentrant requests will now deadlock.
1157
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
1158
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
1159
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
1161
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
1162
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
1163
case the default error message not suitable for the use case.
1166
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
1167
one method ``check_output``, and we now recommend checking command
1168
output using ``run_script``. (Martin Pool)
1170
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
1171
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
1172
Third-party implementations of ``SSHVendor`` may need to be updated
1173
accordingly. Similarly, any code using ``SSHConnection`` directly will
1174
need to be updated. (Andrew Bennetts)
1176
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
1177
changed to take an ``SSHParams`` instance (replacing many individual
1178
values). (Andrew Bennetts)
1183
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
1184
selection when explicitly requested; this avoids many duplicate calls
1185
being logged when helpers, wrappers and older code that manually calls
1186
it are executed it is now logged deliberately by the ui setup code.
1189
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
1191
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
1192
that ``sys.getsizeof`` and other memory analysis tools will report more
1193
accurate results. (Andrew Bennetts)
1195
* The symbol_versioning module can now cleanup after itself -
1196
``suppress_deprecation_warnings`` now returns a cleanup function.
1202
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
1203
to test. (Martin Pool)
1205
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
1206
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
1213
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
1214
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
1215
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
1216
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
1217
bash completion script and bzr will no longer guess at identity details -
1218
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
1219
For developers we have some API changes which may impact plugins as well
1220
as a bunch of our regular improvements to internal clarity and test
13
1223
Compatibility Breaks
14
1224
********************
1226
* An API break has been made to the lock_write method of ``Branch`` and
1227
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
1228
and ``repository.RepositoryWriteLockResult`` objects. This makes
1229
changing the API in future easier and permits some cleaner calling code.
1230
The lock_read method has also changed from having no defined return
1231
value to returning ``LogicalLockResult`` objects.
1234
* ``bzr`` does not try to guess the username as ``username@hostname``
1235
and requires it to be explictly set. This can be set using ``bzr
1236
whoami``. (Parth Malwankar, #549310)
1238
* ``bzrlib.commands.Command`` will now raise ValueError during
1239
construction if there is no __doc__ set. (Note, this will be reverted in
1240
2.2b4) (Robert Collins)
1242
* The source tree no longer contains a contrib/zsh/_bzr completion
1243
script. The new file contrib/zsh/README suggests alternatives.
1244
(Martin von Gagern, #560030)