22
28
`WorkingTree.open_containing_paths`.
31
* `ControlDirFormat` and `ControlDir` have been split out of `BzrDirFormat`
32
and `BzrDir`, respectively. `ControlDirFormat`
33
and `ControlDir` should be used as the base classes for new non-.bzr
36
`BzrDirFormat.register_control_format` has been renamed to
37
`ControlDirFormat.register_format`.
39
`BzrDirFormat.register_server_control_format` has been removed.
41
Probing for control directories is now done by separate objects derived
42
from `bzrlib.controldir.Prober` and registered using
43
`bzrlib.controldir.ControlDirFormat.register_prober` or
44
`bzrlib.controldir.ControlDirFormat.register_server_prober`.
45
`BzrDirFormat.probe_transport` has been moved onto `Prober`.
47
`BzrDirFormat.register_format` has been renamed to
48
`BzrProber.register_bzrdir_format`.
51
* The old ``bzr selftest --benchmark`` option has been removed.
52
<https://launchpad.net/bzr-usertest> is an actively-maintained
59
* The ``lp:`` prefix will now use your known username (from
60
``bzr launchpad-login``) to expand ``~`` to your username. For example:
61
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
62
push to ``lp:~user/project/branch``. (John Arbash Meinel)
31
* Check if both --diff-options and --using are set, and exit with error
32
in this case. (Matthäus G. Chajdas, #234708)
67
* Allow using both --using and --diff-options.
68
(Matthäus G. Chajdas, #234708)
70
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
71
previously-unversioned directory within the tree: the directory is
73
(Martin Pool, #192859)
75
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
76
``InvalidPattern`` exception error message now shows faulting
78
(Parth Malwankar #300062)
80
* ``clean-tree`` issues a warning if it is unable to delete a file
81
due to ``errno.EACCES`` instead of exiting with an error on Windows.
82
(Parth Malwankar, #430785)
84
* CommitBuilder now uses the committer instead of _config.username to generate
85
the revision-id. (Aaron Bentley, #614404)
87
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
88
Directory created' when mkdir succeeds. (Martin Pool, #224373)
90
* Decrease peak memory during ``bzr send``. The old code was caching all
91
text content and all inventory strings for all revisions before
92
computing the diffs. Now we only cache as long as there is a child that
93
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
94
256MB peak. (John Arbash Meinel, #614576)
34
96
* Don't print internal object name when print an invalid revision spec
35
97
error. (Neil Martinsen-Burrell, #598701)
37
* ``HTTP/1.1` test servers now set a ``Content-Length`` header to comply
99
* Fix ``AttributeError on parent.children`` when adding a file under a
100
directory that was a symlink in the previous commit.
101
(Martin Pool, #192859)
103
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
38
104
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
40
106
* `PathNotChild` should not give a traceback.
41
107
(Martin Pool, #98735)
109
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
110
which can result in "missing referenced chk root keys" errors when
111
fetching from repositories with affected revisions.
112
(Andrew Bennetts, #522637)
43
114
* ``Transport.stat`` on a symlink, including a transport pointing directly
44
115
to a symlink, now returns information about the symlink.
121
* ``bzr remove`` now just backs up changed files instead of exiting,
122
forcing you to choose to either keep or delete them. Bazaar will now delete
123
the files if they can easily be recovered using revert, otherwise they
124
will be backed up (adding an extention of the form .~#~).
125
(Marius Kruger, #400554)
127
* Decrease memory consumption when many chk index pages are loaded. (Such
128
as during ``bzr co`` or ``bzr ls -R`` of a large tree.) Often we need to
129
read many chk pages because the individual chk map nodes will be spread
130
randomly. Peak memory for 'bzr ls -R' on a large tree dropped from 396MB
131
down to 247MB, expect even more significant savings on 64-bit platforms.
50
134
* ``DirState`` internals use a little bit less memory. For bzr.dev it
51
135
drops the memory from 1MB down to about 800kB. And replaces a few
52
136
thousand tuples and sets with StaticTuple. (John Arbash Meinel)
138
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
139
have dropped from 68 bytes to 40, and directory entries from 120 bytes
140
to 48). (Andrew Bennetts)
54
142
* When building new working trees, default to reading from the repository
55
143
rather than the source tree unless explicitly requested. (via
56
144
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
152
* Added a builder/writer sphinx extension that can generate texinfo files. The
153
generated files are syntactically correct but the info navigation nodes
154
needs more work. (Vincent Ladeuil, #219334)
156
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
157
to make the tests conditional.
160
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
161
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
162
(John Arbash Meinel, #617503)
167
* InventoryEntry instances now raise AttributeError if you try to assign
168
to attributes that are irrelevant to that kind of entry. e.g. setting
169
``symlink_target`` on an InventoryFile will fail. It is still okay to
170
read those attributes on any kind of InventoryEntry. The complete list
171
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
172
``text_size`` (only valid for kind == file); ``symlink_target`` (only
173
valid for kind == link); and ``reference_revision`` (only valid for kind
174
== tree-reference). (Andrew Bennetts)
176
* InventoryEntry objects no longer have ``_put_in_tar`` or
177
``_put_on_disk`` methods. (Andrew Bennetts)
182
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
78
:2.2rc1: NOT RELEASED YET
188
* The way ``bzr selftest --parallel`` generates N partitions of tests to
189
run in parallel has changed. Instead of splitting the list of tests at
190
N-1 points, it distributes the tests one-by-one into the partitions in a
191
round robin fashion. This reduces the total time to run the tests in
192
parallel because a series of slow tests in the test suite will be
193
distributed evenly among the parallel test suites, rather than slowing
194
down just one suite. (Andrew Bennetts)
201
:2.2.1: NOT RELEASED YET
206
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
207
previously-unversioned directory within the tree: the directory is
208
marked versioned too.
209
(Martin Pool, #192859)
211
* CommitBuilder now uses the committer instead of _config.username to generate
212
the revision-id. (Aaron Bentley, #614404)
214
* Cope with Microsoft FTP server that returns reply '250 Directory
215
created' when mkdir succeeds. (Martin Pool, #224373)
217
* Fix ``AttributeError on parent.children`` when adding a file under a
218
directory that was a symlink in the previous commit.
219
(Martin Pool, #192859)
224
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
225
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
226
(John Arbash Meinel, #617503)
231
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
241
This release marks the start of another long-term-stable series. From
242
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
243
while 2.3 will become our new development series. The 2.0 and 2.1 series
244
will also continue to get bugfixes. (Currently 2.0 is planned to be
245
supported for another 6 months.)
247
This is primarily a bugfix and polish release over the 2.1 series, with
248
a large number of bugs fixed (>120), and some performance improvements.
250
There are some compatibility changes in this release. For users of bzrlib
251
as a library, we now request that they call ``bzrlib.initialize`` and use
252
the returned context manager appropriately. For commandline users we no
253
longer guess user identity for ``bzr commit``, users must specify their
254
identity using ``bzr whoami`` (you don't need to specify your identity for
255
readonly operations).
257
Users are encouraged to upgrade from the other stable series.
80
259
Compatibility Breaks
81
260
********************
262
* BzrError subclasses no longer support the name "message" to be used
263
as an argument for __init__ or in _fmt format specification as this
264
breaks in some Python versions. errors.LockError.__init__ argument
265
is now named "msg" instead of earlier "message".
266
(Parth Malwankar, #603461)
268
* The old ``bzr selftest --benchmark`` option has been removed.
269
<https://launchpad.net/bzr-usertest> is an actively-maintained
270
macrobenchmark suite.
276
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
277
``InvalidPattern`` exception error message now shows faulting
279
(Parth Malwankar #300062)
89
281
* Configuration files in ``${BZR_HOME}`` are now written in an atomic
90
282
way which should help avoid problems with concurrent writers.
91
283
(Vincent Ladeuil, #525571)
93
285
* Don't traceback trying to unversion children files of an already
94
286
unversioned directory. (Vincent Ladeuil, #494221)
288
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
289
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
291
* Progress bars prefer to truncate the text message rather than the
292
counters. The spinner is shown between the network transfer indicator
293
and the progress message. Progress bars are correctly cleared off when
294
they finish. (Martin Pool, #611127)
296
* Recursive binding for checkouts is now detected by bzr. A clear error
297
message is shown to the user. (Parth Malwankar, #405192)
302
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
303
tree, and works with unrelated branches. (Andrew Bennetts)
305
* Add py2exe windows target ``bzrw.exe``. This allow for starting a Bazaar
306
GUI with out have a console open in the background.
307
(Gary van der Merwe, #433781)
312
* ``bzr help patterns`` now explains case insensitive patterns and
313
points to Python regular expression documentation.
314
(Parth Malwankar, #594386)
319
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
324
* Unit test added to ensure that "message" is not uses as a format variable
325
name in BzrError subclasses as this conflicts with some Python versions.
326
(Parth Malwankar, #603461)
1076
1286
* Don't traceback trying to unversion children files of an already
1077
1287
unversioned directory. (Vincent Ladeuil, #494221)
1289
* Fix ``AttributeError on parent.children`` when adding a file under a
1290
directory that was a symlink in the previous commit.
1291
(Martin Pool, #192859)
1293
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1294
which can result in "missing referenced chk root keys" errors when
1295
fetching from repositories with affected revisions.
1296
(Andrew Bennetts, #522637)
1298
* Progress bars prefer to truncate the text message rather than the
1299
counters. The spinner is shown between the network transfer indicator
1300
and the progress message. (Martin Pool)
1079
1302
* Raise ValueError instead of a string exception.
1080
1303
(John Arbash Meinel, #586926)
1305
* Recursive binding for checkouts is now detected by bzr. A clear error
1306
message is shown to the user. (Parth Malwankar, #405192)
1311
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
1312
tree, and works with unrelated branches. (Andrew Bennetts)
1317
* ``bzr help patterns`` now explains case insensitive patterns and
1318
points to Python regular expression documentation.
1319
(Parth Malwankar, #594386)
1324
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
1332
* Unit test added to ensure that "message" is not uses as a format variable
1333
name in BzrError subclasses as this conflicts with some Python versions.
1334
(Parth Malwankar, #603461)