5
5
.. contents:: List of Releases
11
:Codename: Monkey Magic
12
:2.2b4: NOT RELEASED YET
17
* URLs like ``foo:bar/baz`` are now always parsed as a URL with scheme "foo"
18
and path "bar/baz", even if bzr does not recognize "foo" as a known URL
19
scheme. Previously these URLs would be treated as local paths.
25
* Support ``--directory`` option for a number of additional commands:
26
conflicts, merge-directive, missing, resolve, shelve, switch,
27
unshelve, whoami. (Martin von Gagern, #527878)
32
* ``bzr init`` does not recursively scan directory contents anymore
33
leading to faster init for directories with existing content.
34
(Martin [gz], Parth Malwankar, #501307)
36
* ``bzr log --exclude-common-ancestry`` is now taken into account for
37
linear ancetries. (Vincent Ladeuil, #575631)
39
* ``bzr pull`` now works when a lp: URL is explicitly defined as the parent
40
or pull location in locations.conf or branch.conf.
41
(Gordon Tyler, #534787)
43
* Ensure that wrong path specifications in ``BZR_PLUGINS_AT`` display
44
proper error messages. (Vincent Ladeuil, #591215)
46
* Explicitly removing ``--profile-imports`` option from parsed command-line
47
arguments on Windows, because bzr script does the same.
48
(Alexander Belchenko, #588277)
50
* Fetching was slightly confused about the best code to use and was
51
using a new code path for all branches, resulting in more lookups than
52
necessary on old branches. (Robert Collins, #593515)
54
* Final fix for 'no help for command' issue. We now show a clean message
55
when a command has no help, document how to set help more clearly, and
56
test that all commands available to the test suite have help.
57
(Robert Collins, #177500)
59
* Raise ValueError instead of a string exception.
60
(John Arbash Meinel, #586926)
62
* Relative imports in plugins are now handled correctly when using
63
BZR_PLUGINS_AT. (Vincent Ladeuil, #588959)
65
* ``ScriptRunner`` now strips off leading indentation from test scripts,
66
which previously caused "SyntaxError: No command for line".
69
* Show unicode filenames in diff headers using terminal encoding.
70
(Alexander Belchenko, Bug #382699)
71
NOTE for Windows users: If user need to save diff to file then user need to
72
change encoding of the terminal to ANSI encoding with command ``chcp XXX``
73
(e.g. ``chcp 1251`` for Russian Windows).
75
* URL displayed for use with ``break-lock`` when smart server sees lock
76
contention are now valid. Default timeout for lock contention retry is
77
now 30 seconds instead of 300 seconds.
78
(Parth Malwankar, #250451)
80
* ``walkdirs`` now raises a useful message when the filenames are not using
81
the filesystem encoding. (Eric Moritz, #488519)
83
* Enable debugging of bzr on windows with pdb and other tools. This was
84
broken because we call GetCommandLineW on windows. The fix adjusts the
85
command line we get to be the same length as sys.argv.
86
(Jason Spashett, Alexander Belchenko, #587868)
91
* Bazaar now reads data from SSH connections more efficiently on platforms
92
that provide the ``socketpair`` function, and when using paramiko.
93
(Andrew Bennetts, #590637)
95
* ``Branch.copy_content_into`` is now a convenience method dispatching to
96
a ``InterBranch`` multi-method. This permits ``bzr-loom`` and other
97
plugins to intercept this even when a ``RemoteBranch`` proxy is in use.
98
(Robert Collins, #201613)
100
* Use lazy imports in ``bzrlib/merge.py`` so that plugins like ``news_merge``
101
do not cause modules to be loaded unnecessarily just because the plugin
102
registers a merge hook. This improves ``bzr rocks`` time by about 25%
103
in a default installation (with just the core plugins).
109
* Added ``regression`` tag to our tags list. (Robert Collins)
111
* Improved our release checklist to have a bit less churn and leave things
112
ready-to-go for the next action (including other people doing
113
development). (Robert Collins)
118
* ``bzrlib.branch.InterBranch._get_branch_formats_to_test`` now returns
119
an iterable of format pairs, rather than just a single pair, permitting
120
InterBranch objects that work with multiple permutations to be
121
comprehensively tested. (Robert Collins)
123
* ``bzrlib.knit.KnitSequenceMatcher``, which has been deprecated since
124
2007, has been deleted. Use ``PatienceSequenceMatcher`` from
125
``bzrlib.patiencediff`` instead. (Andrew Bennetts)
127
* ``bzrlib.transport.ssh.SSHVendor.connect_ssh`` now returns an object
128
that implements the interface of ``bzrlib.transport.ssh.SSHConnection``.
129
Third-party implementations of ``SSHVendor`` may need to be updated
130
accordingly. Similarly, any code using ``SSHConnection`` directly will
131
need to be updated. (Andrew Bennetts)
133
* The constructor of ``bzrilb.smart.medium.SmartSSHClientMedium`` has
134
changed to take an ``SSHParams`` instance (replacing many individual
135
values). (Andrew Bennetts)
140
* Improved ``bzrlib.urlutils`` to handle lp:foo/bar URLs. (Gordon Tyler)
11
:2.2b3: NOT RELEASED YET
151
This third beta in the 2.2 series brings with it all the goodness of 2.1.2
152
and 2.0.6 (though it preceeds 2.0.6 slightly). Of particular note for
153
users are compatibility fixes with bzr 1.5 and below servers, a hopeful
154
end to the EINTR errors caused by SIGWINCH interactions, a shiny new
155
bash completion script and bzr will no longer guess at identity details -
156
it was too unreliable in reality. Use ``bzr whoami`` on every new install.
157
For developers we have some API changes which may impact plugins as well
158
as a bunch of our regular improvements to internal clarity and test
13
161
Compatibility Breaks
14
162
********************
164
* An API break has been made to the lock_write method of ``Branch`` and
165
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
166
and ``repository.RepositoryWriteLockResult`` objects. This makes
167
changing the API in future easier and permits some cleaner calling code.
168
The lock_read method has also changed from having no defined return
169
value to returning ``LogicalLockResult`` objects.
172
* ``bzr`` does not try to guess the username as ``username@hostname``
173
and requires it to be explictly set. This can be set using ``bzr
175
(Parth Malwankar, #549310)
177
* ``bzrlib.commands.Command`` will now raise ValueError during
178
construction if there is no __doc__ set. (Note, this will be reverted in
179
2.2b4) (Robert Collins)
181
* The source tree no longer contains a contrib/zsh/_bzr completion
182
script. The new file contrib/zsh/README suggests alternatives.
183
(Martin von Gagern, #560030)
31
200
(Parth Malwankar, #304320)
202
* New command line option ``--authors`` to ``bzr log`` allows users to
203
select which of the apparent authors and committer should be
204
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
206
* Support ``--directory`` option for a number of additional commands:
207
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
208
export, ignore, ignored, lookup-revision, ls, modified, nick,
209
re-sign, unbind, unknowns.
210
(Martin von Gagern, #527878)
212
* The bash_completion plugin from the bzr-bash-completion project has
213
been merged into the tree. It provides a bash-completion command and
214
replaces the outdated ``contrib/bash/bzr`` script with a version
215
using the plugin. (Martin von Gagern, #560030)
217
* A new transport based on GIO (the gnome i/o library) provides access to
218
samba shares, webdav using gio+smb and gio+dav. It is also possible to
219
use gio for some already existing transport methods as gio+file,
226
* Alias information shown by ``bzr help`` is now accurate. This
227
was showing an internal object name for some plugin aliases.
228
(Parth Malwankar, #584650)
36
230
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
37
231
group ownership from the containing directory. This allow bzr to work
39
233
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
235
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
236
support of bzr-externals and scmproj plugins.
237
(Alexander Belchenko, bug #572098)
239
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
240
(Gordon Tyler, #572092)
41
242
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
42
243
are part of Y ancestry but not part of X ancestry (aka the graph
44
245
(Vincent Ladeuil, #320119)
247
* ``bzr lp-propose`` which was switched to use production Launchpad API
248
servers a few commits ago has been reverted to use edge: there is a
249
problem with using production which isn't trivially obvious, so we've
250
filed a bug to track it, and until thats fixed will be using edge.
251
(Robert Collins, #583667)
253
* ``bzr rm`` should not refuse to delete directories which contained a file
254
which has been moved elsewhere in the tree after the previous commit.
255
(Marius Kruger, Daniel Watkins, #129880)
46
257
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
47
258
(Vincent Ladeuil, #566670)
49
260
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
50
261
(Vincent Ladeuil, #563997)
263
* CommitBuilder refuses to create revisions whose trees have no root.
266
* Do not register a SIGWINCH signal handler, instead just poll for the
267
terminal width as needed. This avoids the "Interrupted System Call"
268
problems that occur on POSIX with all currently released versions of
270
(Andrew Bennetts, #583941)
52
272
* Don't mention --no-strict when we just issue the warning about unclean trees.
53
273
(Vincent Ladeuil, #401599)
56
276
versions before 1.6.
57
277
(Andrew Bennetts, #528041)
279
* Improved progress bar for fetch (2a format only). Bazaar now shows an
280
estimate of the number of records to be fetched vs actually fetched.
281
(Parth Malwankar, #374740, #538868)
59
283
* Reduce peak memory by one copy of compressed text.
60
284
(John Arbash Meinel, #566940)
286
* ``RemoteBranch.lock_write`` raises ``ReadOnlyError`` if called during a
287
read lock, rather than causing an ``AttributeError``.
288
(Andrew Bennetts, Данило Шеган, #582781)
290
* Selftest was failing with testtools 0.9.3, which caused an
291
AssertionError raised from a cleanUp to be reported as a Failure, not an
292
Error, breaking on of our test hygiene tests.
293
(Robert Collins, Vincent Ladeuil).
295
* ``set_user_option`` with a dict on remote branches no longer fails with
296
an AttributeError. There is a new ``Branch.set_config_option_dict`` RPC
297
to support this efficiently.
298
(Andrew Bennetts, #430382)
62
300
* Show the filenames when a file rename fails so that the error will be
63
301
more comprehensible.
64
302
(Martin Pool, #491763)
304
* Support Pyrex 0.9.9, required changing how we handle exceptions in Pyrex.
305
(John Arbash Meinel, #582656)
307
* Unicode characters in aliases are now handled correctly and do not cause
308
UnicodeEncodeError exception. (Parth Malwankar, #529930)
310
* Unicode commit messages that are the same as a file name no longer cause
311
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
313
(Parth Malwankar, #563646)
315
* Using bzr with `lp:` urls behind an http proxy should work.
316
(Robert Collins, #558343)
318
* When passing a file to ``UTF8DirReader`` make sure to close the current
319
directory file handle after the chdir fails. Otherwise when passing many
320
filenames into a command line ``bzr status`` we would leak descriptors.
321
(John Arbash Meinel, #583486)
366
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
367
expected to return an object which can be used to unlock them. This reduces
368
duplicate code when using cleanups. The previous 'tokens's returned by
369
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
370
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
371
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
373
* ``Repository.refresh_data`` may now be called in a write group on
374
pack-based repositories. Older repositories will still raise an error
375
in this case. Subclasses of ``Repository`` can still override
376
``Repository._refresh_data``, but are now responsible for raising
377
``bzrlib.repository.IsInWriteGroupError`` if they do not support
378
``refresh_data`` during a write group.
379
(Andrew Bennetts, #574236)
384
* ``chk_map._bytes_to_text_key`` is now an optimized function to extract
385
the (file-id, revision-id) key from a CHKInventory entry. This can
386
potentially shave 5-10% time off during a large fetch. Related to bug
387
#562666. (John Arbash Meinel)
389
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
102
392
* ``_remember_remote_is_before`` no longer raises AssertionError when
103
393
suboptimal network behaviour is noticed; instead it just mutters to the
104
394
log file (and warns the user if they have set the ``hpss`` debug flag).
993
1374
permissions as ``.bzr`` directory on a POSIX OS.
994
1375
(Parth Malwankar, #262450)
1377
* Raise ValueError instead of a string exception.
1378
(John Arbash Meinel, #586926)
1380
* Reduce peak memory by one copy of compressed text.
1381
(John Arbash Meinel, #566940)
996
1383
* Repositories accessed via a smart server now reject being stacked on a
997
1384
repository in an incompatible format, as is the case when accessing them
998
1385
via other methods. This was causing fetches from those repositories via
999
1386
a smart server (e.g. using ``bzr branch``) to receive invalid data.
1000
1387
(Andrew Bennetts, #562380)
1389
* Selftest with versions of subunit that support ``stopTestRun`` will no longer
1390
error. This error was caused by 2.0 not being updated when upstream
1391
python merged the end of run patch, which chose ``stopTestRun`` rather than
1392
``done``. (Robert Collins, #571437)
1394
* When passing a file to ``UTF8DirReader`` make sure to close the current
1395
directory file handle after the chdir fails. Otherwise when passing many
1396
filenames into a command line ``bzr status`` we would leak descriptors.
1397
(John Arbash Meinel, #583486)