5
5
.. contents:: List of Releases
12
:2.2rc1: 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
* The old ``bzr selftest --benchmark`` option has been removed.
24
<https://launchpad.net/bzr-usertest> is an actively-maintained
34
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
35
``InvalidPattern`` exception error message now shows faulting
37
(Parth Malwankar #300062)
39
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
40
way which should help avoid problems with concurrent writers.
41
(Vincent Ladeuil, #525571)
43
* Don't traceback trying to unversion children files of an already
44
unversioned directory. (Vincent Ladeuil, #494221)
46
* ``HTTP/1.1` test servers now set a ``Content-Length`` header to comply
47
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
49
* Progress bars prefer to truncate the text message rather than the
50
counters. The spinner is shown between the network transfer indicator
51
and the progress message. (Martin Pool)
53
* Recursive binding for checkouts is now detected by bzr. A clear error
54
message is shown to the user. (Parth Malwankar, #405192)
59
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
60
tree, and works with unrelated branches. (Andrew Bennetts)
62
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
63
GUI with out have a console open in the background.
64
(Gary van der Merwe, #433781)
69
* ``bzr help patterns`` now explains case insensitive patterns and
70
points to Python regular expression documentation.
71
(Parth Malwankar, #594386)
76
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
84
* Unit test added to ensure that "message" is not uses as a format variable
85
name in BzrError subclasses as this conflicts with some Python versions.
86
(Parth Malwankar, #603461)
91
:Codename: Monkey Magic
95
This fourth and final beta in the 2.2 series now stabilizes the internal
96
APIs. Plugin authors are recommended to ensure their releases are
97
compatible, so that 2.2rc1 can be a true release candidate, containing
98
stable and compatible plugin versions.
100
For users of bzrlib as a library, one of the primary changes is to request
101
that they call ``bzrlib.initialize`` and use the returned context manager
104
Better interaction with ``bzr-loom`` to make sure branching from a loom
105
even over a smart server still yields a local loom. Not to mention lots of
111
* bzrlib library users now need to call ``__enter__`` and ``__exit__`` on
112
the result of ``bzrlib.initialize``. This change was made when fixing
113
the bad habit recent bzr versions have had of leaving progress bars
114
behind on the screen. That required calling another function before
115
exiting the program, and it made sense to provide a full context
116
manager at the same time. (Robert Collins)
118
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
119
context manager in the Python 2.5 and above sense. The bzrlib base class
120
is such a manager, but third party UI factories which do not derive from
121
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
124
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
125
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
126
scheme. Previously these URLs would be treated as local paths.
133
* Support ``--directory`` option for a number of additional commands:
134
conflicts, merge-directive, missing, resolve, shelve, switch,
135
unshelve, whoami. (Martin von Gagern, #527878)
140
* ``bzr branch`` to a new repository with a default stacking policy no
141
longer transfers the full history unnecessarily.
142
(Andrew Bennetts, #597942)
144
* ``bzr init`` does not recursively scan directory contents anymore
145
leading to faster init for directories with existing content.
146
(Martin [gz], Parth Malwankar, #501307)
148
* ``bzr log --exclude-common-ancestry`` is now taken into account for
149
linear ancetries. (Vincent Ladeuil, #575631)
151
* ``bzr log -r branch:REMOTE`` can now properly log the remote branch,
152
rather than trying to fetch the data locally and failing because of a
153
readonly error. (Martin von Gagern, #149270)
155
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
156
or pull location in locations.conf or branch.conf.
157
(Gordon Tyler, #534787)
159
* ``bzr reconfigure --unstacked`` now works with branches accessed via a
160
smart server. (Andrew Bennetts, #551525)
162
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
163
(Marius Kruger, Robert Collins)
165
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
166
(Marius Kruger, Robert Collins)
168
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
169
proper error messages. (Vincent Ladeuil, #591215)
171
* Explicitly removing ``--profile-imports`` option from parsed command-line
172
arguments on Windows, because bzr script does the same.
173
(Alexander Belchenko, #588277)
175
* Fetching was slightly confused about the best code to use and was
176
using a new code path for all branches, resulting in more lookups than
177
necessary on old branches. (Robert Collins, #593515)
179
* Final fix for 'no help for command' issue. We now show a clean message
180
when a command has no help, document how to set help more clearly, and
181
test that all commands available to the test suite have help.
182
(Robert Collins, #177500)
184
* Invalid patterns supplied to ``Globster`` or ``lazy_regex`` now raise
185
``InvalidPattern`` exception showing clear error message to the user.
186
(Parth Malwankar #300062)
188
* Progress output is cleaned up when exiting. (Aaron Bentley)
190
* Raise ValueError instead of a string exception.
191
(John Arbash Meinel, #586926)
193
* Relative imports in plugins are now handled correctly when using
194
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
196
* ``ScriptRunner`` now strips off leading indentation from test scripts,
197
which previously caused "SyntaxError: No command for line".
200
* Show unicode filenames in diff headers using terminal encoding.
201
(Alexander Belchenko, Bug #382699)
202
NOTE for Windows users: If user need to save diff to file then user need to
203
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
204
(e.g. ``chcp 1251`` for Russian Windows).
206
* URL displayed for use with ``break-lock`` when smart server sees lock
207
contention are now valid. Default timeout for lock contention retry is
208
now 30 seconds instead of 300 seconds.
209
(Parth Malwankar, #250451)
211
* ``walkdirs`` now raises a useful message when the filenames are not using
212
the filesystem encoding. (Eric Moritz, #488519)
214
* Enable debugging of bzr on windows with pdb and other tools. This was
215
broken because we call GetCommandLineW on windows. The fix adjusts the
216
command line we get to be the same length as sys.argv.
217
(Jason Spashett, Alexander Belchenko, #587868)
222
* Bazaar now reads data from SSH connections more efficiently on platforms
223
that provide the ``socketpair`` function, and when using paramiko.
224
(Andrew Bennetts, #590637)
226
* ``Branch.copy_content_into`` is now a convenience method dispatching to
227
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
228
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
229
(Robert Collins, #201613)
231
* ``Branch`` formats can now be loaded lazily by registering a
232
``MetaDirBranchFormatFactory`` rather than an actual format. This will
233
cause the named format class to be loaded only when an enumeration of
234
formats is needed or when the format string for the object is
235
encountered. (Robert Collins, Jelmer Vernooij)
237
* The encoding that bzr uses to output things other than file content can
238
now be overridden via the output_encoding configuration option.
239
(Martin Pool, #340394)
241
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
242
do not cause modules to be loaded unnecessarily just because the plugin
243
registers a merge hook. This improves ``bzr rocks`` time by about 25%
244
in a default installation (with just the core plugins).
250
* Added ``regression`` tag to our tags list. (Robert Collins)
252
* Improved our release checklist to have a bit less churn and leave things
253
ready-to-go for the next action (including other people doing
254
development). (Robert Collins)
256
* Remove obsolete discussion of PQM in documentation about how to
257
contribute to Bazaar. (Martin Pool, #588444)
262
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
263
an iterable of format pairs, rather than just a single pair, permitting
264
InterBranch objects that work with multiple permutations to be
265
comprehensively tested. (Robert Collins)
267
* ``bzrlib.lsprof.profile`` will no longer silently generate bad threaded
268
profiles when concurrent profile requests are made. Instead the profile
269
requests will be serialised. Reentrant requests will now deadlock.
272
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
273
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
274
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
276
* ``bzrlib.re_compile_checked`` is now deprecated. Caller should handle
277
``bzrlib.errors.InvalidPattern`` exception thrown by ``re.match`` in
278
case the default error message not suitable for the use case.
281
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
282
one method ``check_output``, and we now recommend checking command
283
output using ``run_script``. (Martin Pool)
285
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
286
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
287
Third-party implementations of ``SSHVendor`` may need to be updated
288
accordingly. Similarly, any code using ``SSHConnection`` directly will
289
need to be updated. (Andrew Bennetts)
291
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
292
changed to take an ``SSHParams`` instance (replacing many individual
293
values). (Andrew Bennetts)
298
* ``bzrlib.osutils.get_terminal_encoding`` will now only mutter its
299
selection when explicitly requested; this avoids many duplicate calls
300
being logged when helpers, wrappers and older code that manually calls
301
it are executed it is now logged deliberately by the ui setup code.
304
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
306
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
307
that ``sys.getsizeof`` and other memory analysis tools will report more
308
accurate results. (Andrew Bennetts)
310
* The symbol_versioning module can now cleanup after itself -
311
``suppress_deprecation_warnings`` now returns a cleanup function.
317
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
318
to test. (Martin Pool)
320
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
321
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
328
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
329
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
330
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
331
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
332
bash completion script and bzr will no longer guess at identity details -
333
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
334
For developers we have some API changes which may impact plugins as well
335
as a bunch of our regular improvements to internal clarity and test
13
338
Compatibility Breaks
14
339
********************
341
* An API break has been made to the lock_write method of ``Branch`` and
342
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
343
and ``repository.RepositoryWriteLockResult`` objects. This makes
344
changing the API in future easier and permits some cleaner calling code.
345
The lock_read method has also changed from having no defined return
346
value to returning ``LogicalLockResult`` objects.
349
* ``bzr`` does not try to guess the username as ``username@hostname``
350
and requires it to be explictly set. This can be set using ``bzr
351
whoami``. (Parth Malwankar, #549310)
353
* ``bzrlib.commands.Command`` will now raise ValueError during
354
construction if there is no __doc__ set. (Note, this will be reverted in
355
2.2b4) (Robert Collins)
357
* The source tree no longer contains a contrib/zsh/_bzr completion
358
script. The new file contrib/zsh/README suggests alternatives.
359
(Martin von Gagern, #560030)
31
376
(Parth Malwankar, #304320)
378
* New command line option ``--authors`` to ``bzr log`` allows users to
379
select which of the apparent authors and committer should be
380
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
382
* Support ``--directory`` option for a number of additional commands:
383
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
384
export, ignore, ignored, lookup-revision, ls, modified, nick,
385
re-sign, unbind, unknowns.
386
(Martin von Gagern, #527878)
388
* The bash_completion plugin from the bzr-bash-completion project has
389
been merged into the tree. It provides a bash-completion command and
390
replaces the outdated ``contrib/bash/bzr`` script with a version
391
using the plugin. (Martin von Gagern, #560030)
393
* A new transport based on GIO (the gnome i/o library) provides access to
394
samba shares, webdav using gio+smb and gio+dav. It is also possible to
395
use gio for some already existing transport methods as gio+file,
402
* Alias information shown by ``bzr help`` is now accurate. This
403
was showing an internal object name for some plugin aliases.
404
(Parth Malwankar, #584650)
36
406
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
407
group ownership from the containing directory. This allow bzr to work
39
409
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
411
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
412
support of bzr-externals and scmproj plugins.
413
(Alexander Belchenko, bug #572098)
415
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
416
(Gordon Tyler, #572092)
41
418
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
419
are part of Y ancestry but not part of X ancestry (aka the graph
44
421
(Vincent Ladeuil, #320119)
423
* ``bzr lp-propose`` which was switched to use production Launchpad API
424
servers a few commits ago has been reverted to use edge: there is a
425
problem with using production which isn't trivially obvious, so we've
426
filed a bug to track it, and until thats fixed will be using edge.
427
(Robert Collins, #583667)
429
* ``bzr rm`` should not refuse to delete directories which contained a file
430
which has been moved elsewhere in the tree after the previous commit.
431
(Marius Kruger, Daniel Watkins, #129880)
46
433
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
434
(Vincent Ladeuil, #566670)
49
436
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
437
(Vincent Ladeuil, #563997)
439
* CommitBuilder refuses to create revisions whose trees have no root.
442
* Do not register a SIGWINCH signal handler, instead just poll for the
443
terminal width as needed. This avoids the "Interrupted System Call"
444
problems that occur on POSIX with all currently released versions of
446
(Andrew Bennetts, #583941)
52
448
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
449
(Vincent Ladeuil, #401599)