14
14
Compatibility Breaks
15
15
********************
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
* `decode` parameter to get() method in FtpTransport and GioTransport classes
24
is deprecated. (Alexander Belchenko)
26
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
30
* `tree_files` and `internal_tree_files` are now deprecated in favor of
31
`WorkingTree.open_containing_paths`.
34
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
35
and `BzrDir`, respectively. `ControlDirFormat`
36
and `ControlDir` should be used as the base classes for new non-.bzr
39
`BzrDirFormat.register_control_format` has been renamed to
40
`ControlDirFormat.register_format`.
42
`BzrDirFormat.register_server_control_format` has been removed.
44
Probing for control directories is now done by separate objects derived
45
from `bzrlib.controldir.Prober` and registered using
46
`bzrlib.controldir.ControlDirFormat.register_prober` or
47
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
48
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
50
`BzrDirFormat.register_format` has been renamed to
51
`BzrProber.register_bzrdir_format`.
54
* The old ``bzr selftest --benchmark`` option has been removed.
55
<https://launchpad.net/bzr-usertest> is an actively-maintained
62
* ``bzr break-lock --config [location]`` can now break config files
63
locks. (Vincent Ladeuil, #525571)
65
* ``bzrlib.config.LockableConfig`` is a base class for config files that
66
needs to be protected against multiple writers. All methods that
67
change a configuration variable value must be decorated with
68
@needs_write_lock (set_option() for example).
69
(Vincent Ladeuil, #525571)
71
* The ``lp:`` prefix will now use your known username (from
72
``bzr launchpad-login``) to expand ``~`` to your username. For example:
73
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
74
push to ``lp:~user/project/branch``. (John Arbash Meinel)
79
* Allow using both --using and --diff-options.
80
(Matthäus G. Chajdas, #234708)
82
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
83
previously-unversioned directory within the tree: the directory is
85
(Martin Pool, #192859)
87
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
88
``InvalidPattern`` exception error message now shows faulting
90
(Parth Malwankar #300062)
92
* ``clean-tree`` issues a warning if it is unable to delete a file
93
due to ``errno.EACCES`` instead of exiting with an error on Windows.
94
(Parth Malwankar, #430785)
96
* CommitBuilder now uses the committer instead of _config.username to generate
97
the revision-id. (Aaron Bentley, #614404)
99
* Configuration files in ``${BZR_HOME}`` are now protected against
100
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
102
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
103
Directory created' when mkdir succeeds. (Martin Pool, #224373)
105
* Decrease peak memory during ``bzr send``. The old code was caching all
106
text content and all inventory strings for all revisions before
107
computing the diffs. Now we only cache as long as there is a child that
108
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
109
256MB peak. (John Arbash Meinel, #614576)
111
* Don't print internal object name when print an invalid revision spec
112
error. (Neil Martinsen-Burrell, #598701)
114
* ``EPIPE`` can be raised during test server shutdown. This happened on
115
gentoo only so far. (Vincent Ladeuil, #627277)
117
* Errors occurring during http(s) test server starts should now be
118
handled cleanly. (Vincent Ladeuil, #392402)
120
* Fix ``AttributeError on parent.children`` when adding a file under a
121
directory that was a symlink in the previous commit.
122
(Martin Pool, #192859)
124
* Fix spurious paramiko warning on hardy by ensuring that ``selftest``
125
properly remove its warning filter. (Vincent Ladeuil, #625686)
127
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
128
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
130
* Most of the leaked threads during selftest are now fixed, allowing the
131
full test suite to pass on gentoo.
132
(Vincent Ladeuil, #392127)
134
* `PathNotChild` should not give a traceback.
135
(Martin Pool, #98735)
137
* ``PQM`` will no longer ignore syntax errors in submissions.
138
(Vincent Ladeuil, #626667)
140
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
141
which can result in "missing referenced chk root keys" errors when
142
fetching from repositories with affected revisions.
143
(Andrew Bennetts, #522637)
145
* ``Transport.stat`` on a symlink, including a transport pointing directly
146
to a symlink, now returns information about the symlink.
152
* ``bzr remove`` now just backs up changed files instead of exiting,
153
forcing you to choose to either keep or delete them. Bazaar will now delete
154
the files if they can easily be recovered using revert, otherwise they
155
will be backed up (adding an extention of the form .~#~).
156
(Marius Kruger, #400554)
158
* ``bzr revert`` and ``bzr status`` are up to 15% faster on large trees
159
with many changes by not repeatedly building a list of all file-ids.
162
* Decrease memory consumption when many chk index pages are loaded. (Such
163
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
164
read many chk pages because the individual chk map nodes will be spread
165
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
166
down to 247MB, expect even more significant savings on 64-bit platforms.
169
* ``DirState`` internals use a little bit less memory. For bzr.dev it
170
drops the memory from 1MB down to about 800kB. And replaces a few
171
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
173
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
174
have dropped from 68 bytes to 40, and directory entries from 120 bytes
175
to 48). (Andrew Bennetts)
177
* When building new working trees, default to reading from the repository
178
rather than the source tree unless explicitly requested. (via
179
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
180
``bzr checkout``. Generally, 2a format repositories extract
181
content faster than seeking and reading content from another tree,
182
especially in cold-cache situations. (John Arbash Meinel, #607298)
187
* Added a builder/writer sphinx extension that can generate texinfo files. The
188
generated files are syntactically correct but the info navigation nodes
189
needs more work. (Vincent Ladeuil, #219334)
191
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
192
to make the tests conditional.
195
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
196
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
197
(John Arbash Meinel, #617503)
202
* Configuration files should now use the ``from_string`` constructor rather
203
than the ``file`` parameter of the ``_get_parser`` method. The later has
204
been deprecated. ``from_string`` also accept a ``save=True`` parameter to
205
have the configuration file immediately written to disk.
208
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
209
the rather than the ``file`` parameter of the ``_get_parser`` method. The
210
later has been deprecated. (Vincent Ladeuil)
212
* InventoryEntry instances now raise AttributeError if you try to assign
213
to attributes that are irrelevant to that kind of entry. e.g. setting
214
``symlink_target`` on an InventoryFile will fail. It is still okay to
215
read those attributes on any kind of InventoryEntry. The complete list
216
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
217
``text_size`` (only valid for kind == file); ``symlink_target`` (only
218
valid for kind == link); and ``reference_revision`` (only valid for kind
219
== tree-reference). (Andrew Bennetts)
221
* InventoryEntry objects no longer have ``_put_in_tar`` or
222
``_put_on_disk`` methods. (Andrew Bennetts)
224
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
225
constructor has been deprecated, use the ``file_name`` parameter instead.
231
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
237
* HTTP test servers will leak less threads (and sockets) and will not hang on
238
AIX anymore. (Vincent Ladeuil, #405745)
240
* The way ``bzr selftest --parallel`` generates N partitions of tests to
241
run in parallel has changed. Instead of splitting the list of tests at
242
N-1 points, it distributes the tests one-by-one into the partitions in a
243
round robin fashion. This reduces the total time to run the tests in
244
parallel because a series of slow tests in the test suite will be
245
distributed evenly among the parallel test suites, rather than slowing
246
down just one suite. (Andrew Bennetts)
253
:2.2.1: NOT RELEASED YET
258
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
259
previously-unversioned directory within the tree: the directory is
260
marked versioned too.
261
(Martin Pool, #192859)
263
* CommitBuilder now uses the committer instead of _config.username to generate
264
the revision-id. (Aaron Bentley, #614404)
266
* Cope with Microsoft FTP server that returns reply '250 Directory
267
created' when mkdir succeeds. (Martin Pool, #224373)
269
* Fix ``AttributeError on parent.children`` when adding a file under a
270
directory that was a symlink in the previous commit.
271
(Martin Pool, #192859)
276
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
277
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
278
(John Arbash Meinel, #617503)
283
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
293
This release marks the start of another long-term-stable series. From
294
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
295
while 2.3 will become our new development series. The 2.0 and 2.1 series
296
will also continue to get bugfixes. (Currently 2.0 is planned to be
297
supported for another 6 months.)
299
This is primarily a bugfix and polish release over the 2.1 series, with
300
a large number of bugs fixed (>120), and some performance improvements.
302
There are some compatibility changes in this release. For users of bzrlib
303
as a library, we now request that they call ``bzrlib.initialize`` and use
304
the returned context manager appropriately. For commandline users we no
305
longer guess user identity for ``bzr commit``, users must specify their
306
identity using ``bzr whoami`` (you don't need to specify your identity for
307
readonly operations).
309
Users are encouraged to upgrade from the other stable series.
43
:2.2rc1: NOT RELEASED YET
311
45
Compatibility Breaks
312
46
********************
314
* BzrError subclasses no longer support the name "message" to be used
315
as an argument for __init__ or in _fmt format specification as this
316
breaks in some Python versions. errors.LockError.__init__ argument
317
is now named "msg" instead of earlier "message".
318
(Parth Malwankar, #603461)
320
* The old ``bzr selftest --benchmark`` option has been removed.
321
<https://launchpad.net/bzr-usertest> is an actively-maintained
322
macrobenchmark suite.
328
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
329
``InvalidPattern`` exception error message now shows faulting
331
(Parth Malwankar #300062)
333
54
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
334
55
way which should help avoid problems with concurrent writers.
335
56
(Vincent Ladeuil, #525571)