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)
30
* GNU lsh is now a supported lsh client; just set BZR_SSH to 'lsh'.
31
Also, bzr will recognize if the 'ssh' comand is a symlink to lsh.
32
(Matthew Gordon, #374700)
34
* Add ``-Dmem_dump`` debug flag, which uses meliae to dump memory to
35
a file upon an out of memory error.
36
(Karl Bielefeldt, #551391)
41
* ``bzr break-lock --force`` breaks the lock without prompting. (Before
42
using this, make sure the process holding the lock really is dead.)
43
(Martin Pool, #392315)
45
* Print junk rather than throwing a UnicodeDecodeError from ``bzr version-info``
46
when using the rio format (with non-ascii information) on a non-utf-8 terminal.
47
(Andrej A Antonov, #518609)
49
* Skip tests that needs a bzr source tree when there isn't one. This is
50
needed to succesfully run the test suite for installed versions.
51
(Vincent Ladeuil, #644855).
53
* Skip the tests that requires respecting the chmod bits when running as root.
54
(Vincent Ladeuil, #646133)
56
* ``unshelve --preview`` now can show diff in a non-ascii encoding.
57
(Andrej A Antonov, #518916)
71
* Small change to GroupCompressBlock to work more in terms of 'chunks'
72
rather than 'content' for its compressed storage. (John Arbash Meinel)
74
* When running ``bzr selftest --subunit`` the subunit stream will no
75
longer include the "log" information for tests which are considered to
76
be 'successes' (success, xfail, skip, etc) (John Arbash Meinel)
81
* Fix tests that failed when run under ``LANG=C``.
82
(Andrew Bennetts, #632387)
84
* Use tests.TestCaseInTempDir for tests that requires disk resources.
85
(Vincent Ladeuil, #650001)
92
This is the first beta of the 2.3 series, leading up to a 2.3.0
93
release in January or February. Beta releases are suitable for everyday use
94
but may cause some incompatibilities with plugins. Some plugins may need
95
small updates to work with 2.3b1.
97
2.3b1 includes some performance improvements in both speed and memory
98
consumption, some preliminary support for generating a texinfo version of
99
the doc and better support for launchpad. Many changes were made to make
100
our test suite more robust as well as numerous documentation fixes. It
101
improves the common infrastructure for dealing with colocated named
102
branches and foreign branches. We plan to continue with these themes
103
through the 2.3 series.
105
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
112
* BzrError subclasses no longer support the name "message" to be used
113
as an argument for __init__ or in _fmt format specification as this
114
breaks in some Python versions. errors.LockError.__init__ argument
115
is now named "msg" instead of earlier "message".
116
(Parth Malwankar, #603461)
118
* Additional merges after an unrelated branch has been merged with its
119
history no longer crash when deleted files are involved.
120
(Vincent Ladeuil, John Arbash Meinel, #375898)
122
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
123
previously-unversioned directory within the tree: the directory is
124
marked versioned too.
125
(Martin Pool, #192859)
127
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
128
target of the symlink.
129
(Martin Pool, John Arbash Meinel, #128562)
131
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
132
permissions as ``.bzr`` directory on a POSIX OS.
133
(Parth Malwankar, #262450)
135
* ``bzrlib.transform.TreeTransformBase.final_kind``,
136
``bzrlib.transform.TreeTransform.tree_kind`` and
137
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
138
of raising NoSuchFile. (Vincent Ladeuil)
140
* CommitBuilder now uses the committer instead of _config.username to generate
141
the revision-id. (Aaron Bentley, #614404)
143
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
144
way which should help avoid problems with concurrent writers.
145
(Vincent Ladeuil, #525571)
147
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
148
and `BzrDir`, respectively. `ControlDirFormat`
149
and `ControlDir` should be used as the base classes for new non-.bzr
152
`BzrDirFormat.register_control_format` has been renamed to
153
`ControlDirFormat.register_format`.
155
`BzrDirFormat.register_server_control_format` has been removed.
157
Probing for control directories is now done by separate objects derived
158
from `bzrlib.controldir.Prober` and registered using
159
`bzrlib.controldir.ControlDirFormat.register_prober` or
160
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
161
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
163
`BzrDirFormat.register_format` has been renamed to
164
`BzrProber.register_bzrdir_format`.
166
`bzrlib.bzrdir.network_format_registry` has been moved to
171
* Cope with Microsoft FTP server that returns reply '250 Directory
172
created' when mkdir succeeds. (Martin Pool, #224373)
174
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
175
contains only NUL bytes). Instead warn the user, and allow ``bzr
176
break-lock`` to remove it. (Andrew Bennetts, #619872)
178
* `decode` parameter to get() method in FtpTransport and GioTransport classes
179
is deprecated. (Alexander Belchenko)
181
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
185
* Fix ``AttributeError on parent.children`` when adding a file under a
186
directory that was a symlink in the previous commit.
187
(Martin Pool, #192859)
189
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
190
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
191
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
192
stderr in some other circumstances. (Andrew Bennetts, #633745)
194
* Only call ``setlocale`` in the bzr startup script on posix systems. This
195
avoids an issue with the newer windows C runtimes used by Python 2.6 and
196
later which can mangle bytestrings printed to the console.
197
(Martin [gz], #631350)
199
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
200
which can result in "missing referenced chk root keys" errors when
201
fetching from repositories with affected revisions.
202
(Andrew Bennetts, #522637)
204
* Raise ValueError instead of a string exception.
205
(John Arbash Meinel, #586926)
207
* Reduce peak memory by one copy of compressed text.
208
(John Arbash Meinel, #566940)
210
* Repositories accessed via a smart server now reject being stacked on a
211
repository in an incompatible format, as is the case when accessing them
212
via other methods. This was causing fetches from those repositories via
213
a smart server (e.g. using ``bzr branch``) to receive invalid data.
214
(Andrew Bennetts, #562380)
216
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
217
error. This error was caused by 2.0 not being updated when upstream
218
python merged the end of run patch, which chose ``stopTestRun`` rather than
219
``done``. (Robert Collins, #571437)
221
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
222
being thrown from ``xml_serializer`` on certain cElementTree setups.
223
(Martin [gz], #254278)
225
* The old ``bzr selftest --benchmark`` option has been removed.
226
<https://launchpad.net/bzr-usertest> is an actively-maintained
227
macrobenchmark suite.
230
* `tree_files` and `internal_tree_files` are now deprecated in favor of
231
`WorkingTree.open_containing_paths`.
234
* Upgrading or fetching from a non-rich-root repository to a rich-root
235
repository (e.g. from pack-0.92 to 2a) no longer fails with
236
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
237
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
239
* When passing a file to ``UTF8DirReader`` make sure to close the current
240
directory file handle after the chdir fails. Otherwise when passing many
241
filenames into a command line ``bzr status`` we would leak descriptors.
242
(John Arbash Meinel, #583486)
247
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
248
to register custom handlers which will be invoked before/after the
249
standard status output is displayed. (Parth Malwankar)
251
* ``bzr break-lock --config [location]`` can now break config files
252
locks. (Vincent Ladeuil, #525571)
254
* ``bzrlib.config.LockableConfig`` is a base class for config files that
255
needs to be protected against multiple writers. All methods that
256
change a configuration variable value must be decorated with
257
@needs_write_lock (set_option() for example).
258
(Vincent Ladeuil, #525571)
260
* The ``lp:`` prefix will now use your known username (from
261
``bzr launchpad-login``) to expand ``~`` to your username. For example:
262
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
263
push to ``lp:~user/project/branch``. (John Arbash Meinel)
265
* New development format ``development8-subtree`` which is similar to the
266
``2a`` format and adds subtree support. (Jelmer Vernooij)
268
* The ``pull`` and ``update`` commands now take a ``-show-base``
269
option that, in the case of conflicts, shows the base revision text.
270
(Rory Yorke, #202374)
275
* Fix traceback with python-2.7's xmlrpclib
276
(Toshio Kuratomi, #612096)
278
* Allow using both --using and --diff-options.
279
(Matthäus G. Chajdas, #234708)
281
* Allow using non-integer bug ID with generic bug trackers.
282
(Alexandre Garnier, #440472)
284
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
285
previously-unversioned directory within the tree: the directory is
286
marked versioned too.
287
(Martin Pool, #192859)
289
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
290
``InvalidPattern`` exception error message now shows faulting
292
(Parth Malwankar #300062)
294
* ``clean-tree`` issues a warning if it is unable to delete a file
295
due to ``errno.EACCES`` instead of exiting with an error on Windows.
296
(Parth Malwankar, #430785)
298
* CommitBuilder now uses the committer instead of _config.username to generate
299
the revision-id. (Aaron Bentley, #614404)
301
* Configuration files in ``${BZR_HOME}`` are now protected against
302
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
304
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
305
Directory created' when mkdir succeeds. (Martin Pool, #224373)
307
* Decrease peak memory during ``bzr send``. The old code was caching all
308
text content and all inventory strings for all revisions before
309
computing the diffs. Now we only cache as long as there is a child that
310
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
311
256MB peak. (John Arbash Meinel, #614576)
313
* Don't print internal object name when print an invalid revision spec
314
error. (Neil Martinsen-Burrell, #598701)
316
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
317
contains only NUL bytes). Instead warn the user, and allow ``bzr
318
break-lock`` to remove it. (Andrew Bennetts, #619872)
320
* ``EPIPE`` can be raised during test server shutdown. This happened on
321
gentoo only so far. (Vincent Ladeuil, #627277)
323
* Errors occurring during http(s) test server starts should now be
324
handled cleanly. (Vincent Ladeuil, #392402)
326
* Fix ``AttributeError on parent.children`` when adding a file under a
327
directory that was a symlink in the previous commit.
328
(Martin Pool, #192859)
330
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
331
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
332
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
333
stderr in some other circumstances. (Andrew Bennetts, #633745)
335
* Fix signature of RemoteBzrDir.create_workingtree to match that of its
336
superclass. (Neil Martinsen-Burrell, Martin Pool, #524627)
338
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
339
properly remove its warning filter. (Vincent Ladeuil, #625686)
341
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
342
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
344
* Most of the leaked threads during selftest are now fixed, allowing the
345
full test suite to pass on gentoo.
346
(Vincent Ladeuil, #392127)
348
* Only call ``setlocale`` in the bzr startup script on posix systems. This
349
avoids an issue with the newer windows C runtimes used by Python 2.6 and
350
later which can mangle bytestrings printed to the console.
351
(Martin [gz], #631350)
353
* `PathNotChild` should not give a traceback.
354
(Martin Pool, #98735)
356
* ``PQM`` will no longer ignore syntax errors in submissions.
357
(Vincent Ladeuil, #626667)
359
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
360
which can result in "missing referenced chk root keys" errors when
361
fetching from repositories with affected revisions.
362
(Andrew Bennetts, #522637)
364
* strace test-helper tests cope with the new Ubuntu policy of not allowing
365
users to attach to their own processes by default.
366
(Martin Pool, #626679)
368
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
369
be available from ``bzrlib.tests.*``. They used to be, but were
370
accidentally removed. (John Arbash Meinel, #627438)
372
* Treat all IO, OS, and socket errors consistently when establishing
373
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
375
* ``Transport.stat`` on a symlink, including a transport pointing directly
376
to a symlink, now returns information about the symlink.
379
* Upgrading or fetching from a non-rich-root repository to a rich-root
380
repository (e.g. from pack-0.92 to 2a) no longer fails with
381
``'Inter1and2Helper' object has no attribute 'source_repo'``.
382
(Andrew Bennetts, #636930)
384
* Wait for the SSH server to actually finish, rather than just waiting for
385
it to negotiate the key exchange. (John Arbash Meinel, #626876)
390
* ``bzr remove`` now just backs up changed files instead of exiting,
391
forcing you to choose to either keep or delete them. Bazaar will now delete
392
the files if they can easily be recovered using revert, otherwise they
393
will be backed up (adding an extention of the form .~#~).
394
(Marius Kruger, #400554)
396
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
397
with many changes by not repeatedly building a list of all file-ids.
400
* Decrease memory consumption when many chk index pages are loaded. (Such
401
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
402
read many chk pages because the individual chk map nodes will be spread
403
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
404
down to 247MB, expect even more significant savings on 64-bit platforms.
407
* ``DirState`` internals use a little bit less memory. For bzr.dev it
408
drops the memory from 1MB down to about 800kB. And replaces a few
409
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
411
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
412
have dropped from 68 bytes to 40, and directory entries from 120 bytes
413
to 48). (Andrew Bennetts)
415
* When building new working trees, default to reading from the repository
416
rather than the source tree unless explicitly requested. (via
417
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
418
``bzr checkout``. Generally, 2a format repositories extract
419
content faster than seeking and reading content from another tree,
420
especially in cold-cache situations. (John Arbash Meinel, #607298)
422
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
423
Python will use this directory to store bytecodes.
424
(Andrea Corbellini, #626687)
429
* Added a builder/writer sphinx extension that can generate texinfo files. The
430
generated files are syntactically correct but the info navigation nodes
431
needs more work. (Vincent Ladeuil, #219334)
433
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
434
to make the tests conditional.
437
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
438
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
439
(John Arbash Meinel, #617503)
441
* Suggest ``bzr revert`` for restoring locally deleted files in help text
442
for ``bzr update``. (John C Barstow, #191466)
447
* Configuration files should now use the ``from_string`` constructor rather
448
than the ``file`` parameter of the ``_get_parser`` method. The later has
449
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
450
have the configuration file immediately written to disk.
453
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
454
relative change in revno.
457
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
458
the rather than the ``file`` parameter of the ``_get_parser`` method. The
459
later has been deprecated. (Vincent Ladeuil)
461
* InventoryEntry instances now raise AttributeError if you try to assign
462
to attributes that are irrelevant to that kind of entry. e.g. setting
463
``symlink_target`` on an InventoryFile will fail. It is still okay to
464
read those attributes on any kind of InventoryEntry. The complete list
465
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
466
``text_size`` (only valid for kind == file); ``symlink_target`` (only
467
valid for kind == link); and ``reference_revision`` (only valid for kind
468
== tree-reference). (Andrew Bennetts)
470
* InventoryEntry objects no longer have ``_put_in_tar`` or
471
``_put_on_disk`` methods. (Andrew Bennetts)
473
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
474
constructor has been deprecated, use the ``file_name`` parameter instead.
477
* ``WorkingTree`` methods ``pull``, ``update``, and ``_update_tree``
478
now have an optional argument, ``show_base``, which is by default
479
False. This is flag is ultimately passed to ``merge.merge_inner``
480
in each case. (Rory Yorke, #202374)
485
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
491
* ``build_tree_contents`` can create symlinks.
492
(Martin Pool, John Arbash Meinel)
494
* Catch socket errors to avoid
495
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
496
random failures. (Vincent Ladeuil, #601804)
498
* HTTP test servers will leak less threads (and sockets) and will not hang on
499
AIX anymore. (Vincent Ladeuil, #405745)
501
* On platforms that don't support forking give a nice error message saying so
502
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
504
* Rearrange thread leak detection code to eliminate global state and make it
505
possible to extend the reporting. (Martin [gz], #633462)
507
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
508
warning on stderr emitted during ``test_dict_deepnested`` in
509
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
511
* The test suite now simply holds log files in memory, rather than writing them
512
out to disk and then reading them back in and deleting them.
515
* The way ``bzr selftest --parallel`` generates N partitions of tests to
516
run in parallel has changed. Instead of splitting the list of tests at
517
N-1 points, it distributes the tests one-by-one into the partitions in a
518
round robin fashion. This reduces the total time to run the tests in
519
parallel because a series of slow tests in the test suite will be
520
distributed evenly among the parallel test suites, rather than slowing
521
down just one suite. (Andrew Bennetts)
523
* Tracebacks from a parameterized test are no longer reported against every
524
parameterization of that test. This was done by adding a hack to
525
``bzrlib.tests.clone_test`` so that it no longer causes
526
testtools.TestCase instances to share a details dict.
527
(Andrew Bennetts, #625574)
533
:2.2.2: NOT RELEASED YET
544
* Skip tests that needs a bzr source tree when there isn't one. This is
545
needed to succesfully run the test suite for installed versions.
546
(Vincent Ladeuil, #644855).
548
* Skip the tests that requires respecting the chmod bits when running as root.
549
(Vincent Ladeuil, #646133)
566
* Fix tests that failed when run under ``LANG=C``.
567
(Andrew Bennetts, #632387)
575
This is a bugfix release which also includes bugfixes from 2.0.6 and
576
2.1.3. None are critical, but upgrading is recommended for all users on
577
earlier 2.2 releases.
582
* Additional merges after an unrelated branch has been merged with its
583
history no longer crash when deleted files are involved.
584
(Vincent Ladeuil, John Arbash Meinel, #375898)
586
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
587
previously-unversioned directory within the tree: the directory is
588
marked versioned too.
589
(Martin Pool, #192859)
591
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
592
target of the symlink.
593
(Martin Pool, John Arbash Meinel, #128562)
595
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
596
permissions as ``.bzr`` directory on a POSIX OS.
597
(Parth Malwankar, #262450)
599
* CommitBuilder now uses the committer instead of _config.username to generate
600
the revision-id. (Aaron Bentley, #614404)
602
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
603
way which should help avoid problems with concurrent writers.
604
(Vincent Ladeuil, #525571)
606
* Cope with Microsoft FTP server that returns reply '250 Directory
607
created' when mkdir succeeds. (Martin Pool, #224373)
609
* Don't traceback trying to unversion children files of an already
610
unversioned directory. (Vincent Ladeuil, #494221)
612
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
613
contains only NUL bytes). Instead warn the user, and allow ``bzr
614
break-lock`` to remove it. (Andrew Bennetts, #619872)
616
* Fix ``AttributeError on parent.children`` when adding a file under a
617
directory that was a symlink in the previous commit.
618
(Martin Pool, #192859)
620
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
621
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
622
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
623
stderr in some other circumstances. (Andrew Bennetts, #633745)
625
* Only call ``setlocale`` in the bzr startup script on posix systems. This
626
avoids an issue with the newer windows C runtimes used by Python 2.6 and
627
later which can mangle bytestrings printed to the console.
628
(Martin [gz], #631350)
630
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
631
which can result in "missing referenced chk root keys" errors when
632
fetching from repositories with affected revisions.
633
(Andrew Bennetts, #522637)
635
* Raise ValueError instead of a string exception.
636
(John Arbash Meinel, #586926)
638
* Reduce peak memory by one copy of compressed text.
639
(John Arbash Meinel, #566940)
641
* Repositories accessed via a smart server now reject being stacked on a
642
repository in an incompatible format, as is the case when accessing them
643
via other methods. This was causing fetches from those repositories via
644
a smart server (e.g. using ``bzr branch``) to receive invalid data.
645
(Andrew Bennetts, #562380)
647
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
648
error. This error was caused by 2.0 not being updated when upstream
649
python merged the end of run patch, which chose ``stopTestRun`` rather than
650
``done``. (Robert Collins, #571437)
652
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
653
being thrown from ``xml_serializer`` on certain cElementTree setups.
654
(Martin [gz], #254278)
656
* Upgrading or fetching from a non-rich-root repository to a rich-root
657
repository (e.g. from pack-0.92 to 2a) no longer fails with
658
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
659
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
661
* When passing a file to ``UTF8DirReader`` make sure to close the current
662
directory file handle after the chdir fails. Otherwise when passing many
663
filenames into a command line ``bzr status`` we would leak descriptors.
664
(John Arbash Meinel, #583486)
669
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
670
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
671
(John Arbash Meinel, #617503)
676
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
682
* ``build_tree_contents`` can create symlinks.
683
(Martin Pool, John Arbash Meinel)
685
* Tracebacks from a parameterized test are no longer reported against every
686
parameterization of that test. This was done by adding a hack to
687
``bzrlib.tests.clone_test`` so that it no longer causes
688
testtools.TestCase instances to share a details dict.
689
(Andrew Bennetts, #625574)
695
:2.1.4: NOT RELEASED YET
706
* Skip tests that needs a bzr source tree when there isn't one. This is
707
needed to succesfully run the test suite for installed versions.
708
(Vincent Ladeuil, #644855).
710
* Skip the tests that requires respecting the chmod bits when running as root.
711
(Vincent Ladeuil, #646133)
732
:Codename: Do run run
735
The third release in our 2.1 series addresses several user-inconvenience bugs
736
(and includes the fixes done in 2.0.6). None are critical, but upgrading is
737
recommended for all users on earlier 2.1 releases.
742
* Additional merges after an unrelated branch has been merged with its
743
history no longer crash when deleted files are involved.
744
(Vincent Ladeuil, John Arbash Meinel, #375898)
746
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
747
previously-unversioned directory within the tree: the directory is
748
marked versioned too.
749
(Martin Pool, #192859)
751
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
752
target of the symlink.
753
(Martin Pool, John Arbash Meinel, #128562)
755
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
756
permissions as ``.bzr`` directory on a POSIX OS.
757
(Parth Malwankar, #262450)
759
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
760
way which should help avoid problems with concurrent writers.
761
(Vincent Ladeuil, #525571)
763
* Don't traceback trying to unversion children files of an already
764
unversioned directory. (Vincent Ladeuil, #494221)
766
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
767
contains only NUL bytes). Instead warn the user, and allow ``bzr
768
break-lock`` to remove it. (Andrew Bennetts, #619872)
770
* Fix ``AttributeError on parent.children`` when adding a file under a
771
directory that was a symlink in the previous commit.
772
(Martin Pool, #192859)
774
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
775
which can result in "missing referenced chk root keys" errors when
776
fetching from repositories with affected revisions.
777
(Andrew Bennetts, #522637)
779
* Raise ValueError instead of a string exception.
780
(John Arbash Meinel, #586926)
782
* Reduce peak memory by one copy of compressed text.
783
(John Arbash Meinel, #566940)
785
* Repositories accessed via a smart server now reject being stacked on a
786
repository in an incompatible format, as is the case when accessing them
787
via other methods. This was causing fetches from those repositories via
788
a smart server (e.g. using ``bzr branch``) to receive invalid data.
789
(Andrew Bennetts, #562380)
791
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
792
error. This error was caused by 2.0 not being updated when upstream
793
python merged the end of run patch, which chose ``stopTestRun`` rather than
794
``done``. (Robert Collins, #571437)
796
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
797
being thrown from ``xml_serializer`` on certain cElementTree setups.
798
(Martin [gz], #254278)
800
* When passing a file to ``UTF8DirReader`` make sure to close the current
801
directory file handle after the chdir fails. Otherwise when passing many
802
filenames into a command line ``bzr status`` we would leak descriptors.
803
(John Arbash Meinel, #583486)
808
* ``build_tree_contents`` can create symlinks.
809
(Martin Pool, John Arbash Meinel)
817
The sixth release in our 2.0 series addresses several user-inconvenience
818
bugs. None are critical, but upgrading is recommended for all users on
819
earlier 2.0 releases.
824
* Additional merges after an unrelated branch has been merged with its
825
history no longer crash when deleted files are involved.
826
(Vincent Ladeuil, John Arbash Meinel, #375898)
828
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
829
previously-unversioned directory within the tree: the directory is
830
marked versioned too.
831
(Martin Pool, #192859)
833
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
834
target of the symlink.
835
(Martin Pool, John Arbash Meinel, #128562)
837
* ``bzr revert`` now only takes write lock on working tree, instead of on
838
both working tree and branch.
839
(Danny van Heumen, #498409)
841
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
842
permissions as ``.bzr`` directory on a POSIX OS.
843
(Parth Malwankar, #262450)
845
* Don't traceback trying to unversion children files of an already
846
unversioned directory. (Vincent Ladeuil, #494221)
848
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
849
contains only NUL bytes). Instead warn the user, and allow ``bzr
850
break-lock`` to remove it. (Andrew Bennetts, #619872)
852
* Fix ``AttributeError on parent.children`` when adding a file under a
853
directory that was a symlink in the previous commit.
854
(Martin Pool, #192859)
856
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
857
which can result in "missing referenced chk root keys" errors when
858
fetching from repositories with affected revisions.
859
(Andrew Bennetts, #522637)
861
* Raise ValueError instead of a string exception.
862
(John Arbash Meinel, #586926)
864
* Reduce peak memory by one copy of compressed text.
865
(John Arbash Meinel, #566940)
867
* Repositories accessed via a smart server now reject being stacked on a
868
repository in an incompatible format, as is the case when accessing them
869
via other methods. This was causing fetches from those repositories via
870
a smart server (e.g. using ``bzr branch``) to receive invalid data.
871
(Andrew Bennetts, #562380)
873
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
874
error. This error was caused by 2.0 not being updated when upstream
875
python merged the end of run patch, which chose ``stopTestRun`` rather than
876
``done``. (Robert Collins, #571437)
878
* When passing a file to ``UTF8DirReader`` make sure to close the current
879
directory file handle after the chdir fails. Otherwise when passing many
880
filenames into a command line ``bzr status`` we would leak descriptors.
881
(John Arbash Meinel, #583486)
887
* ``build_tree_contents`` can create symlinks.
888
(Martin Pool, John Arbash Meinel)
897
This release marks the start of another long-term-stable series. From
898
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
899
while 2.3 will become our new development series. The 2.0 and 2.1 series
900
will also continue to get bugfixes. (Currently 2.0 is planned to be
901
supported for another 6 months.)
903
This is primarily a bugfix and polish release over the 2.1 series, with
904
a large number of bugs fixed (>120), and some performance improvements.
906
There are some compatibility changes in this release. For users of bzrlib
907
as a library, we now request that they call ``bzrlib.initialize`` and use
908
the returned context manager appropriately. For commandline users we no
909
longer guess user identity for ``bzr commit``, users must specify their
910
identity using ``bzr whoami`` (you don't need to specify your identity for
911
readonly operations).
913
Users are encouraged to upgrade from the other stable series.
918
* BzrError subclasses no longer support the name "message" to be used
919
as an argument for __init__ or in _fmt format specification as this
920
breaks in some Python versions. errors.LockError.__init__ argument
921
is now named "msg" instead of earlier "message".
922
(Parth Malwankar, #603461)
924
* The old ``bzr selftest --benchmark`` option has been removed.
925
<https://launchpad.net/bzr-usertest> is an actively-maintained
926
macrobenchmark suite.
932
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
933
``InvalidPattern`` exception error message now shows faulting
935
(Parth Malwankar #300062)
937
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
938
way which should help avoid problems with concurrent writers.
939
(Vincent Ladeuil, #525571)
941
* Don't traceback trying to unversion children files of an already
942
unversioned directory. (Vincent Ladeuil, #494221)
944
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
945
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
947
* Progress bars prefer to truncate the text message rather than the
948
counters. The spinner is shown between the network transfer indicator
949
and the progress message. Progress bars are correctly cleared off when
950
they finish. (Martin Pool, #611127)
952
* Recursive binding for checkouts is now detected by bzr. A clear error
953
message is shown to the user. (Parth Malwankar, #405192)
958
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
959
tree, and works with unrelated branches. (Andrew Bennetts)
961
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
962
GUI with out have a console open in the background.
963
(Gary van der Merwe, #433781)
968
* ``bzr help patterns`` now explains case insensitive patterns and
969
points to Python regular expression documentation.
970
(Parth Malwankar, #594386)
975
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
980
* Unit test added to ensure that "message" is not uses as a format variable
981
name in BzrError subclasses as this conflicts with some Python versions.
982
(Parth Malwankar, #603461)
987
:Codename: Monkey Magic
991
This fourth and final beta in the 2.2 series now stabilizes the internal
992
APIs. Plugin authors are recommended to ensure their releases are
993
compatible, so that 2.2rc1 can be a true release candidate, containing
994
stable and compatible plugin versions.
996
For users of bzrlib as a library, one of the primary changes is to request
997
that they call ``bzrlib.initialize`` and use the returned context manager
1000
Better interaction with ``bzr-loom`` to make sure branching from a loom
1001
even over a smart server still yields a local loom. Not to mention lots of
1002
bugfixes over 2.2b3.
1004
Compatibility Breaks
1005
********************
1007
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
1008
the result of ``bzrlib.initialize``. This change was made when fixing
1009
the bad habit recent bzr versions have had of leaving progress bars
1010
behind on the screen. That required calling another function before
1011
exiting the program, and it made sense to provide a full context
1012
manager at the same time. (Robert Collins)
1014
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
1015
context manager in the Python 2.5 and above sense. The bzrlib base class
1016
is such a manager, but third party UI factories which do not derive from
1017
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
1020
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
1021
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
1022
scheme. Previously these URLs would be treated as local paths.
1029
* Support ``--directory`` option for a number of additional commands:
1030
conflicts, merge-directive, missing, resolve, shelve, switch,
1031
unshelve, whoami. (Martin von Gagern, #527878)
1036
* ``bzr branch`` to a new repository with a default stacking policy no
1037
longer transfers the full history unnecessarily.
1038
(Andrew Bennetts, #597942)
1040
* ``bzr init`` does not recursively scan directory contents anymore
1041
leading to faster init for directories with existing content.
1042
(Martin [gz], Parth Malwankar, #501307)
1044
* ``bzr log --exclude-common-ancestry`` is now taken into account for
1045
linear ancetries. (Vincent Ladeuil, #575631)
1047
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
1048
rather than trying to fetch the data locally and failing because of a
1049
readonly error. (Martin von Gagern, #149270)
1051
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
1052
or pull location in locations.conf or branch.conf.
1053
(Gordon Tyler, #534787)
1055
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
1056
smart server. (Andrew Bennetts, #551525)
1058
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
1059
(Marius Kruger, Robert Collins)
1061
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
1062
(Marius Kruger, Robert Collins)
1064
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
1065
proper error messages. (Vincent Ladeuil, #591215)
1067
* Explicitly removing ``--profile-imports`` option from parsed command-line
1068
arguments on Windows, because bzr script does the same.
1069
(Alexander Belchenko, #588277)
1071
* Fetching was slightly confused about the best code to use and was
1072
using a new code path for all branches, resulting in more lookups than
1073
necessary on old branches. (Robert Collins, #593515)
1075
* Final fix for 'no help for command' issue. We now show a clean message
1076
when a command has no help, document how to set help more clearly, and
1077
test that all commands available to the test suite have help.
1078
(Robert Collins, #177500)
1080
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
1081
``InvalidPattern`` exception showing clear error message to the user.
1082
(Parth Malwankar #300062)
1084
* Progress output is cleaned up when exiting. (Aaron Bentley)
1086
* Raise ValueError instead of a string exception.
1087
(John Arbash Meinel, #586926)
1089
* Relative imports in plugins are now handled correctly when using
1090
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
1092
* ``ScriptRunner`` now strips off leading indentation from test scripts,
1093
which previously caused "SyntaxError: No command for line".
1096
* Show unicode filenames in diff headers using terminal encoding.
1097
(Alexander Belchenko, Bug #382699)
1098
NOTE for Windows users: If user need to save diff to file then user need to
1099
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
1100
(e.g. ``chcp 1251`` for Russian Windows).
1102
* URL displayed for use with ``break-lock`` when smart server sees lock
1103
contention are now valid. Default timeout for lock contention retry is
1104
now 30 seconds instead of 300 seconds.
1105
(Parth Malwankar, #250451)
1107
* ``walkdirs`` now raises a useful message when the filenames are not using
1108
the filesystem encoding. (Eric Moritz, #488519)
1110
* Enable debugging of bzr on windows with pdb and other tools. This was
1111
broken because we call GetCommandLineW on windows. The fix adjusts the
1112
command line we get to be the same length as sys.argv.
1113
(Jason Spashett, Alexander Belchenko, #587868)
1118
* Bazaar now reads data from SSH connections more efficiently on platforms
1119
that provide the ``socketpair`` function, and when using paramiko.
1120
(Andrew Bennetts, #590637)
1122
* ``Branch.copy_content_into`` is now a convenience method dispatching to
1123
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
1124
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
1125
(Robert Collins, #201613)
1127
* ``Branch`` formats can now be loaded lazily by registering a
1128
``MetaDirBranchFormatFactory`` rather than an actual format. This will
1129
cause the named format class to be loaded only when an enumeration of
1130
formats is needed or when the format string for the object is
1131
encountered. (Robert Collins, Jelmer Vernooij)
1133
* The encoding that bzr uses to output things other than file content can
1134
now be overridden via the output_encoding configuration option.
1135
(Martin Pool, #340394)
1137
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
1138
do not cause modules to be loaded unnecessarily just because the plugin
1139
registers a merge hook. This improves ``bzr rocks`` time by about 25%
1140
in a default installation (with just the core plugins).
1146
* Added ``regression`` tag to our tags list. (Robert Collins)
1148
* Improved our release checklist to have a bit less churn and leave things
1149
ready-to-go for the next action (including other people doing
1150
development). (Robert Collins)
1152
* Remove obsolete discussion of PQM in documentation about how to
1153
contribute to Bazaar. (Martin Pool, #588444)
1158
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
1159
an iterable of format pairs, rather than just a single pair, permitting
1160
InterBranch objects that work with multiple permutations to be
1161
comprehensively tested. (Robert Collins)
1163
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
1164
profiles when concurrent profile requests are made. Instead the profile
1165
requests will be serialised. Reentrant requests will now deadlock.
1168
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
1169
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
1170
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
1172
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
1173
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
1174
case the default error message not suitable for the use case.
1177
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
1178
one method ``check_output``, and we now recommend checking command
1179
output using ``run_script``. (Martin Pool)
1181
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
1182
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
1183
Third-party implementations of ``SSHVendor`` may need to be updated
1184
accordingly. Similarly, any code using ``SSHConnection`` directly will
1185
need to be updated. (Andrew Bennetts)
1187
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
1188
changed to take an ``SSHParams`` instance (replacing many individual
1189
values). (Andrew Bennetts)
1194
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
1195
selection when explicitly requested; this avoids many duplicate calls
1196
being logged when helpers, wrappers and older code that manually calls
1197
it are executed it is now logged deliberately by the ui setup code.
1200
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
1202
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
1203
that ``sys.getsizeof`` and other memory analysis tools will report more
1204
accurate results. (Andrew Bennetts)
1206
* The symbol_versioning module can now cleanup after itself -
1207
``suppress_deprecation_warnings`` now returns a cleanup function.
1213
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
1214
to test. (Martin Pool)
1216
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
1217
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
1224
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
1225
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
1226
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
1227
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
1228
bash completion script and bzr will no longer guess at identity details -
1229
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
1230
For developers we have some API changes which may impact plugins as well
1231
as a bunch of our regular improvements to internal clarity and test
13
1234
Compatibility Breaks
14
1235
********************
1237
* An API break has been made to the lock_write method of ``Branch`` and
1238
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
1239
and ``repository.RepositoryWriteLockResult`` objects. This makes
1240
changing the API in future easier and permits some cleaner calling code.
1241
The lock_read method has also changed from having no defined return
1242
value to returning ``LogicalLockResult`` objects.
1245
* ``bzr`` does not try to guess the username as ``username@hostname``
1246
and requires it to be explictly set. This can be set using ``bzr
1247
whoami``. (Parth Malwankar, #549310)
1249
* ``bzrlib.commands.Command`` will now raise ValueError during
1250
construction if there is no __doc__ set. (Note, this will be reverted in
1251
2.2b4) (Robert Collins)
1253
* The source tree no longer contains a contrib/zsh/_bzr completion
1254
script. The new file contrib/zsh/README suggests alternatives.
1255
(Martin von Gagern, #560030)