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
* The old ``bzr selftest --benchmark`` option has been removed.
32
<https://launchpad.net/bzr-usertest> is an actively-maintained
39
* The ``lp:`` prefix will now use your known username (from
40
``bzr launchpad-login``) to expand ``~`` to your username. For example:
41
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
42
push to ``lp:~user/project/branch``. (John Arbash Meinel)
47
* Allow using both --using and --diff-options.
48
(Matthäus G. Chajdas, #234708)
50
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
51
previously-unversioned directory within the tree: the directory is
53
(Martin Pool, #192859)
55
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
56
``InvalidPattern`` exception error message now shows faulting
58
(Parth Malwankar #300062)
60
* CommitBuilder now uses the committer instead of _config.username to generate
61
the revision-id. (Aaron Bentley, #614404)
63
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
64
Directory created' when mkdir succeeds. (Martin Pool, #224373)
66
* Decrease peak memory during ``bzr send``. The old code was caching all
67
text content and all inventory strings for all revisions before
68
computing the diffs. Now we only cache as long as there is a child that
69
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
70
256MB peak. (John Arbash Meinel, #614576)
72
* Don't print internal object name when print an invalid revision spec
73
error. (Neil Martinsen-Burrell, #598701)
75
* Fix ``AttributeError on parent.children`` when adding a file under a
76
directory that was a symlink in the previous commit.
77
(Martin Pool, #192859)
79
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
80
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
82
* `PathNotChild` should not give a traceback.
85
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
86
which can result in "missing referenced chk root keys" errors when
87
fetching from repositories with affected revisions.
88
(Andrew Bennetts, #522637)
90
* ``Transport.stat`` on a symlink, including a transport pointing directly
91
to a symlink, now returns information about the symlink.
97
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
98
have dropped from 68 bytes to 40, and directory entries from 120 bytes
99
to 48). (Andrew Bennetts)
101
* When building new working trees, default to reading from the repository
102
rather than the source tree unless explicitly requested. (via
103
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
104
``bzr checkout``. Generally, 2a format repositories extract
105
content faster than seeking and reading content from another tree,
106
especially in cold-cache situations. (John Arbash Meinel, #607298)
111
* Added a builder/writer sphinx extension that can generate texinfo files. The
112
generated files are syntactically correct but the info navigation nodes
113
needs more work. (Vincent Ladeuil, #219334)
115
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
116
to make the tests conditional.
119
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
120
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
121
(John Arbash Meinel, #617503)
126
* InventoryEntry instances now raise AttributeError if you try to assign
127
to attributes that are irrelevant to that kind of entry. e.g. setting
128
``symlink_target`` on an InventoryFile will fail. It is still okay to
129
read those attributes on any kind of InventoryEntry. The complete list
130
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
131
``text_size`` (only valid for kind == file); ``symlink_target`` (only
132
valid for kind == link); and ``reference_revision`` (only valid for kind
133
== tree-reference). (Andrew Bennetts)
135
* InventoryEntry objects no longer have ``_put_in_tar`` or
136
``_put_on_disk`` methods. (Andrew Bennetts)
141
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
147
* The way ``bzr selftest --parallel`` generates N partitions of tests to
148
run in parallel has changed. Instead of splitting the list of tests at
149
N-1 points, it distributes the tests one-by-one into the partitions in a
150
round robin fashion. This reduces the total time to run the tests in
151
parallel because a series of slow tests in the test suite will be
152
distributed evenly among the parallel test suites, rather than slowing
153
down just one suite. (Andrew Bennetts)
160
:2.2.1: NOT RELEASED YET
165
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
166
previously-unversioned directory within the tree: the directory is
167
marked versioned too.
168
(Martin Pool, #192859)
170
* CommitBuilder now uses the committer instead of _config.username to generate
171
the revision-id. (Aaron Bentley, #614404)
173
* Cope with Microsoft FTP server that returns reply '250 Directory
174
created' when mkdir succeeds. (Martin Pool, #224373)
176
* Fix ``AttributeError on parent.children`` when adding a file under a
177
directory that was a symlink in the previous commit.
178
(Martin Pool, #192859)
183
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
184
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
185
(John Arbash Meinel, #617503)
190
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
200
This release marks the start of another long-term-stable series. From
201
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
202
while 2.3 will become our new development series. The 2.0 and 2.1 series
203
will also continue to get bugfixes. (Currently 2.0 is planned to be
204
supported for another 6 months.)
206
This is primarily a bugfix and polish release over the 2.1 series, with
207
a large number of bugs fixed (>120), and some performance improvements.
209
There are some compatibility changes in this release. For users of bzrlib
210
as a library, we now request that they call ``bzrlib.initialize`` and use
211
the returned context manager appropriately. For commandline users we no
212
longer guess user identity for ``bzr commit``, users must specify their
213
identity using ``bzr whoami`` (you don't need to specify your identity for
214
readonly operations).
216
Users are encouraged to upgrade from the other stable series.
221
* BzrError subclasses no longer support the name "message" to be used
222
as an argument for __init__ or in _fmt format specification as this
223
breaks in some Python versions. errors.LockError.__init__ argument
224
is now named "msg" instead of earlier "message".
225
(Parth Malwankar, #603461)
227
* The old ``bzr selftest --benchmark`` option has been removed.
228
<https://launchpad.net/bzr-usertest> is an actively-maintained
229
macrobenchmark suite.
235
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
236
``InvalidPattern`` exception error message now shows faulting
238
(Parth Malwankar #300062)
240
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
241
way which should help avoid problems with concurrent writers.
242
(Vincent Ladeuil, #525571)
244
* Don't traceback trying to unversion children files of an already
245
unversioned directory. (Vincent Ladeuil, #494221)
247
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
248
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
250
* Progress bars prefer to truncate the text message rather than the
251
counters. The spinner is shown between the network transfer indicator
252
and the progress message. Progress bars are correctly cleared off when
253
they finish. (Martin Pool, #611127)
255
* Recursive binding for checkouts is now detected by bzr. A clear error
256
message is shown to the user. (Parth Malwankar, #405192)
261
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
262
tree, and works with unrelated branches. (Andrew Bennetts)
264
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
265
GUI with out have a console open in the background.
266
(Gary van der Merwe, #433781)
271
* ``bzr help patterns`` now explains case insensitive patterns and
272
points to Python regular expression documentation.
273
(Parth Malwankar, #594386)
278
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
283
* Unit test added to ensure that "message" is not uses as a format variable
284
name in BzrError subclasses as this conflicts with some Python versions.
285
(Parth Malwankar, #603461)
290
:Codename: Monkey Magic
294
This fourth and final beta in the 2.2 series now stabilizes the internal
295
APIs. Plugin authors are recommended to ensure their releases are
296
compatible, so that 2.2rc1 can be a true release candidate, containing
297
stable and compatible plugin versions.
299
For users of bzrlib as a library, one of the primary changes is to request
300
that they call ``bzrlib.initialize`` and use the returned context manager
303
Better interaction with ``bzr-loom`` to make sure branching from a loom
304
even over a smart server still yields a local loom. Not to mention lots of
310
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
311
the result of ``bzrlib.initialize``. This change was made when fixing
312
the bad habit recent bzr versions have had of leaving progress bars
313
behind on the screen. That required calling another function before
314
exiting the program, and it made sense to provide a full context
315
manager at the same time. (Robert Collins)
317
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
318
context manager in the Python 2.5 and above sense. The bzrlib base class
319
is such a manager, but third party UI factories which do not derive from
320
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
323
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
324
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
325
scheme. Previously these URLs would be treated as local paths.
332
* Support ``--directory`` option for a number of additional commands:
333
conflicts, merge-directive, missing, resolve, shelve, switch,
334
unshelve, whoami. (Martin von Gagern, #527878)
339
* ``bzr branch`` to a new repository with a default stacking policy no
340
longer transfers the full history unnecessarily.
341
(Andrew Bennetts, #597942)
343
* ``bzr init`` does not recursively scan directory contents anymore
344
leading to faster init for directories with existing content.
345
(Martin [gz], Parth Malwankar, #501307)
347
* ``bzr log --exclude-common-ancestry`` is now taken into account for
348
linear ancetries. (Vincent Ladeuil, #575631)
350
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
351
rather than trying to fetch the data locally and failing because of a
352
readonly error. (Martin von Gagern, #149270)
354
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
355
or pull location in locations.conf or branch.conf.
356
(Gordon Tyler, #534787)
358
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
359
smart server. (Andrew Bennetts, #551525)
361
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
362
(Marius Kruger, Robert Collins)
364
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
365
(Marius Kruger, Robert Collins)
367
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
368
proper error messages. (Vincent Ladeuil, #591215)
370
* Explicitly removing ``--profile-imports`` option from parsed command-line
371
arguments on Windows, because bzr script does the same.
372
(Alexander Belchenko, #588277)
374
* Fetching was slightly confused about the best code to use and was
375
using a new code path for all branches, resulting in more lookups than
376
necessary on old branches. (Robert Collins, #593515)
378
* Final fix for 'no help for command' issue. We now show a clean message
379
when a command has no help, document how to set help more clearly, and
380
test that all commands available to the test suite have help.
381
(Robert Collins, #177500)
383
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
384
``InvalidPattern`` exception showing clear error message to the user.
385
(Parth Malwankar #300062)
387
* Progress output is cleaned up when exiting. (Aaron Bentley)
389
* Raise ValueError instead of a string exception.
390
(John Arbash Meinel, #586926)
392
* Relative imports in plugins are now handled correctly when using
393
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
395
* ``ScriptRunner`` now strips off leading indentation from test scripts,
396
which previously caused "SyntaxError: No command for line".
399
* Show unicode filenames in diff headers using terminal encoding.
400
(Alexander Belchenko, Bug #382699)
401
NOTE for Windows users: If user need to save diff to file then user need to
402
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
403
(e.g. ``chcp 1251`` for Russian Windows).
405
* URL displayed for use with ``break-lock`` when smart server sees lock
406
contention are now valid. Default timeout for lock contention retry is
407
now 30 seconds instead of 300 seconds.
408
(Parth Malwankar, #250451)
410
* ``walkdirs`` now raises a useful message when the filenames are not using
411
the filesystem encoding. (Eric Moritz, #488519)
413
* Enable debugging of bzr on windows with pdb and other tools. This was
414
broken because we call GetCommandLineW on windows. The fix adjusts the
415
command line we get to be the same length as sys.argv.
416
(Jason Spashett, Alexander Belchenko, #587868)
421
* Bazaar now reads data from SSH connections more efficiently on platforms
422
that provide the ``socketpair`` function, and when using paramiko.
423
(Andrew Bennetts, #590637)
425
* ``Branch.copy_content_into`` is now a convenience method dispatching to
426
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
427
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
428
(Robert Collins, #201613)
430
* ``Branch`` formats can now be loaded lazily by registering a
431
``MetaDirBranchFormatFactory`` rather than an actual format. This will
432
cause the named format class to be loaded only when an enumeration of
433
formats is needed or when the format string for the object is
434
encountered. (Robert Collins, Jelmer Vernooij)
436
* The encoding that bzr uses to output things other than file content can
437
now be overridden via the output_encoding configuration option.
438
(Martin Pool, #340394)
440
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
441
do not cause modules to be loaded unnecessarily just because the plugin
442
registers a merge hook. This improves ``bzr rocks`` time by about 25%
443
in a default installation (with just the core plugins).
449
* Added ``regression`` tag to our tags list. (Robert Collins)
451
* Improved our release checklist to have a bit less churn and leave things
452
ready-to-go for the next action (including other people doing
453
development). (Robert Collins)
455
* Remove obsolete discussion of PQM in documentation about how to
456
contribute to Bazaar. (Martin Pool, #588444)
461
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
462
an iterable of format pairs, rather than just a single pair, permitting
463
InterBranch objects that work with multiple permutations to be
464
comprehensively tested. (Robert Collins)
466
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
467
profiles when concurrent profile requests are made. Instead the profile
468
requests will be serialised. Reentrant requests will now deadlock.
471
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
472
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
473
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
475
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
476
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
477
case the default error message not suitable for the use case.
480
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
481
one method ``check_output``, and we now recommend checking command
482
output using ``run_script``. (Martin Pool)
484
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
485
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
486
Third-party implementations of ``SSHVendor`` may need to be updated
487
accordingly. Similarly, any code using ``SSHConnection`` directly will
488
need to be updated. (Andrew Bennetts)
490
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
491
changed to take an ``SSHParams`` instance (replacing many individual
492
values). (Andrew Bennetts)
497
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
498
selection when explicitly requested; this avoids many duplicate calls
499
being logged when helpers, wrappers and older code that manually calls
500
it are executed it is now logged deliberately by the ui setup code.
503
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
505
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
506
that ``sys.getsizeof`` and other memory analysis tools will report more
507
accurate results. (Andrew Bennetts)
509
* The symbol_versioning module can now cleanup after itself -
510
``suppress_deprecation_warnings`` now returns a cleanup function.
516
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
517
to test. (Martin Pool)
519
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
520
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
527
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
528
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
529
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
530
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
531
bash completion script and bzr will no longer guess at identity details -
532
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
533
For developers we have some API changes which may impact plugins as well
534
as a bunch of our regular improvements to internal clarity and test
13
537
Compatibility Breaks
14
538
********************
540
* An API break has been made to the lock_write method of ``Branch`` and
541
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
542
and ``repository.RepositoryWriteLockResult`` objects. This makes
543
changing the API in future easier and permits some cleaner calling code.
544
The lock_read method has also changed from having no defined return
545
value to returning ``LogicalLockResult`` objects.
548
* ``bzr`` does not try to guess the username as ``username@hostname``
549
and requires it to be explictly set. This can be set using ``bzr
550
whoami``. (Parth Malwankar, #549310)
552
* ``bzrlib.commands.Command`` will now raise ValueError during
553
construction if there is no __doc__ set. (Note, this will be reverted in
554
2.2b4) (Robert Collins)
556
* The source tree no longer contains a contrib/zsh/_bzr completion
557
script. The new file contrib/zsh/README suggests alternatives.
558
(Martin von Gagern, #560030)