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