5
5
.. contents:: List of Releases
11
:2.3.b2: NOT RELEASED YET
44
This is the first beta of the 2.3 series, leading up to a 2.3.0
45
release in January or February. Beta releases are suitable for everyday use
46
but may cause some incompatibilities with plugins. Some plugins may need
47
small updates to work with 2.3b1.
49
2.3b1 includes some performance improvements in both speed and memory
50
consumption, some preliminary support for generating a texinfo version of
51
the doc and better support for launchpad. Many changes were made to make
52
our test suite more robust as well as numerous documentation fixes. It
53
improves the common infrastructure for dealing with colocated named
54
branches and foreign branches. We plan to continue with these themes
55
through the 2.3 series.
57
It also includes bug fixes for 2.0.6, 2.1.3 and 2.2.1 and over 40 fixes of
64
* BzrError subclasses no longer support the name "message" to be used
65
as an argument for __init__ or in _fmt format specification as this
66
breaks in some Python versions. errors.LockError.__init__ argument
67
is now named "msg" instead of earlier "message".
68
(Parth Malwankar, #603461)
70
* Additional merges after an unrelated branch has been merged with its
71
history no longer crash when deleted files are involved.
72
(Vincent Ladeuil, John Arbash Meinel, #375898)
74
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
75
previously-unversioned directory within the tree: the directory is
77
(Martin Pool, #192859)
79
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
80
target of the symlink.
81
(Martin Pool, John Arbash Meinel, #128562)
83
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
84
permissions as ``.bzr`` directory on a POSIX OS.
85
(Parth Malwankar, #262450)
87
* ``bzrlib.transform.TreeTransformBase.final_kind``,
88
``bzrlib.transform.TreeTransform.tree_kind`` and
89
``bzrlib.transform.TransformPreview.tree_kind`` now return None instead
90
of raising NoSuchFile. (Vincent Ladeuil)
92
* CommitBuilder now uses the committer instead of _config.username to generate
93
the revision-id. (Aaron Bentley, #614404)
95
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
96
way which should help avoid problems with concurrent writers.
97
(Vincent Ladeuil, #525571)
99
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
100
and `BzrDir`, respectively. `ControlDirFormat`
101
and `ControlDir` should be used as the base classes for new non-.bzr
104
`BzrDirFormat.register_control_format` has been renamed to
105
`ControlDirFormat.register_format`.
107
`BzrDirFormat.register_server_control_format` has been removed.
109
Probing for control directories is now done by separate objects derived
110
from `bzrlib.controldir.Prober` and registered using
111
`bzrlib.controldir.ControlDirFormat.register_prober` or
112
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
113
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
115
`BzrDirFormat.register_format` has been renamed to
116
`BzrProber.register_bzrdir_format`.
118
`bzrlib.bzrdir.network_format_registry` has been moved to
123
* Cope with Microsoft FTP server that returns reply '250 Directory
124
created' when mkdir succeeds. (Martin Pool, #224373)
126
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
127
contains only NUL bytes). Instead warn the user, and allow ``bzr
128
break-lock`` to remove it. (Andrew Bennetts, #619872)
130
* `decode` parameter to get() method in FtpTransport and GioTransport classes
131
is deprecated. (Alexander Belchenko)
133
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
137
* Fix ``AttributeError on parent.children`` when adding a file under a
138
directory that was a symlink in the previous commit.
139
(Martin Pool, #192859)
141
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
142
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
143
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
144
stderr in some other circumstances. (Andrew Bennetts, #633745)
146
* Only call ``setlocale`` in the bzr startup script on posix systems. This
147
avoids an issue with the newer windows C runtimes used by Python 2.6 and
148
later which can mangle bytestrings printed to the console.
149
(Martin [gz], #631350)
151
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
152
which can result in "missing referenced chk root keys" errors when
153
fetching from repositories with affected revisions.
154
(Andrew Bennetts, #522637)
156
* Raise ValueError instead of a string exception.
157
(John Arbash Meinel, #586926)
159
* Reduce peak memory by one copy of compressed text.
160
(John Arbash Meinel, #566940)
162
* Repositories accessed via a smart server now reject being stacked on a
163
repository in an incompatible format, as is the case when accessing them
164
via other methods. This was causing fetches from those repositories via
165
a smart server (e.g. using ``bzr branch``) to receive invalid data.
166
(Andrew Bennetts, #562380)
168
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
169
error. This error was caused by 2.0 not being updated when upstream
170
python merged the end of run patch, which chose ``stopTestRun`` rather than
171
``done``. (Robert Collins, #571437)
173
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
174
being thrown from ``xml_serializer`` on certain cElementTree setups.
175
(Martin [gz], #254278)
177
* The old ``bzr selftest --benchmark`` option has been removed.
178
<https://launchpad.net/bzr-usertest> is an actively-maintained
179
macrobenchmark suite.
182
* `tree_files` and `internal_tree_files` are now deprecated in favor of
183
`WorkingTree.open_containing_paths`.
186
* Upgrading or fetching from a non-rich-root repository to a rich-root
187
repository (e.g. from pack-0.92 to 2a) no longer fails with
188
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
189
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
191
* When passing a file to ``UTF8DirReader`` make sure to close the current
192
directory file handle after the chdir fails. Otherwise when passing many
193
filenames into a command line ``bzr status`` we would leak descriptors.
194
(John Arbash Meinel, #583486)
199
* Added ``pre_status`` and ``post_status`` hooks. This allows plugins
200
to register custom handlers which will be invoked before/after the
201
standard status output is displayed. (Parth Malwankar)
203
* ``bzr break-lock --config [location]`` can now break config files
204
locks. (Vincent Ladeuil, #525571)
206
* ``bzrlib.config.LockableConfig`` is a base class for config files that
207
needs to be protected against multiple writers. All methods that
208
change a configuration variable value must be decorated with
209
@needs_write_lock (set_option() for example).
210
(Vincent Ladeuil, #525571)
212
* The ``lp:`` prefix will now use your known username (from
213
``bzr launchpad-login``) to expand ``~`` to your username. For example:
214
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
215
push to ``lp:~user/project/branch``. (John Arbash Meinel)
217
* New development format ``development8-subtree`` which is similar to the
218
``2a`` format and adds subtree support. (Jelmer Vernooij)
223
* Fix traceback with python-2.7's xmlrpclib
224
(Toshio Kuratomi, #612096)
226
* Allow using both --using and --diff-options.
227
(Matthäus G. Chajdas, #234708)
229
* Allow using non-integer bug ID with generic bug trackers.
230
(Alexandre Garnier, #440472)
232
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
233
previously-unversioned directory within the tree: the directory is
234
marked versioned too.
235
(Martin Pool, #192859)
237
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
238
``InvalidPattern`` exception error message now shows faulting
240
(Parth Malwankar #300062)
242
* ``clean-tree`` issues a warning if it is unable to delete a file
243
due to ``errno.EACCES`` instead of exiting with an error on Windows.
244
(Parth Malwankar, #430785)
246
* CommitBuilder now uses the committer instead of _config.username to generate
247
the revision-id. (Aaron Bentley, #614404)
249
* Configuration files in ``${BZR_HOME}`` are now protected against
250
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
252
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
253
Directory created' when mkdir succeeds. (Martin Pool, #224373)
255
* Decrease peak memory during ``bzr send``. The old code was caching all
256
text content and all inventory strings for all revisions before
257
computing the diffs. Now we only cache as long as there is a child that
258
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
259
256MB peak. (John Arbash Meinel, #614576)
261
* Don't print internal object name when print an invalid revision spec
262
error. (Neil Martinsen-Burrell, #598701)
264
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
265
contains only NUL bytes). Instead warn the user, and allow ``bzr
266
break-lock`` to remove it. (Andrew Bennetts, #619872)
268
* ``EPIPE`` can be raised during test server shutdown. This happened on
269
gentoo only so far. (Vincent Ladeuil, #627277)
271
* Errors occurring during http(s) test server starts should now be
272
handled cleanly. (Vincent Ladeuil, #392402)
274
* Fix ``AttributeError on parent.children`` when adding a file under a
275
directory that was a symlink in the previous commit.
276
(Martin Pool, #192859)
278
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
279
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
280
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
281
stderr in some other circumstances. (Andrew Bennetts, #633745)
283
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
284
properly remove its warning filter. (Vincent Ladeuil, #625686)
286
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
287
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
289
* Most of the leaked threads during selftest are now fixed, allowing the
290
full test suite to pass on gentoo.
291
(Vincent Ladeuil, #392127)
293
* Only call ``setlocale`` in the bzr startup script on posix systems. This
294
avoids an issue with the newer windows C runtimes used by Python 2.6 and
295
later which can mangle bytestrings printed to the console.
296
(Martin [gz], #631350)
298
* `PathNotChild` should not give a traceback.
299
(Martin Pool, #98735)
301
* ``PQM`` will no longer ignore syntax errors in submissions.
302
(Vincent Ladeuil, #626667)
304
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
305
which can result in "missing referenced chk root keys" errors when
306
fetching from repositories with affected revisions.
307
(Andrew Bennetts, #522637)
309
* strace test-helper tests cope with the new Ubuntu policy of not allowing
310
users to attach to their own processes by default.
311
(Martin Pool, #626679)
313
* Test classes like ``TestCase``, ``TestLoader``, and ``TestSuite`` should
314
be available from ``bzrlib.tests.*``. They used to be, but were
315
accidentally removed. (John Arbash Meinel, #627438)
317
* Treat all IO, OS, and socket errors consistently when establishing
318
SSH/SFTP connections via a subprocess. (Andrew Bennetts)
320
* ``Transport.stat`` on a symlink, including a transport pointing directly
321
to a symlink, now returns information about the symlink.
324
* Upgrading or fetching from a non-rich-root repository to a rich-root
325
repository (e.g. from pack-0.92 to 2a) no longer fails with
326
``'Inter1and2Helper' object has no attribute 'source_repo'``.
327
(Andrew Bennetts, #636930)
329
* Wait for the SSH server to actually finish, rather than just waiting for
330
it to negotiate the key exchange. (John Arbash Meinel, #626876)
335
* ``bzr remove`` now just backs up changed files instead of exiting,
336
forcing you to choose to either keep or delete them. Bazaar will now delete
337
the files if they can easily be recovered using revert, otherwise they
338
will be backed up (adding an extention of the form .~#~).
339
(Marius Kruger, #400554)
341
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
342
with many changes by not repeatedly building a list of all file-ids.
345
* Decrease memory consumption when many chk index pages are loaded. (Such
346
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
347
read many chk pages because the individual chk map nodes will be spread
348
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
349
down to 247MB, expect even more significant savings on 64-bit platforms.
352
* ``DirState`` internals use a little bit less memory. For bzr.dev it
353
drops the memory from 1MB down to about 800kB. And replaces a few
354
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
356
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
357
have dropped from 68 bytes to 40, and directory entries from 120 bytes
358
to 48). (Andrew Bennetts)
360
* When building new working trees, default to reading from the repository
361
rather than the source tree unless explicitly requested. (via
362
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
363
``bzr checkout``. Generally, 2a format repositories extract
364
content faster than seeking and reading content from another tree,
365
especially in cold-cache situations. (John Arbash Meinel, #607298)
367
* Add ``__pycache__`` to the default ``ignores`` file. Future releases of
368
Python will use this directory to store bytecodes.
369
(Andrea Corbellini, #626687)
374
* Added a builder/writer sphinx extension that can generate texinfo files. The
375
generated files are syntactically correct but the info navigation nodes
376
needs more work. (Vincent Ladeuil, #219334)
378
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
379
to make the tests conditional.
382
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
383
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
384
(John Arbash Meinel, #617503)
386
* Suggest ``bzr revert`` for restoring locally deleted files in help text
387
for ``bzr update``. (John C Barstow, #191466)
392
* Configuration files should now use the ``from_string`` constructor rather
393
than the ``file`` parameter of the ``_get_parser`` method. The later has
394
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
395
have the configuration file immediately written to disk.
398
* Deprecate treating a `PushResult` and `PullResult` as an integer for the
399
relative change in revno.
402
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
403
the rather than the ``file`` parameter of the ``_get_parser`` method. The
404
later has been deprecated. (Vincent Ladeuil)
406
* InventoryEntry instances now raise AttributeError if you try to assign
407
to attributes that are irrelevant to that kind of entry. e.g. setting
408
``symlink_target`` on an InventoryFile will fail. It is still okay to
409
read those attributes on any kind of InventoryEntry. The complete list
410
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
411
``text_size`` (only valid for kind == file); ``symlink_target`` (only
412
valid for kind == link); and ``reference_revision`` (only valid for kind
413
== tree-reference). (Andrew Bennetts)
415
* InventoryEntry objects no longer have ``_put_in_tar`` or
416
``_put_on_disk`` methods. (Andrew Bennetts)
418
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
419
constructor has been deprecated, use the ``file_name`` parameter instead.
425
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
431
* ``build_tree_contents`` can create symlinks.
432
(Martin Pool, John Arbash Meinel)
434
* Catch socket errors to avoid
435
bt.test_sftp_transport.SSHVendorBadConnection.test_bad_connection_ssh
436
random failures. (Vincent Ladeuil, #601804)
438
* HTTP test servers will leak less threads (and sockets) and will not hang on
439
AIX anymore. (Vincent Ladeuil, #405745)
441
* On platforms that don't support forking give a nice error message saying so
442
when ``bzr selftest --parallel=fork`` is used. (Martin [gz], #528730)
444
* Rearrange thread leak detection code to eliminate global state and make it
445
possible to extend the reporting. (Marting [gz], #633462)
447
* Suppress the "maximum recursion depth exceeded in __subclasscheck__"
448
warning on stderr emitted during ``test_dict_deepnested`` in
449
``bzrlib/tests/test__bencode.py``. (Andrew Bennetts)
451
* The test suite now simply holds log files in memory, rather than writing them
452
out to disk and then reading them back in and deleting them.
455
* The way ``bzr selftest --parallel`` generates N partitions of tests to
456
run in parallel has changed. Instead of splitting the list of tests at
457
N-1 points, it distributes the tests one-by-one into the partitions in a
458
round robin fashion. This reduces the total time to run the tests in
459
parallel because a series of slow tests in the test suite will be
460
distributed evenly among the parallel test suites, rather than slowing
461
down just one suite. (Andrew Bennetts)
463
* Tracebacks from a parameterized test are no longer reported against every
464
parameterization of that test. This was done by adding a hack to
465
``bzrlib.tests.clone_test`` so that it no longer causes
466
testtools.TestCase instances to share a details dict.
467
(Andrew Bennetts, #625574)
475
This is a bugfix release which also includes bugfixes from 2.0.6 and
476
2.1.3. None are critical, but upgrading is recommended for all users on
477
earlier 2.2 releases.
482
* Additional merges after an unrelated branch has been merged with its
483
history no longer crash when deleted files are involved.
484
(Vincent Ladeuil, John Arbash Meinel, #375898)
486
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
487
previously-unversioned directory within the tree: the directory is
488
marked versioned too.
489
(Martin Pool, #192859)
491
* ``bzr commit SYMLINK`` now works, rather than trying to commit the
492
target of the symlink.
493
(Martin Pool, John Arbash Meinel, #128562)
495
* ``bzr upgrade`` now creates the ``backup.bzr`` directory with the same
496
permissions as ``.bzr`` directory on a POSIX OS.
497
(Parth Malwankar, #262450)
499
* CommitBuilder now uses the committer instead of _config.username to generate
500
the revision-id. (Aaron Bentley, #614404)
502
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
503
way which should help avoid problems with concurrent writers.
504
(Vincent Ladeuil, #525571)
506
* Cope with Microsoft FTP server that returns reply '250 Directory
507
created' when mkdir succeeds. (Martin Pool, #224373)
509
* Don't traceback trying to unversion children files of an already
510
unversioned directory. (Vincent Ladeuil, #494221)
512
* Don't traceback when a lockdir's ``held/info`` file is corrupt (e.g.
513
contains only NUL bytes). Instead warn the user, and allow ``bzr
514
break-lock`` to remove it. (Andrew Bennetts, #619872)
516
* Fix ``AttributeError on parent.children`` when adding a file under a
517
directory that was a symlink in the previous commit.
518
(Martin Pool, #192859)
520
* Fix ``AttributeError: 'NoneType' object has no attribute 'close'`` in
521
``_close_ssh_proc`` when using ``bzr+ssh://``. This was causing
522
connections to pre-1.6 bzr+ssh servers to fail, and causing warnings on
523
stderr in some other circumstances. (Andrew Bennetts, #633745)
525
* Only call ``setlocale`` in the bzr startup script on posix systems. This
526
avoids an issue with the newer windows C runtimes used by Python 2.6 and
527
later which can mangle bytestrings printed to the console.
528
(Martin [gz], #631350)
530
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
531
which can result in "missing referenced chk root keys" errors when
532
fetching from repositories with affected revisions.
533
(Andrew Bennetts, #522637)
535
* Raise ValueError instead of a string exception.
536
(John Arbash Meinel, #586926)
538
* Reduce peak memory by one copy of compressed text.
539
(John Arbash Meinel, #566940)
541
* Repositories accessed via a smart server now reject being stacked on a
542
repository in an incompatible format, as is the case when accessing them
543
via other methods. This was causing fetches from those repositories via
544
a smart server (e.g. using ``bzr branch``) to receive invalid data.
545
(Andrew Bennetts, #562380)
547
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
548
error. This error was caused by 2.0 not being updated when upstream
549
python merged the end of run patch, which chose ``stopTestRun`` rather than
550
``done``. (Robert Collins, #571437)
552
* Stop ``AttributeError: 'module' object has no attribute 'ElementTree'``
553
being thrown from ``xml_serializer`` on certain cElementTree setups.
554
(Martin [gz], #254278)
556
* Upgrading or fetching from a non-rich-root repository to a rich-root
557
repository (e.g. from pack-0.92 to 2a) no longer fails with
558
``'Inter1and2Helper' object has no attribute 'source_repo'``. This was
559
a regression from Bazaar 2.1. (Andrew Bennetts, #636930)
561
* When passing a file to ``UTF8DirReader`` make sure to close the current
562
directory file handle after the chdir fails. Otherwise when passing many
563
filenames into a command line ``bzr status`` we would leak descriptors.
564
(John Arbash Meinel, #583486)
569
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
570
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
571
(John Arbash Meinel, #617503)
576
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
582
* ``build_tree_contents`` can create symlinks.
583
(Martin Pool, John Arbash Meinel)
585
* Tracebacks from a parameterized test are no longer reported against every
586
parameterization of that test. This was done by adding a hack to
587
``bzrlib.tests.clone_test`` so that it no longer causes
588
testtools.TestCase instances to share a details dict.
589
(Andrew Bennetts, #625574)
598
This release marks the start of another long-term-stable series. From
599
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
600
while 2.3 will become our new development series. The 2.0 and 2.1 series
601
will also continue to get bugfixes. (Currently 2.0 is planned to be
602
supported for another 6 months.)
604
This is primarily a bugfix and polish release over the 2.1 series, with
605
a large number of bugs fixed (>120), and some performance improvements.
607
There are some compatibility changes in this release. For users of bzrlib
608
as a library, we now request that they call ``bzrlib.initialize`` and use
609
the returned context manager appropriately. For commandline users we no
610
longer guess user identity for ``bzr commit``, users must specify their
611
identity using ``bzr whoami`` (you don't need to specify your identity for
612
readonly operations).
614
Users are encouraged to upgrade from the other stable series.
619
* BzrError subclasses no longer support the name "message" to be used
620
as an argument for __init__ or in _fmt format specification as this
621
breaks in some Python versions. errors.LockError.__init__ argument
622
is now named "msg" instead of earlier "message".
623
(Parth Malwankar, #603461)
625
* The old ``bzr selftest --benchmark`` option has been removed.
626
<https://launchpad.net/bzr-usertest> is an actively-maintained
627
macrobenchmark suite.
633
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
634
``InvalidPattern`` exception error message now shows faulting
636
(Parth Malwankar #300062)
638
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
639
way which should help avoid problems with concurrent writers.
640
(Vincent Ladeuil, #525571)
642
* Don't traceback trying to unversion children files of an already
643
unversioned directory. (Vincent Ladeuil, #494221)
645
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
646
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
648
* Progress bars prefer to truncate the text message rather than the
649
counters. The spinner is shown between the network transfer indicator
650
and the progress message. Progress bars are correctly cleared off when
651
they finish. (Martin Pool, #611127)
653
* Recursive binding for checkouts is now detected by bzr. A clear error
654
message is shown to the user. (Parth Malwankar, #405192)
659
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
660
tree, and works with unrelated branches. (Andrew Bennetts)
662
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
663
GUI with out have a console open in the background.
664
(Gary van der Merwe, #433781)
669
* ``bzr help patterns`` now explains case insensitive patterns and
670
points to Python regular expression documentation.
671
(Parth Malwankar, #594386)
676
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
681
* Unit test added to ensure that "message" is not uses as a format variable
682
name in BzrError subclasses as this conflicts with some Python versions.
683
(Parth Malwankar, #603461)
688
:Codename: Monkey Magic
692
This fourth and final beta in the 2.2 series now stabilizes the internal
693
APIs. Plugin authors are recommended to ensure their releases are
694
compatible, so that 2.2rc1 can be a true release candidate, containing
695
stable and compatible plugin versions.
697
For users of bzrlib as a library, one of the primary changes is to request
698
that they call ``bzrlib.initialize`` and use the returned context manager
701
Better interaction with ``bzr-loom`` to make sure branching from a loom
702
even over a smart server still yields a local loom. Not to mention lots of
708
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
709
the result of ``bzrlib.initialize``. This change was made when fixing
710
the bad habit recent bzr versions have had of leaving progress bars
711
behind on the screen. That required calling another function before
712
exiting the program, and it made sense to provide a full context
713
manager at the same time. (Robert Collins)
715
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
716
context manager in the Python 2.5 and above sense. The bzrlib base class
717
is such a manager, but third party UI factories which do not derive from
718
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
721
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
722
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
723
scheme. Previously these URLs would be treated as local paths.
730
* Support ``--directory`` option for a number of additional commands:
731
conflicts, merge-directive, missing, resolve, shelve, switch,
732
unshelve, whoami. (Martin von Gagern, #527878)
737
* ``bzr branch`` to a new repository with a default stacking policy no
738
longer transfers the full history unnecessarily.
739
(Andrew Bennetts, #597942)
741
* ``bzr init`` does not recursively scan directory contents anymore
742
leading to faster init for directories with existing content.
743
(Martin [gz], Parth Malwankar, #501307)
745
* ``bzr log --exclude-common-ancestry`` is now taken into account for
746
linear ancetries. (Vincent Ladeuil, #575631)
748
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
749
rather than trying to fetch the data locally and failing because of a
750
readonly error. (Martin von Gagern, #149270)
752
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
753
or pull location in locations.conf or branch.conf.
754
(Gordon Tyler, #534787)
756
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
757
smart server. (Andrew Bennetts, #551525)
759
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
760
(Marius Kruger, Robert Collins)
762
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
763
(Marius Kruger, Robert Collins)
765
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
766
proper error messages. (Vincent Ladeuil, #591215)
768
* Explicitly removing ``--profile-imports`` option from parsed command-line
769
arguments on Windows, because bzr script does the same.
770
(Alexander Belchenko, #588277)
772
* Fetching was slightly confused about the best code to use and was
773
using a new code path for all branches, resulting in more lookups than
774
necessary on old branches. (Robert Collins, #593515)
776
* Final fix for 'no help for command' issue. We now show a clean message
777
when a command has no help, document how to set help more clearly, and
778
test that all commands available to the test suite have help.
779
(Robert Collins, #177500)
781
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
782
``InvalidPattern`` exception showing clear error message to the user.
783
(Parth Malwankar #300062)
785
* Progress output is cleaned up when exiting. (Aaron Bentley)
787
* Raise ValueError instead of a string exception.
788
(John Arbash Meinel, #586926)
790
* Relative imports in plugins are now handled correctly when using
791
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
793
* ``ScriptRunner`` now strips off leading indentation from test scripts,
794
which previously caused "SyntaxError: No command for line".
797
* Show unicode filenames in diff headers using terminal encoding.
798
(Alexander Belchenko, Bug #382699)
799
NOTE for Windows users: If user need to save diff to file then user need to
800
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
801
(e.g. ``chcp 1251`` for Russian Windows).
803
* URL displayed for use with ``break-lock`` when smart server sees lock
804
contention are now valid. Default timeout for lock contention retry is
805
now 30 seconds instead of 300 seconds.
806
(Parth Malwankar, #250451)
808
* ``walkdirs`` now raises a useful message when the filenames are not using
809
the filesystem encoding. (Eric Moritz, #488519)
811
* Enable debugging of bzr on windows with pdb and other tools. This was
812
broken because we call GetCommandLineW on windows. The fix adjusts the
813
command line we get to be the same length as sys.argv.
814
(Jason Spashett, Alexander Belchenko, #587868)
819
* Bazaar now reads data from SSH connections more efficiently on platforms
820
that provide the ``socketpair`` function, and when using paramiko.
821
(Andrew Bennetts, #590637)
823
* ``Branch.copy_content_into`` is now a convenience method dispatching to
824
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
825
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
826
(Robert Collins, #201613)
828
* ``Branch`` formats can now be loaded lazily by registering a
829
``MetaDirBranchFormatFactory`` rather than an actual format. This will
830
cause the named format class to be loaded only when an enumeration of
831
formats is needed or when the format string for the object is
832
encountered. (Robert Collins, Jelmer Vernooij)
834
* The encoding that bzr uses to output things other than file content can
835
now be overridden via the output_encoding configuration option.
836
(Martin Pool, #340394)
838
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
839
do not cause modules to be loaded unnecessarily just because the plugin
840
registers a merge hook. This improves ``bzr rocks`` time by about 25%
841
in a default installation (with just the core plugins).
847
* Added ``regression`` tag to our tags list. (Robert Collins)
849
* Improved our release checklist to have a bit less churn and leave things
850
ready-to-go for the next action (including other people doing
851
development). (Robert Collins)
853
* Remove obsolete discussion of PQM in documentation about how to
854
contribute to Bazaar. (Martin Pool, #588444)
859
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
860
an iterable of format pairs, rather than just a single pair, permitting
861
InterBranch objects that work with multiple permutations to be
862
comprehensively tested. (Robert Collins)
864
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
865
profiles when concurrent profile requests are made. Instead the profile
866
requests will be serialised. Reentrant requests will now deadlock.
869
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
870
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
871
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
873
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
874
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
875
case the default error message not suitable for the use case.
878
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
879
one method ``check_output``, and we now recommend checking command
880
output using ``run_script``. (Martin Pool)
882
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
883
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
884
Third-party implementations of ``SSHVendor`` may need to be updated
885
accordingly. Similarly, any code using ``SSHConnection`` directly will
886
need to be updated. (Andrew Bennetts)
888
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
889
changed to take an ``SSHParams`` instance (replacing many individual
890
values). (Andrew Bennetts)
895
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
896
selection when explicitly requested; this avoids many duplicate calls
897
being logged when helpers, wrappers and older code that manually calls
898
it are executed it is now logged deliberately by the ui setup code.
901
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
903
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
904
that ``sys.getsizeof`` and other memory analysis tools will report more
905
accurate results. (Andrew Bennetts)
907
* The symbol_versioning module can now cleanup after itself -
908
``suppress_deprecation_warnings`` now returns a cleanup function.
914
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
915
to test. (Martin Pool)
917
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
918
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
925
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
926
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
927
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
928
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
929
bash completion script and bzr will no longer guess at identity details -
930
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
931
For developers we have some API changes which may impact plugins as well
932
as a bunch of our regular improvements to internal clarity and test
13
935
Compatibility Breaks
14
936
********************
938
* An API break has been made to the lock_write method of ``Branch`` and
939
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
940
and ``repository.RepositoryWriteLockResult`` objects. This makes
941
changing the API in future easier and permits some cleaner calling code.
942
The lock_read method has also changed from having no defined return
943
value to returning ``LogicalLockResult`` objects.
946
* ``bzr`` does not try to guess the username as ``username@hostname``
947
and requires it to be explictly set. This can be set using ``bzr
948
whoami``. (Parth Malwankar, #549310)
950
* ``bzrlib.commands.Command`` will now raise ValueError during
951
construction if there is no __doc__ set. (Note, this will be reverted in
952
2.2b4) (Robert Collins)
954
* The source tree no longer contains a contrib/zsh/_bzr completion
955
script. The new file contrib/zsh/README suggests alternatives.
956
(Martin von Gagern, #560030)