5
5
.. contents:: List of Releases
11
:2.2b3: NOT RELEASED YET
16
* An API break has been made to the lock_write method of ``Branch`` and
17
``Repository`` objects; they now return ``branch.BranchWriteLockResult``
18
and ``repository.RepositoryWriteLockResult`` objects. This makes
19
changing the API in future easier and permits some cleaner calling code.
20
The lock_read method has also changed from having no defined return
21
value to returning ``LogicalLockResult`` objects.
24
* ``bzr`` does not try to guess the username as ``username@hostname``
25
and requires it to be explictly set. This can be set using ``bzr
27
(Parth Malwankar, #549310)
32
* ``bzr commit`` accepts ``-p`` (for "patch") as a shorter name for
34
(Parth Malwankar, #571467)
36
* ``bzr ignore`` now supports a ``--default-rules`` option that displays
37
the default ignore rules used by bzr. The flag ``--old-default-rules``
38
is no longer supported by ``ignore``.
39
(Parth Malwankar, #538703)
41
* ``bzr pack`` now supports a ``--clean-obsolete-packs`` option that
42
can save disk space by deleting obsolete pack files created during the
44
(Parth Malwankar, #304320)
46
* New command line option ``--authors`` to ``bzr log`` allows users to
47
select which of the apparent authors and committer should be
48
included in the log. Defaults depend on format. (Martin von Gagern, #513322)
50
* Support ``--directory`` option for a number of additional commands:
51
added, annotate, bind, cat, cat-revision, clean-tree, deleted,
52
export, ignore, ignored, lookup-revision, ls, modified, nick,
53
re-sign, unbind, unknowns.
54
(Martin von Gagern, #527878)
59
* ``.bazaar``, ``.bazaar/bazaar.conf`` and ``.bzr.log`` inherit user and
60
group ownership from the containing directory. This allow bzr to work
62
(Martin <gzlist@googlemail.com>, Parth Malwankar, #376388)
64
* ``bzr clean-tree`` should not delete nested bzrdirs. Required for proper
65
support of bzr-externals and scmproj plugins.
66
(Alexander Belchenko, bug #572098)
68
* ``bzr ignore`` will no longer add duplicate patterns to .bzrignore.
69
(Gordon Tyler, #572092)
71
* ``bzr log --exclude-common-ancestry -r X..Y`` displays the revisions that
72
are part of Y ancestry but not part of X ancestry (aka the graph
74
(Vincent Ladeuil, #320119)
76
* ``bzr rm`` should not refuse to delete directories which contained a file
77
which has been moved elsewhere in the tree after the previous commit.
78
(Marius Kruger, Daniel Watkins, #129880)
80
* ``bzr selftest --parallel=fork`` wait for its children avoiding zombies.
81
(Vincent Ladeuil, #566670)
83
* ``bzr selftest`` should not use ui.note() since it's not unicode safe.
84
(Vincent Ladeuil, #563997)
86
* Don't mention --no-strict when we just issue the warning about unclean trees.
87
(Vincent Ladeuil, #401599)
89
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
91
(Andrew Bennetts, #528041)
93
* Heavyweight checkout operation now shows a message to the user indicating
94
history is being copied.
95
(Parth Malwankar, #538868)
97
* Reduce peak memory by one copy of compressed text.
98
(John Arbash Meinel, #566940)
100
* Show the filenames when a file rename fails so that the error will be
102
(Martin Pool, #491763)
104
* Unicode characters in aliases are now handled correctly and do not cause
105
UnicodeEncodeError exception. (Parth Malwankar, #529930)
107
* Unicode commit messages that are the same as a file name no longer cause
108
UnicodeEncodeError. ``ui.text.show_warning`` now handles unicode
110
(Parth Malwankar, #563646)
112
* Using bzr with `lp:` urls behind an http proxy should work.
113
(Robert Collins, #558343)
118
* ``append_revisions_only`` will now be interpreted as a boolean and a
119
warning emitted if illegal values are used. Note that for projects
120
that needs to maintain compatibility with previsous bzr versions,
121
only 'True' and 'False' strings must be used (previous versions of
122
bzr will interpret all strings differing from 'True'
123
(case-sensitive) as false.
124
(Brian de Alwis, Vincent Ladeuil)
126
* ``bzr ls`` now supports short options for existing long options.
127
``-k/--kind``, ``-i/--ignored``, ``-u/--unknown`` and ``-0/--null``.
128
(Parth Malwankar, #181124)
130
* ``Config.get_user_option_as_bool`` will now warn if a value cannot
131
be interpreted as a boolean.
140
* Added ``bzrlib.merge.PerFileMerger``, a more convenient way to write
141
some kinds of ``merge_file_content`` hook functions.
144
* `BzrDir`, `Branch`, `Repository` and `WorkingTree` now all support `user_url`,
145
`user_transport`, `control_url` and `control_transport` members pointing
146
respectively to the directory containing the ``.bzr`` control directory,
147
and to the directory within ``.bzr`` used for the particular component.
148
All of them inherit from `ControlComponent` which provides default
152
* Lock methods on ``Tree``, ``Branch`` and ``Repository`` are now
153
expected to return an object which can be used to unlock them. This reduces
154
duplicate code when using cleanups. The previous 'tokens's returned by
155
``Branch.lock_write`` and ``Repository.lock_write`` are now attributes
156
on the result of the lock_write. ``repository.RepositoryWriteLockResult``
157
and ``branch.BranchWriteLockResult`` document this. (Robert Collins)
159
* ``Repository.refresh_data`` may now be called in a write group on
160
pack-based repositories. Older repositories will still raise an error
161
in this case. Subclasses of ``Repository`` can still override
162
``Repository._refresh_data``, but are now responsible for raising
163
``bzrlib.repository.IsInWriteGroupError`` if they do not support
164
``refresh_data`` during a write group.
165
(Andrew Bennetts, #574236)
170
* ``log._get_info_for_log_files`` now takes an add_cleanup callable.
173
* ``_remember_remote_is_before`` no longer raises AssertionError when
174
suboptimal network behaviour is noticed; instead it just mutters to the
175
log file (and warns the user if they have set the ``hpss`` debug flag).
176
This was causing unnecessary aborts for performance bugs that are minor
178
(Andrew Bennetts, #528041)
180
* Permit bzr to run under ``python -OO`` which reduces the size of bytecode
181
files loaded from disk. To ensure docstrings needed for help are never
182
stripped, the prefix ``__doc__ =`` should now be used.
183
(Martin <gzlist@googlemail.com>)
188
* Added ``bzrlib.tests.matchers`` as a place to put matchers, along with
189
our first in-tree matcher. See the module docstring for details.
192
* ``bzr selftest --parallel=subprocess`` now works correctly on win32.
193
(Gordon Tyler, #551332)
195
* Workaround ``Crypto.Random`` check leading to spurious test
196
failures on Lucid, FreeBSD and gentoo.
197
(Vincent Ladeuil, #528436)
204
This is a somewhat early second beta of the 2.2 series, to fix a python2.4
205
incompatibility in the 2.2b1 release. It also includes a swag of
206
performance, usability and correctness improvements: test feedback on all
207
of these would be welcome.
213
* ``bzr diff`` now supports a --format option, which can be used to
214
select alternative diff formats. (Jelmer Vernooij, #555994)
219
* ``bzr dpush``, ``bzr push`` and ``bzr send`` will now issue a warning
220
instead of failing when dirty trees are involved. The corresponding
221
``dpush_strict``, ``push_strict`` and ``send_strict`` should be set to
222
True explicitly to get the previous behaviour.
223
(Vincent Ladeuil, #519319)
225
* ``bzr export`` to tar file does not fail if any parent directory
226
contains unicode characters. This works around upstream Python bug
227
http://bugs.python.org/issue8396 .
228
(Parth Malwankar, #413406)
230
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
231
(Aaron Bentley, #559436)
233
* ``bzr update`` when a pending merge in the working tree has been merged
234
into the master branch will no longer claim that old commits have become
235
pending merges. (Robert Collins, #562079)
237
* ``bzrlib.mutabletree.MutableTree.commit`` will now support a passed in
238
config as in previous versions of bzrlib. (Robert Collins)
240
* Fix glitch in the warning about unclean trees display.
241
(Vincent Ladeuil, #562665)
243
* Fixed Python2.4 incompatibilities in the bzr2.2b1 source tarball.
246
* Help messages generated by ``RegistryOption.from_kwargs`` list the
247
switches in alphabetical order, rather than in an undefined order.
248
(Martin von Gagern, #559409)
250
* Make sure the ``ExecutablePath`` and ``InterpreterPath`` are set in
251
Apport crash reports, to avoid "This problem report applies to a program
252
which is not installed any more" error.
253
(Martin Pool, James Westby, #528114)
255
* Reset ``siginterrupt`` flag to False every time we handle a signal
256
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
257
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
258
errors after two window resizes.
261
* When invoked with a range revision, ``bzr log`` doesn't show revisions
262
that are not part of the Y revisions ancestry anymore when invoked with
264
(Vincent Ladeuil, #474807)
266
* Properly handle ``param_name`` attribute for ``ListOption``.
267
(Martin von Gagern, 387117)
272
* ``bzr commit`` will prompt before using a commit message that was
273
generated by a template and not edited by the user.
274
(Robert Collins, #530265)
276
* ``bzr diff`` read-locks the trees and branches only once, saving about
277
10-20ms on ``bzr diff`` in a bzr.dev tree.
280
* ``bzr missing`` read-locks the branches only once.
283
* ``bzr pull`` locks the branches and tree only once.
286
* Index lookups in pack repositories search recently hit pack files first.
287
In repositories with many pack files this can greatly reduce the
288
number of files accessed, the number of bytes read, and the number of
289
read calls. An incremental pull via plain HTTP takes half the time and
290
bytes for a moderately large repository. (Andrew Bennetts)
292
* Index lookups only re-order the indexes when the hit files aren't
293
already first. Reduces the cost of reordering
294
(John Arbash Meinel, #562429)
296
* Less code is loaded at startup. (Cold-cache start time is about 10-20%
298
(Martin Pool, #553017)
303
* ``bzrlib.diff.get_trees_and_branches_to_diff`` is deprecated. Use
304
``get_trees_and_branches_to_diff_locked`` instead.
307
* ``TreeTransform.commit`` supports the full set of commit parameters, and
308
auto-determines branch nick if not supplied. (Aaron Bentley)
313
* ``bzrlib.commands.Command.run_direct`` is no longer needed - the pre
314
2.1 method of calling run() to perform testing or direct use via the API
315
is now possible again. As part of this, the _operation attribute on
316
Command is now transient and only exists for the duration of ``run()``.
12
:2.2.0b1: Not released yet
324
14
Compatibility Breaks
325
15
********************
327
* BTreeGraphIndex can now take an offset to indicate that the data starts
328
somewhere other than then beginning of the file. (John Arbash Meinel)
330
17
* Deleted very old hidden commands ``versionedfile-list``,
331
18
``weave-plan-merge``, ``weave-merge-text``.
579
157
* Documentation about testing with ``subunit`` has been tweaked.
582
* Known failures has been added for resolve --take-other on ParentLoop
583
conflicts. This reflects bug #537956 without fixing it.
586
160
* New ``bzrlib.tests.test_import_tariff`` can make assertions about what
587
161
Python modules are loaded, to guard against startup time or library
588
162
dependency regressions.
591
* PQM will now run with subunit output. To analyze a PQM error use
592
tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
594
165
* Stop sending apport crash files to ``.cache`` in the directory from
595
166
which ``bzr selftest`` was run. (Martin Pool, #422350)
597
* Tests no longer fail if "close() called during concurrent
598
operation on the same file object" occurs when closing the log file
599
(which can happen if a thread tries to write to the log file at the
600
wrong moment). An warning will be written to ``stderr`` when this
601
happens, and another warning will be written if the log file could not
602
be closed after retrying 100 times. (Andrew Bennetts, #531746)
607
:2.1.2: NOT RELEASED YET
612
* ``bzr switch`` does not die if a ConfigurableFileMerger is used.
613
(Aaron Bentley, #559436)
615
* Fixed ``AssertionError`` when accessing smart servers running Bazaar
617
(Andrew Bennetts, #528041)
619
* Reset ``siginterrupt`` flag to False every time we handle a signal
620
installed with ``set_signal_handler(..., restart_syscall=True)`` (from
621
``bzrlib.osutils``. Reduces the likelihood of "Interrupted System Call"
622
errors after two window resizes.
628
* ``_remember_remote_is_before`` no longer raises AssertionError when
629
suboptimal network behaviour is noticed; instead it just mutters to the
630
log file (and warns the user if they have set the ``hpss`` debug flag).
631
This was causing unnecessary aborts for performance bugs that are minor
633
(Andrew Bennetts, #528041)
641
This is a small bugfix release. Upgrading is recommended for anyone
642
running 2.1.0 or earlier.
171
:2.1.1: not released yet
647
* Allow syscalls to automatically restart when ``TextUIFactory``'s
648
SIGWINCH handler is invoked, avoiding ``EINTR`` errors during blocking
649
IO, which are often poorly handled by Python's libraries and parts of
650
bzrlib. (Andrew Bennetts, #496813)
652
* Avoid ``malloc(0)`` in ``patiencediff``, which is non-portable.
653
(Martin Pool, #331095)
655
* Fix plugin packaging on Windows. (Ian Clatworthy, #524162)
657
* Fix stub sftp test server to call os.getcwdu().
658
(Vincent Ladeuil, #526221, #526353)
660
* Fixed CHM generation by moving the NEWS section template into
661
a separate file. (Ian Clatworthy, #524184)
663
176
* Merge correctly when this_tree is not a WorkingTree. (Aaron Bentley)
665
178
* Register SIGWINCH handler only when creating a ``TextUIFactory``; avoids
666
179
problems importing bzrlib from a non-main thread.
667
180
(Elliot Murphy, #521989)
669
* Repositories accessed via a smart server now reject being stacked on a
670
repository in an incompatible format, as is the case when accessing them
671
via other methods. This was causing fetches from those repositories via
672
a smart server (e.g. using ``bzr branch``) to receive invalid data.
673
(Andrew Bennetts, #562380)
675
182
* Standardize the error handling when creating a new ``StaticTuple``
676
183
(problems will raise TypeError). (Matt Nordhoff, #457979)