5
5
.. contents:: List of Releases
11
:Codename: Monkey Magic
12
:2.2b4: NOT RELEASED YET
17
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
18
the result of ``bzrlib.initialize``. This change was made when fixing
19
the bad habit recent bzr versions have had of leaving progress bars
20
behind on the screen. That required calling another function before
21
exiting the program, and it made sense to provide a full context
22
manager at the same time. (Robert Collins)
24
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
25
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
26
case the default error message not suitable for the use case.
29
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
30
context manager in the Python 2.5 and above sense. The bzrlib base class
31
is such a manager, but third party UI factories which do not derive from
32
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
35
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
36
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
37
scheme. Previously these URLs would be treated as local paths.
44
* Support ``--directory`` option for a number of additional commands:
45
conflicts, merge-directive, missing, resolve, shelve, switch,
46
unshelve, whoami. (Martin von Gagern, #527878)
51
* ``bzr branch`` to a new repository with a default stacking policy no
52
longer transfers the full history unnecessarily.
53
(Andrew Bennetts, #597942)
55
* ``bzr init`` does not recursively scan directory contents anymore
56
leading to faster init for directories with existing content.
57
(Martin [gz], Parth Malwankar, #501307)
59
* ``bzr log --exclude-common-ancestry`` is now taken into account for
60
linear ancetries. (Vincent Ladeuil, #575631)
62
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
63
rather than trying to fetch the data locally and failing because of a
64
readonly error. (Martin von Gagern, #149270)
66
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
67
or pull location in locations.conf or branch.conf.
68
(Gordon Tyler, #534787)
70
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
71
smart server. (Andrew Bennetts, #551525)
73
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
74
(Marius Kruger, Robert Collins)
76
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
77
(Marius Kruger, Robert Collins)
79
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
80
proper error messages. (Vincent Ladeuil, #591215)
82
* Explicitly removing ``--profile-imports`` option from parsed command-line
83
arguments on Windows, because bzr script does the same.
84
(Alexander Belchenko, #588277)
86
* Fetching was slightly confused about the best code to use and was
87
using a new code path for all branches, resulting in more lookups than
88
necessary on old branches. (Robert Collins, #593515)
90
* Final fix for 'no help for command' issue. We now show a clean message
91
when a command has no help, document how to set help more clearly, and
92
test that all commands available to the test suite have help.
93
(Robert Collins, #177500)
95
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
96
``InvalidPattern`` exception showing clear error message to the user.
97
(Parth Malwankar #300062)
99
* Progress bars prefer to truncate the text message rather than the
100
counters. The spinner is shown between the network transfer indicator
101
and the progress message. (Martin Pool)
103
* Progress output is cleaned up when exiting. (Aaron Bentley)
105
* Raise ValueError instead of a string exception.
106
(John Arbash Meinel, #586926)
108
* Relative imports in plugins are now handled correctly when using
109
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
111
* ``ScriptRunner`` now strips off leading indentation from test scripts,
112
which previously caused "SyntaxError: No command for line".
115
* Show unicode filenames in diff headers using terminal encoding.
116
(Alexander Belchenko, Bug #382699)
117
NOTE for Windows users: If user need to save diff to file then user need to
118
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
119
(e.g. ``chcp 1251`` for Russian Windows).
121
* URL displayed for use with ``break-lock`` when smart server sees lock
122
contention are now valid. Default timeout for lock contention retry is
123
now 30 seconds instead of 300 seconds.
124
(Parth Malwankar, #250451)
126
* ``walkdirs`` now raises a useful message when the filenames are not using
127
the filesystem encoding. (Eric Moritz, #488519)
129
* Enable debugging of bzr on windows with pdb and other tools. This was
130
broken because we call GetCommandLineW on windows. The fix adjusts the
131
command line we get to be the same length as sys.argv.
132
(Jason Spashett, Alexander Belchenko, #587868)
137
* Bazaar now reads data from SSH connections more efficiently on platforms
138
that provide the ``socketpair`` function, and when using paramiko.
139
(Andrew Bennetts, #590637)
141
* ``Branch.copy_content_into`` is now a convenience method dispatching to
142
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
143
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
144
(Robert Collins, #201613)
146
* ``Branch`` formats can now be loaded lazily by registering a
147
``MetaDirBranchFormatFactory`` rather than an actual format. This will
148
cause the named format class to be loaded only when an enumeration of
149
formats is needed or when the format string for the object is
150
encountered. (Robert Collins, Jelmer Vernooij)
152
* The encoding that bzr uses to output things other than file content can
153
now be overridden via the output_encoding configuration option.
154
(Martin Pool, #340394)
156
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
157
do not cause modules to be loaded unnecessarily just because the plugin
158
registers a merge hook. This improves ``bzr rocks`` time by about 25%
159
in a default installation (with just the core plugins).
165
* Added ``regression`` tag to our tags list. (Robert Collins)
167
* Improved our release checklist to have a bit less churn and leave things
168
ready-to-go for the next action (including other people doing
169
development). (Robert Collins)
171
* Remove obsolete discussion of PQM in documentation about how to
172
contribute to Bazaar. (Martin Pool, #588444)
177
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
178
an iterable of format pairs, rather than just a single pair, permitting
179
InterBranch objects that work with multiple permutations to be
180
comprehensively tested. (Robert Collins)
182
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
183
profiles when concurrent profile requests are made. Instead the profile
184
requests will be serialised. Reentrant requests will now deadlock.
187
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
188
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
189
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
191
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
192
one method ``check_output``, and we now recommend checking command
193
output using ``run_script``. (Martin Pool)
195
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
196
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
197
Third-party implementations of ``SSHVendor`` may need to be updated
198
accordingly. Similarly, any code using ``SSHConnection`` directly will
199
need to be updated. (Andrew Bennetts)
201
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
202
changed to take an ``SSHParams`` instance (replacing many individual
203
values). (Andrew Bennetts)
208
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
209
selection when explicitly requested; this avoids many duplicate calls
210
being logged when helpers, wrappers and older code that manually calls
211
it are executed it is now logged deliberately by the ui setup code.
214
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
216
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
217
that ``sys.getsizeof`` and other memory analysis tools will report more
218
accurate results. (Andrew Bennetts)
220
* The symbol_versioning module can now cleanup after itself -
221
``suppress_deprecation_warnings`` now returns a cleanup function.
227
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
228
to test. (Martin Pool)
230
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
231
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
238
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
239
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
240
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
241
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
242
bash completion script and bzr will no longer guess at identity details -
243
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
244
For developers we have some API changes which may impact plugins as well
245
as a bunch of our regular improvements to internal clarity and test
13
248
Compatibility Breaks
14
249
********************
251
* An API break has been made to the lock_write method of ``Branch`` and
252
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
253
and ``repository.RepositoryWriteLockResult`` objects. This makes
254
changing the API in future easier and permits some cleaner calling code.
255
The lock_read method has also changed from having no defined return
256
value to returning ``LogicalLockResult`` objects.
259
* ``bzr`` does not try to guess the username as ``username@hostname``
260
and requires it to be explictly set. This can be set using ``bzr
261
whoami``. (Parth Malwankar, #549310)
263
* ``bzrlib.commands.Command`` will now raise ValueError during
264
construction if there is no __doc__ set. (Note, this will be reverted in
265
2.2b4) (Robert Collins)
267
* The source tree no longer contains a contrib/zsh/_bzr completion
268
script. The new file contrib/zsh/README suggests alternatives.
269
(Martin von Gagern, #560030)
31
286
(Parth Malwankar, #304320)
288
* New command line option ``--authors`` to ``bzr log`` allows users to
289
select which of the apparent authors and committer should be
290
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
292
* Support ``--directory`` option for a number of additional commands:
293
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
294
export, ignore, ignored, lookup-revision, ls, modified, nick,
295
re-sign, unbind, unknowns.
296
(Martin von Gagern, #527878)
298
* The bash_completion plugin from the bzr-bash-completion project has
299
been merged into the tree. It provides a bash-completion command and
300
replaces the outdated ``contrib/bash/bzr`` script with a version
301
using the plugin. (Martin von Gagern, #560030)
303
* A new transport based on GIO (the gnome i/o library) provides access to
304
samba shares, webdav using gio+smb and gio+dav. It is also possible to
305
use gio for some already existing transport methods as gio+file,
312
* Alias information shown by ``bzr help`` is now accurate. This
313
was showing an internal object name for some plugin aliases.
314
(Parth Malwankar, #584650)
36
316
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
317
group ownership from the containing directory. This allow bzr to work
39
319
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
321
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
322
support of bzr-externals and scmproj plugins.
323
(Alexander Belchenko, bug #572098)
325
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
326
(Gordon Tyler, #572092)
41
328
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
329
are part of Y ancestry but not part of X ancestry (aka the graph
44
331
(Vincent Ladeuil, #320119)
333
* ``bzr lp-propose`` which was switched to use production Launchpad API
334
servers a few commits ago has been reverted to use edge: there is a
335
problem with using production which isn't trivially obvious, so we've
336
filed a bug to track it, and until thats fixed will be using edge.
337
(Robert Collins, #583667)
339
* ``bzr rm`` should not refuse to delete directories which contained a file
340
which has been moved elsewhere in the tree after the previous commit.
341
(Marius Kruger, Daniel Watkins, #129880)
46
343
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
344
(Vincent Ladeuil, #566670)
49
346
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
347
(Vincent Ladeuil, #563997)
349
* CommitBuilder refuses to create revisions whose trees have no root.
352
* Do not register a SIGWINCH signal handler, instead just poll for the
353
terminal width as needed. This avoids the "Interrupted System Call"
354
problems that occur on POSIX with all currently released versions of
356
(Andrew Bennetts, #583941)
52
358
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
359
(Vincent Ladeuil, #401599)
56
362
versions before 1.6.
57
363
(Andrew Bennetts, #528041)
365
* Improved progress bar for fetch (2a format only). Bazaar now shows an
366
estimate of the number of records to be fetched vs actually fetched.
367
(Parth Malwankar, #374740, #538868)
59
369
* Reduce peak memory by one copy of compressed text.
60
370
(John Arbash Meinel, #566940)
372
* ``RemoteBranch.lock_write`` raises ``ReadOnlyError`` if called during a
373
read lock, rather than causing an ``AttributeError``.
374
(Andrew Bennetts, Данило Шеган, #582781)
376
* Selftest was failing with testtools 0.9.3, which caused an
377
AssertionError raised from a cleanUp to be reported as a Failure, not an
378
Error, breaking on of our test hygiene tests.
379
(Robert Collins, Vincent Ladeuil).
381
* ``set_user_option`` with a dict on remote branches no longer fails with
382
an AttributeError. There is a new ``Branch.set_config_option_dict`` RPC
383
to support this efficiently.
384
(Andrew Bennetts, #430382)
62
386
* Show the filenames when a file rename fails so that the error will be
63
387
more comprehensible.
64
388
(Martin Pool, #491763)
390
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
391
(John Arbash Meinel, #582656)
393
* Unicode characters in aliases are now handled correctly and do not cause
394
UnicodeEncodeError exception. (Parth Malwankar, #529930)
396
* Unicode commit messages that are the same as a file name no longer cause
397
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
399
(Parth Malwankar, #563646)
401
* Using bzr with `lp:` urls behind an http proxy should work.
402
(Robert Collins, #558343)
404
* When passing a file to ``UTF8DirReader`` make sure to close the current
405
directory file handle after the chdir fails. Otherwise when passing many
406
filenames into a command line ``bzr status`` we would leak descriptors.
407
(John Arbash Meinel, #583486)