5
5
.. contents:: List of Releases
12
:2.3b1: NOT RELEASED YET
17
* BzrError subclasses no longer support the name "message" to be used
18
as an argument for __init__ or in _fmt format specification as this
19
breaks in some Python versions. errors.LockError.__init__ argument
20
is now named "msg" instead of earlier "message".
21
(Parth Malwankar, #603461)
23
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
27
* `tree_files` and `internal_tree_files` are now deprecated in favor of
28
`WorkingTree.open_containing_paths`.
31
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
32
and `BzrDir`, respectively. `ControlDirFormat`
33
and `ControlDir` should be used as the base classes for new non-.bzr
36
`BzrDirFormat.register_control_format` has been renamed to
37
`ControlDirFormat.register_format`.
39
`BzrDirFormat.register_server_control_format` has been removed.
41
Probing for control directories is now done by separate objects derived
42
from `bzrlib.controldir.Prober` and registered using
43
`bzrlib.controldir.ControlDirFormat.register_prober` or
44
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
45
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
47
`BzrDirFormat.register_format` has been renamed to
48
`BzrProber.register_bzrdir_format`.
51
* The old ``bzr selftest --benchmark`` option has been removed.
52
<https://launchpad.net/bzr-usertest> is an actively-maintained
59
* The ``lp:`` prefix will now use your known username (from
60
``bzr launchpad-login``) to expand ``~`` to your username. For example:
61
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
62
push to ``lp:~user/project/branch``. (John Arbash Meinel)
67
* Allow using both --using and --diff-options.
68
(Matthäus G. Chajdas, #234708)
70
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
71
previously-unversioned directory within the tree: the directory is
73
(Martin Pool, #192859)
75
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
76
``InvalidPattern`` exception error message now shows faulting
78
(Parth Malwankar #300062)
80
* ``clean-tree`` issues a warning if it is unable to delete a file
81
due to ``errno.EACCES`` instead of exiting with an error on Windows.
82
(Parth Malwankar, #430785)
84
* CommitBuilder now uses the committer instead of _config.username to generate
85
the revision-id. (Aaron Bentley, #614404)
87
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
88
Directory created' when mkdir succeeds. (Martin Pool, #224373)
90
* Decrease peak memory during ``bzr send``. The old code was caching all
91
text content and all inventory strings for all revisions before
92
computing the diffs. Now we only cache as long as there is a child that
93
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
94
256MB peak. (John Arbash Meinel, #614576)
96
* Don't print internal object name when print an invalid revision spec
97
error. (Neil Martinsen-Burrell, #598701)
99
* Fix ``AttributeError on parent.children`` when adding a file under a
100
directory that was a symlink in the previous commit.
101
(Martin Pool, #192859)
103
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
104
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
106
* `PathNotChild` should not give a traceback.
107
(Martin Pool, #98735)
109
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
110
which can result in "missing referenced chk root keys" errors when
111
fetching from repositories with affected revisions.
112
(Andrew Bennetts, #522637)
114
* ``Transport.stat`` on a symlink, including a transport pointing directly
115
to a symlink, now returns information about the symlink.
121
* ``bzr remove`` now just backs up changed files instead of exiting,
122
forcing you to choose to either keep or delete them. Bazaar will now delete
123
the files if they can easily be recovered using revert, otherwise they
124
will be backed up (adding an extention of the form .~#~).
125
(Marius Kruger, #400554)
127
* Decrease memory consumption when many chk index pages are loaded. (Such
128
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
129
read many chk pages because the individual chk map nodes will be spread
130
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
131
down to 247MB, expect even more significant savings on 64-bit platforms.
134
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
135
have dropped from 68 bytes to 40, and directory entries from 120 bytes
136
to 48). (Andrew Bennetts)
138
* When building new working trees, default to reading from the repository
139
rather than the source tree unless explicitly requested. (via
140
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
141
``bzr checkout``. Generally, 2a format repositories extract
142
content faster than seeking and reading content from another tree,
143
especially in cold-cache situations. (John Arbash Meinel, #607298)
148
* Added a builder/writer sphinx extension that can generate texinfo files. The
149
generated files are syntactically correct but the info navigation nodes
150
needs more work. (Vincent Ladeuil, #219334)
152
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
153
to make the tests conditional.
156
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
157
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
158
(John Arbash Meinel, #617503)
163
* ``bzrlib.transform.TreeTransformBase.final_kind``,
164
``bzrlib.transform.TreeTransform.tree_kind`` and
165
``bzrlib.transform.TransformPreview.tree_kind``now return None instead
166
of raising NoSuchFile. (Vincent Ladeuil)
168
* InventoryEntry instances now raise AttributeError if you try to assign
169
to attributes that are irrelevant to that kind of entry. e.g. setting
170
``symlink_target`` on an InventoryFile will fail. It is still okay to
171
read those attributes on any kind of InventoryEntry. The complete list
172
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
173
``text_size`` (only valid for kind == file); ``symlink_target`` (only
174
valid for kind == link); and ``reference_revision`` (only valid for kind
175
== tree-reference). (Andrew Bennetts)
177
* InventoryEntry objects no longer have ``_put_in_tar`` or
178
``_put_on_disk`` methods. (Andrew Bennetts)
183
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
189
* The way ``bzr selftest --parallel`` generates N partitions of tests to
190
run in parallel has changed. Instead of splitting the list of tests at
191
N-1 points, it distributes the tests one-by-one into the partitions in a
192
round robin fashion. This reduces the total time to run the tests in
193
parallel because a series of slow tests in the test suite will be
194
distributed evenly among the parallel test suites, rather than slowing
195
down just one suite. (Andrew Bennetts)
202
:2.2.1: NOT RELEASED YET
207
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
208
previously-unversioned directory within the tree: the directory is
209
marked versioned too.
210
(Martin Pool, #192859)
212
* CommitBuilder now uses the committer instead of _config.username to generate
213
the revision-id. (Aaron Bentley, #614404)
215
* Cope with Microsoft FTP server that returns reply '250 Directory
216
created' when mkdir succeeds. (Martin Pool, #224373)
218
* Fix ``AttributeError on parent.children`` when adding a file under a
219
directory that was a symlink in the previous commit.
220
(Martin Pool, #192859)
225
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
226
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
227
(John Arbash Meinel, #617503)
232
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
242
This release marks the start of another long-term-stable series. From
243
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
244
while 2.3 will become our new development series. The 2.0 and 2.1 series
245
will also continue to get bugfixes. (Currently 2.0 is planned to be
246
supported for another 6 months.)
248
This is primarily a bugfix and polish release over the 2.1 series, with
249
a large number of bugs fixed (>120), and some performance improvements.
251
There are some compatibility changes in this release. For users of bzrlib
252
as a library, we now request that they call ``bzrlib.initialize`` and use
253
the returned context manager appropriately. For commandline users we no
254
longer guess user identity for ``bzr commit``, users must specify their
255
identity using ``bzr whoami`` (you don't need to specify your identity for
256
readonly operations).
258
Users are encouraged to upgrade from the other stable series.
263
* BzrError subclasses no longer support the name "message" to be used
264
as an argument for __init__ or in _fmt format specification as this
265
breaks in some Python versions. errors.LockError.__init__ argument
266
is now named "msg" instead of earlier "message".
267
(Parth Malwankar, #603461)
269
* The old ``bzr selftest --benchmark`` option has been removed.
270
<https://launchpad.net/bzr-usertest> is an actively-maintained
271
macrobenchmark suite.
277
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
278
``InvalidPattern`` exception error message now shows faulting
280
(Parth Malwankar #300062)
282
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
283
way which should help avoid problems with concurrent writers.
284
(Vincent Ladeuil, #525571)
286
* Don't traceback trying to unversion children files of an already
287
unversioned directory. (Vincent Ladeuil, #494221)
289
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
290
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
292
* Progress bars prefer to truncate the text message rather than the
293
counters. The spinner is shown between the network transfer indicator
294
and the progress message. Progress bars are correctly cleared off when
295
they finish. (Martin Pool, #611127)
297
* Recursive binding for checkouts is now detected by bzr. A clear error
298
message is shown to the user. (Parth Malwankar, #405192)
303
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
304
tree, and works with unrelated branches. (Andrew Bennetts)
306
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
307
GUI with out have a console open in the background.
308
(Gary van der Merwe, #433781)
313
* ``bzr help patterns`` now explains case insensitive patterns and
314
points to Python regular expression documentation.
315
(Parth Malwankar, #594386)
320
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
325
* Unit test added to ensure that "message" is not uses as a format variable
326
name in BzrError subclasses as this conflicts with some Python versions.
327
(Parth Malwankar, #603461)
332
:Codename: Monkey Magic
336
This fourth and final beta in the 2.2 series now stabilizes the internal
337
APIs. Plugin authors are recommended to ensure their releases are
338
compatible, so that 2.2rc1 can be a true release candidate, containing
339
stable and compatible plugin versions.
341
For users of bzrlib as a library, one of the primary changes is to request
342
that they call ``bzrlib.initialize`` and use the returned context manager
345
Better interaction with ``bzr-loom`` to make sure branching from a loom
346
even over a smart server still yields a local loom. Not to mention lots of
352
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
353
the result of ``bzrlib.initialize``. This change was made when fixing
354
the bad habit recent bzr versions have had of leaving progress bars
355
behind on the screen. That required calling another function before
356
exiting the program, and it made sense to provide a full context
357
manager at the same time. (Robert Collins)
359
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
360
context manager in the Python 2.5 and above sense. The bzrlib base class
361
is such a manager, but third party UI factories which do not derive from
362
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
365
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
366
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
367
scheme. Previously these URLs would be treated as local paths.
374
* Support ``--directory`` option for a number of additional commands:
375
conflicts, merge-directive, missing, resolve, shelve, switch,
376
unshelve, whoami. (Martin von Gagern, #527878)
381
* ``bzr branch`` to a new repository with a default stacking policy no
382
longer transfers the full history unnecessarily.
383
(Andrew Bennetts, #597942)
385
* ``bzr init`` does not recursively scan directory contents anymore
386
leading to faster init for directories with existing content.
387
(Martin [gz], Parth Malwankar, #501307)
389
* ``bzr log --exclude-common-ancestry`` is now taken into account for
390
linear ancetries. (Vincent Ladeuil, #575631)
392
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
393
rather than trying to fetch the data locally and failing because of a
394
readonly error. (Martin von Gagern, #149270)
396
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
397
or pull location in locations.conf or branch.conf.
398
(Gordon Tyler, #534787)
400
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
401
smart server. (Andrew Bennetts, #551525)
403
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
404
(Marius Kruger, Robert Collins)
406
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
407
(Marius Kruger, Robert Collins)
409
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
410
proper error messages. (Vincent Ladeuil, #591215)
412
* Explicitly removing ``--profile-imports`` option from parsed command-line
413
arguments on Windows, because bzr script does the same.
414
(Alexander Belchenko, #588277)
416
* Fetching was slightly confused about the best code to use and was
417
using a new code path for all branches, resulting in more lookups than
418
necessary on old branches. (Robert Collins, #593515)
420
* Final fix for 'no help for command' issue. We now show a clean message
421
when a command has no help, document how to set help more clearly, and
422
test that all commands available to the test suite have help.
423
(Robert Collins, #177500)
425
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
426
``InvalidPattern`` exception showing clear error message to the user.
427
(Parth Malwankar #300062)
429
* Progress output is cleaned up when exiting. (Aaron Bentley)
431
* Raise ValueError instead of a string exception.
432
(John Arbash Meinel, #586926)
434
* Relative imports in plugins are now handled correctly when using
435
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
437
* ``ScriptRunner`` now strips off leading indentation from test scripts,
438
which previously caused "SyntaxError: No command for line".
441
* Show unicode filenames in diff headers using terminal encoding.
442
(Alexander Belchenko, Bug #382699)
443
NOTE for Windows users: If user need to save diff to file then user need to
444
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
445
(e.g. ``chcp 1251`` for Russian Windows).
447
* URL displayed for use with ``break-lock`` when smart server sees lock
448
contention are now valid. Default timeout for lock contention retry is
449
now 30 seconds instead of 300 seconds.
450
(Parth Malwankar, #250451)
452
* ``walkdirs`` now raises a useful message when the filenames are not using
453
the filesystem encoding. (Eric Moritz, #488519)
455
* Enable debugging of bzr on windows with pdb and other tools. This was
456
broken because we call GetCommandLineW on windows. The fix adjusts the
457
command line we get to be the same length as sys.argv.
458
(Jason Spashett, Alexander Belchenko, #587868)
463
* Bazaar now reads data from SSH connections more efficiently on platforms
464
that provide the ``socketpair`` function, and when using paramiko.
465
(Andrew Bennetts, #590637)
467
* ``Branch.copy_content_into`` is now a convenience method dispatching to
468
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
469
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
470
(Robert Collins, #201613)
472
* ``Branch`` formats can now be loaded lazily by registering a
473
``MetaDirBranchFormatFactory`` rather than an actual format. This will
474
cause the named format class to be loaded only when an enumeration of
475
formats is needed or when the format string for the object is
476
encountered. (Robert Collins, Jelmer Vernooij)
478
* The encoding that bzr uses to output things other than file content can
479
now be overridden via the output_encoding configuration option.
480
(Martin Pool, #340394)
482
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
483
do not cause modules to be loaded unnecessarily just because the plugin
484
registers a merge hook. This improves ``bzr rocks`` time by about 25%
485
in a default installation (with just the core plugins).
491
* Added ``regression`` tag to our tags list. (Robert Collins)
493
* Improved our release checklist to have a bit less churn and leave things
494
ready-to-go for the next action (including other people doing
495
development). (Robert Collins)
497
* Remove obsolete discussion of PQM in documentation about how to
498
contribute to Bazaar. (Martin Pool, #588444)
503
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
504
an iterable of format pairs, rather than just a single pair, permitting
505
InterBranch objects that work with multiple permutations to be
506
comprehensively tested. (Robert Collins)
508
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
509
profiles when concurrent profile requests are made. Instead the profile
510
requests will be serialised. Reentrant requests will now deadlock.
513
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
514
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
515
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
517
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
518
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
519
case the default error message not suitable for the use case.
522
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
523
one method ``check_output``, and we now recommend checking command
524
output using ``run_script``. (Martin Pool)
526
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
527
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
528
Third-party implementations of ``SSHVendor`` may need to be updated
529
accordingly. Similarly, any code using ``SSHConnection`` directly will
530
need to be updated. (Andrew Bennetts)
532
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
533
changed to take an ``SSHParams`` instance (replacing many individual
534
values). (Andrew Bennetts)
539
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
540
selection when explicitly requested; this avoids many duplicate calls
541
being logged when helpers, wrappers and older code that manually calls
542
it are executed it is now logged deliberately by the ui setup code.
545
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
547
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
548
that ``sys.getsizeof`` and other memory analysis tools will report more
549
accurate results. (Andrew Bennetts)
551
* The symbol_versioning module can now cleanup after itself -
552
``suppress_deprecation_warnings`` now returns a cleanup function.
558
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
559
to test. (Martin Pool)
561
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
562
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
569
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
570
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
571
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
572
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
573
bash completion script and bzr will no longer guess at identity details -
574
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
575
For developers we have some API changes which may impact plugins as well
576
as a bunch of our regular improvements to internal clarity and test
13
579
Compatibility Breaks
14
580
********************
582
* An API break has been made to the lock_write method of ``Branch`` and
583
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
584
and ``repository.RepositoryWriteLockResult`` objects. This makes
585
changing the API in future easier and permits some cleaner calling code.
586
The lock_read method has also changed from having no defined return
587
value to returning ``LogicalLockResult`` objects.
590
* ``bzr`` does not try to guess the username as ``username@hostname``
591
and requires it to be explictly set. This can be set using ``bzr
592
whoami``. (Parth Malwankar, #549310)
594
* ``bzrlib.commands.Command`` will now raise ValueError during
595
construction if there is no __doc__ set. (Note, this will be reverted in
596
2.2b4) (Robert Collins)
598
* The source tree no longer contains a contrib/zsh/_bzr completion
599
script. The new file contrib/zsh/README suggests alternatives.
600
(Martin von Gagern, #560030)