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
* The ``bzr`` front end now requires a ``bzrlib.ui.ui_factory`` which is a
25
context manager in the Python 2.5 and above sense. The bzrlib base class
26
is such a manager, but third party UI factories which do not derive from
27
``bzrlib.ui.UIFactory`` will be incompatible with the command line front
30
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
31
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
32
scheme. Previously these URLs would be treated as local paths.
39
* Support ``--directory`` option for a number of additional commands:
40
conflicts, merge-directive, missing, resolve, shelve, switch,
41
unshelve, whoami. (Martin von Gagern, #527878)
46
* ``bzr branch`` to a new repository with a default stacking policy no
47
longer transfers the full history unnecessarily.
48
(Andrew Bennetts, #597942)
50
* ``bzr init`` does not recursively scan directory contents anymore
51
leading to faster init for directories with existing content.
52
(Martin [gz], Parth Malwankar, #501307)
54
* ``bzr log --exclude-common-ancestry`` is now taken into account for
55
linear ancetries. (Vincent Ladeuil, #575631)
57
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
58
or pull location in locations.conf or branch.conf.
59
(Gordon Tyler, #534787)
61
* ``BzrDir.find_branches`` should ignore branches with missing repositories.
62
(Marius Kruger, Robert Collins)
64
* ``BzrDir.find_bzrdirs`` should ignore dirs that raises PermissionDenied.
65
(Marius Kruger, Robert Collins)
67
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
68
proper error messages. (Vincent Ladeuil, #591215)
70
* Explicitly removing ``--profile-imports`` option from parsed command-line
71
arguments on Windows, because bzr script does the same.
72
(Alexander Belchenko, #588277)
74
* Fetching was slightly confused about the best code to use and was
75
using a new code path for all branches, resulting in more lookups than
76
necessary on old branches. (Robert Collins, #593515)
78
* Final fix for 'no help for command' issue. We now show a clean message
79
when a command has no help, document how to set help more clearly, and
80
test that all commands available to the test suite have help.
81
(Robert Collins, #177500)
83
* Progress output is cleaned up when exiting. (Aaron Bentley)
85
* Raise ValueError instead of a string exception.
86
(John Arbash Meinel, #586926)
88
* Relative imports in plugins are now handled correctly when using
89
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
91
* ``ScriptRunner`` now strips off leading indentation from test scripts,
92
which previously caused "SyntaxError: No command for line".
95
* Show unicode filenames in diff headers using terminal encoding.
96
(Alexander Belchenko, Bug #382699)
97
NOTE for Windows users: If user need to save diff to file then user need to
98
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
99
(e.g. ``chcp 1251`` for Russian Windows).
101
* URL displayed for use with ``break-lock`` when smart server sees lock
102
contention are now valid. Default timeout for lock contention retry is
103
now 30 seconds instead of 300 seconds.
104
(Parth Malwankar, #250451)
106
* ``walkdirs`` now raises a useful message when the filenames are not using
107
the filesystem encoding. (Eric Moritz, #488519)
109
* Enable debugging of bzr on windows with pdb and other tools. This was
110
broken because we call GetCommandLineW on windows. The fix adjusts the
111
command line we get to be the same length as sys.argv.
112
(Jason Spashett, Alexander Belchenko, #587868)
117
* Bazaar now reads data from SSH connections more efficiently on platforms
118
that provide the ``socketpair`` function, and when using paramiko.
119
(Andrew Bennetts, #590637)
121
* ``Branch.copy_content_into`` is now a convenience method dispatching to
122
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
123
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
124
(Robert Collins, #201613)
126
* ``Branch`` formats can now be loaded lazily by registering a
127
``MetaDirBranchFormatFactory`` rather than an actual format. This will
128
cause the named format class to be loaded only when an enumeration of
129
formats is needed or when the format string for the object is
130
encountered. (Robert Collins, Jelmer Vernooij)
132
* The encoding that bzr uses to output things other than file content can
133
now be overridden via the output_encoding configuration option.
134
(Martin Pool, #340394)
136
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
137
do not cause modules to be loaded unnecessarily just because the plugin
138
registers a merge hook. This improves ``bzr rocks`` time by about 25%
139
in a default installation (with just the core plugins).
145
* Added ``regression`` tag to our tags list. (Robert Collins)
147
* Improved our release checklist to have a bit less churn and leave things
148
ready-to-go for the next action (including other people doing
149
development). (Robert Collins)
151
* Remove obsolete discussion of PQM in documentation about how to
152
contribute to Bazaar. (Martin Pool, #588444)
157
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
158
an iterable of format pairs, rather than just a single pair, permitting
159
InterBranch objects that work with multiple permutations to be
160
comprehensively tested. (Robert Collins)
162
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
163
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
164
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
166
* ``bzrlib.tests.blackbox.ExternalBase`` is deprecated. It provided only
167
one method ``check_output``, and we now recommend checking command
168
output using ``run_script``. (Martin Pool)
170
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
171
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
172
Third-party implementations of ``SSHVendor`` may need to be updated
173
accordingly. Similarly, any code using ``SSHConnection`` directly will
174
need to be updated. (Andrew Bennetts)
176
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
177
changed to take an ``SSHParams`` instance (replacing many individual
178
values). (Andrew Bennetts)
183
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
185
* ``bzrlib._c_static_tuple.StaticTuple`` now implements ``__sizeof__``, so
186
that ``sys.getsizeof`` and other memory analysis tools will report more
187
accurate results. (Andrew Bennetts)
192
* Add ``bzrlib.tests.fixtures`` to hold code for setting up objects
193
to test. (Martin Pool)
195
* ``test_import_tariff`` now respects BZR_PLUGINS_AT and BZR_PLUGINS_DISABLE.
196
(Vincent Ladeuil, #595587)
11
:2.2b3: NOT RELEASED YET
203
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
204
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
205
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
206
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
207
bash completion script and bzr will no longer guess at identity details -
208
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
209
For developers we have some API changes which may impact plugins as well
210
as a bunch of our regular improvements to internal clarity and test
13
213
Compatibility Breaks
14
214
********************
216
* An API break has been made to the lock_write method of ``Branch`` and
217
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
218
and ``repository.RepositoryWriteLockResult`` objects. This makes
219
changing the API in future easier and permits some cleaner calling code.
220
The lock_read method has also changed from having no defined return
221
value to returning ``LogicalLockResult`` objects.
224
* ``bzr`` does not try to guess the username as ``username@hostname``
225
and requires it to be explictly set. This can be set using ``bzr
226
whoami``. (Parth Malwankar, #549310)
228
* ``bzrlib.commands.Command`` will now raise ValueError during
229
construction if there is no __doc__ set. (Note, this will be reverted in
230
2.2b4) (Robert Collins)
232
* The source tree no longer contains a contrib/zsh/_bzr completion
233
script. The new file contrib/zsh/README suggests alternatives.
234
(Martin von Gagern, #560030)
31
251
(Parth Malwankar, #304320)
253
* New command line option ``--authors`` to ``bzr log`` allows users to
254
select which of the apparent authors and committer should be
255
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
257
* Support ``--directory`` option for a number of additional commands:
258
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
259
export, ignore, ignored, lookup-revision, ls, modified, nick,
260
re-sign, unbind, unknowns.
261
(Martin von Gagern, #527878)
263
* The bash_completion plugin from the bzr-bash-completion project has
264
been merged into the tree. It provides a bash-completion command and
265
replaces the outdated ``contrib/bash/bzr`` script with a version
266
using the plugin. (Martin von Gagern, #560030)
268
* A new transport based on GIO (the gnome i/o library) provides access to
269
samba shares, webdav using gio+smb and gio+dav. It is also possible to
270
use gio for some already existing transport methods as gio+file,
277
* Alias information shown by ``bzr help`` is now accurate. This
278
was showing an internal object name for some plugin aliases.
279
(Parth Malwankar, #584650)
36
281
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
282
group ownership from the containing directory. This allow bzr to work
39
284
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
286
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
287
support of bzr-externals and scmproj plugins.
288
(Alexander Belchenko, bug #572098)
290
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
291
(Gordon Tyler, #572092)
41
293
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
294
are part of Y ancestry but not part of X ancestry (aka the graph
44
296
(Vincent Ladeuil, #320119)
298
* ``bzr lp-propose`` which was switched to use production Launchpad API
299
servers a few commits ago has been reverted to use edge: there is a
300
problem with using production which isn't trivially obvious, so we've
301
filed a bug to track it, and until thats fixed will be using edge.
302
(Robert Collins, #583667)
304
* ``bzr rm`` should not refuse to delete directories which contained a file
305
which has been moved elsewhere in the tree after the previous commit.
306
(Marius Kruger, Daniel Watkins, #129880)
46
308
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
309
(Vincent Ladeuil, #566670)
49
311
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
312
(Vincent Ladeuil, #563997)
314
* CommitBuilder refuses to create revisions whose trees have no root.
317
* Do not register a SIGWINCH signal handler, instead just poll for the
318
terminal width as needed. This avoids the "Interrupted System Call"
319
problems that occur on POSIX with all currently released versions of
321
(Andrew Bennetts, #583941)
52
323
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
324
(Vincent Ladeuil, #401599)
56
327
versions before 1.6.
57
328
(Andrew Bennetts, #528041)
330
* Improved progress bar for fetch (2a format only). Bazaar now shows an
331
estimate of the number of records to be fetched vs actually fetched.
332
(Parth Malwankar, #374740, #538868)
59
334
* Reduce peak memory by one copy of compressed text.
60
335
(John Arbash Meinel, #566940)
337
* ``RemoteBranch.lock_write`` raises ``ReadOnlyError`` if called during a
338
read lock, rather than causing an ``AttributeError``.
339
(Andrew Bennetts, Данило Шеган, #582781)
341
* Selftest was failing with testtools 0.9.3, which caused an
342
AssertionError raised from a cleanUp to be reported as a Failure, not an
343
Error, breaking on of our test hygiene tests.
344
(Robert Collins, Vincent Ladeuil).
346
* ``set_user_option`` with a dict on remote branches no longer fails with
347
an AttributeError. There is a new ``Branch.set_config_option_dict`` RPC
348
to support this efficiently.
349
(Andrew Bennetts, #430382)
62
351
* Show the filenames when a file rename fails so that the error will be
63
352
more comprehensible.
64
353
(Martin Pool, #491763)
355
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
356
(John Arbash Meinel, #582656)
358
* Unicode characters in aliases are now handled correctly and do not cause
359
UnicodeEncodeError exception. (Parth Malwankar, #529930)
361
* Unicode commit messages that are the same as a file name no longer cause
362
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
364
(Parth Malwankar, #563646)
366
* Using bzr with `lp:` urls behind an http proxy should work.
367
(Robert Collins, #558343)
369
* When passing a file to ``UTF8DirReader`` make sure to close the current
370
directory file handle after the chdir fails. Otherwise when passing many
371
filenames into a command line ``bzr status`` we would leak descriptors.
372
(John Arbash Meinel, #583486)