5
5
.. contents:: List of Releases
12
:2.3b1: NOT RELEASED YET
17
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
21
* `tree_files` and `internal_tree_files` are now deprecated in favor of
22
`WorkingTree.open_containing_paths`.
31
* Check if both --diff-options and --using are set, and exit with error
32
in this case. (Matthäus G. Chajdas, #234708)
34
* Don't print internal object name when print an invalid revision spec
35
error. (Neil Martinsen-Burrell, #598701)
37
* ``HTTP/1.1` test servers now set a ``Content-Length`` header to comply
38
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
40
* `PathNotChild` should not give a traceback.
43
* ``Transport.stat`` on a symlink, including a transport pointing directly
44
to a symlink, now returns information about the symlink.
67
:2.2rc1: NOT RELEASED YET
78
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
79
way which should help avoid problems with concurrent writers.
80
(Vincent Ladeuil, #525571)
82
* Don't traceback trying to unversion children files of an already
83
unversioned directory. (Vincent Ladeuil, #494221)
104
:Codename: Monkey Magic
108
This fourth and final beta in the 2.2 series now stabilizes the internal
109
APIs. Plugin authors are recommended to ensure their releases are
110
compatible, so that 2.2rc1 can be a true release candidate, containing
111
stable and compatible plugin versions.
113
For users of bzrlib as a library, one of the primary changes is to request
114
that they call ``bzrlib.initialize`` and use the returned context manager
117
Better interaction with ``bzr-loom`` to make sure branching from a loom
118
even over a smart server still yields a local loom. Not to mention lots of
124
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
125
the result of ``bzrlib.initialize``. This change was made when fixing
126
the bad habit recent bzr versions have had of leaving progress bars
127
behind on the screen. That required calling another function before
128
exiting the program, and it made sense to provide a full context
129
manager at the same time. (Robert Collins)
131
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
132
context manager in the Python 2.5 and above sense. The bzrlib base class
133
is such a manager, but third party UI factories which do not derive from
134
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
137
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
138
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
139
scheme. Previously these URLs would be treated as local paths.
146
* Support ``--directory`` option for a number of additional commands:
147
conflicts, merge-directive, missing, resolve, shelve, switch,
148
unshelve, whoami. (Martin von Gagern, #527878)
153
* ``bzr branch`` to a new repository with a default stacking policy no
154
longer transfers the full history unnecessarily.
155
(Andrew Bennetts, #597942)
157
* ``bzr init`` does not recursively scan directory contents anymore
158
leading to faster init for directories with existing content.
159
(Martin [gz], Parth Malwankar, #501307)
161
* ``bzr log --exclude-common-ancestry`` is now taken into account for
162
linear ancetries. (Vincent Ladeuil, #575631)
164
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
165
rather than trying to fetch the data locally and failing because of a
166
readonly error. (Martin von Gagern, #149270)
168
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
169
or pull location in locations.conf or branch.conf.
170
(Gordon Tyler, #534787)
172
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
173
smart server. (Andrew Bennetts, #551525)
175
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
176
(Marius Kruger, Robert Collins)
178
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
179
(Marius Kruger, Robert Collins)
181
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
182
proper error messages. (Vincent Ladeuil, #591215)
184
* Explicitly removing ``--profile-imports`` option from parsed command-line
185
arguments on Windows, because bzr script does the same.
186
(Alexander Belchenko, #588277)
188
* Fetching was slightly confused about the best code to use and was
189
using a new code path for all branches, resulting in more lookups than
190
necessary on old branches. (Robert Collins, #593515)
192
* Final fix for 'no help for command' issue. We now show a clean message
193
when a command has no help, document how to set help more clearly, and
194
test that all commands available to the test suite have help.
195
(Robert Collins, #177500)
197
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
198
``InvalidPattern`` exception showing clear error message to the user.
199
(Parth Malwankar #300062)
201
* Progress output is cleaned up when exiting. (Aaron Bentley)
203
* Raise ValueError instead of a string exception.
204
(John Arbash Meinel, #586926)
206
* Relative imports in plugins are now handled correctly when using
207
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
209
* ``ScriptRunner`` now strips off leading indentation from test scripts,
210
which previously caused "SyntaxError: No command for line".
213
* Show unicode filenames in diff headers using terminal encoding.
214
(Alexander Belchenko, Bug #382699)
215
NOTE for Windows users: If user need to save diff to file then user need to
216
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
217
(e.g. ``chcp 1251`` for Russian Windows).
219
* URL displayed for use with ``break-lock`` when smart server sees lock
220
contention are now valid. Default timeout for lock contention retry is
221
now 30 seconds instead of 300 seconds.
222
(Parth Malwankar, #250451)
224
* ``walkdirs`` now raises a useful message when the filenames are not using
225
the filesystem encoding. (Eric Moritz, #488519)
227
* Enable debugging of bzr on windows with pdb and other tools. This was
228
broken because we call GetCommandLineW on windows. The fix adjusts the
229
command line we get to be the same length as sys.argv.
230
(Jason Spashett, Alexander Belchenko, #587868)
235
* Bazaar now reads data from SSH connections more efficiently on platforms
236
that provide the ``socketpair`` function, and when using paramiko.
237
(Andrew Bennetts, #590637)
239
* ``Branch.copy_content_into`` is now a convenience method dispatching to
240
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
241
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
242
(Robert Collins, #201613)
244
* ``Branch`` formats can now be loaded lazily by registering a
245
``MetaDirBranchFormatFactory`` rather than an actual format. This will
246
cause the named format class to be loaded only when an enumeration of
247
formats is needed or when the format string for the object is
248
encountered. (Robert Collins, Jelmer Vernooij)
250
* The encoding that bzr uses to output things other than file content can
251
now be overridden via the output_encoding configuration option.
252
(Martin Pool, #340394)
254
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
255
do not cause modules to be loaded unnecessarily just because the plugin
256
registers a merge hook. This improves ``bzr rocks`` time by about 25%
257
in a default installation (with just the core plugins).
263
* Added ``regression`` tag to our tags list. (Robert Collins)
265
* Improved our release checklist to have a bit less churn and leave things
266
ready-to-go for the next action (including other people doing
267
development). (Robert Collins)
269
* Remove obsolete discussion of PQM in documentation about how to
270
contribute to Bazaar. (Martin Pool, #588444)
275
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
276
an iterable of format pairs, rather than just a single pair, permitting
277
InterBranch objects that work with multiple permutations to be
278
comprehensively tested. (Robert Collins)
280
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
281
profiles when concurrent profile requests are made. Instead the profile
282
requests will be serialised. Reentrant requests will now deadlock.
285
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
286
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
287
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
289
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
290
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
291
case the default error message not suitable for the use case.
294
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
295
one method ``check_output``, and we now recommend checking command
296
output using ``run_script``. (Martin Pool)
298
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
299
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
300
Third-party implementations of ``SSHVendor`` may need to be updated
301
accordingly. Similarly, any code using ``SSHConnection`` directly will
302
need to be updated. (Andrew Bennetts)
304
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
305
changed to take an ``SSHParams`` instance (replacing many individual
306
values). (Andrew Bennetts)
311
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
312
selection when explicitly requested; this avoids many duplicate calls
313
being logged when helpers, wrappers and older code that manually calls
314
it are executed it is now logged deliberately by the ui setup code.
317
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
319
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
320
that ``sys.getsizeof`` and other memory analysis tools will report more
321
accurate results. (Andrew Bennetts)
323
* The symbol_versioning module can now cleanup after itself -
324
``suppress_deprecation_warnings`` now returns a cleanup function.
330
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
331
to test. (Martin Pool)
333
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
334
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
341
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
342
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
343
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
344
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
345
bash completion script and bzr will no longer guess at identity details -
346
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
347
For developers we have some API changes which may impact plugins as well
348
as a bunch of our regular improvements to internal clarity and test
13
351
Compatibility Breaks
14
352
********************
354
* An API break has been made to the lock_write method of ``Branch`` and
355
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
356
and ``repository.RepositoryWriteLockResult`` objects. This makes
357
changing the API in future easier and permits some cleaner calling code.
358
The lock_read method has also changed from having no defined return
359
value to returning ``LogicalLockResult`` objects.
362
* ``bzr`` does not try to guess the username as ``username@hostname``
363
and requires it to be explictly set. This can be set using ``bzr
364
whoami``. (Parth Malwankar, #549310)
366
* ``bzrlib.commands.Command`` will now raise ValueError during
367
construction if there is no __doc__ set. (Note, this will be reverted in
368
2.2b4) (Robert Collins)
370
* The source tree no longer contains a contrib/zsh/_bzr completion
371
script. The new file contrib/zsh/README suggests alternatives.
372
(Martin von Gagern, #560030)
31
389
(Parth Malwankar, #304320)
391
* New command line option ``--authors`` to ``bzr log`` allows users to
392
select which of the apparent authors and committer should be
393
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
395
* Support ``--directory`` option for a number of additional commands:
396
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
397
export, ignore, ignored, lookup-revision, ls, modified, nick,
398
re-sign, unbind, unknowns.
399
(Martin von Gagern, #527878)
401
* The bash_completion plugin from the bzr-bash-completion project has
402
been merged into the tree. It provides a bash-completion command and
403
replaces the outdated ``contrib/bash/bzr`` script with a version
404
using the plugin. (Martin von Gagern, #560030)
406
* A new transport based on GIO (the gnome i/o library) provides access to
407
samba shares, webdav using gio+smb and gio+dav. It is also possible to
408
use gio for some already existing transport methods as gio+file,
415
* Alias information shown by ``bzr help`` is now accurate. This
416
was showing an internal object name for some plugin aliases.
417
(Parth Malwankar, #584650)
36
419
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
420
group ownership from the containing directory. This allow bzr to work
39
422
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
424
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
425
support of bzr-externals and scmproj plugins.
426
(Alexander Belchenko, bug #572098)
428
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
429
(Gordon Tyler, #572092)
41
431
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
432
are part of Y ancestry but not part of X ancestry (aka the graph
44
434
(Vincent Ladeuil, #320119)
436
* ``bzr lp-propose`` which was switched to use production Launchpad API
437
servers a few commits ago has been reverted to use edge: there is a
438
problem with using production which isn't trivially obvious, so we've
439
filed a bug to track it, and until thats fixed will be using edge.
440
(Robert Collins, #583667)
442
* ``bzr rm`` should not refuse to delete directories which contained a file
443
which has been moved elsewhere in the tree after the previous commit.
444
(Marius Kruger, Daniel Watkins, #129880)
46
446
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
447
(Vincent Ladeuil, #566670)
49
449
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
450
(Vincent Ladeuil, #563997)
452
* CommitBuilder refuses to create revisions whose trees have no root.
455
* Do not register a SIGWINCH signal handler, instead just poll for the
456
terminal width as needed. This avoids the "Interrupted System Call"
457
problems that occur on POSIX with all currently released versions of
459
(Andrew Bennetts, #583941)
52
461
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
462
(Vincent Ladeuil, #401599)