20
20
is now named "msg" instead of earlier "message".
21
21
(Parth Malwankar, #603461)
23
* `FileInWrongBranch` is deprecated in favour of `PathNotChild` and no
27
* `tree_files` and `internal_tree_files` are now deprecated in favor of
28
`WorkingTree.open_containing_paths`.
31
* The old ``bzr selftest --benchmark`` option has been removed.
32
<https://launchpad.net/bzr-usertest> is an actively-maintained
39
* ``bzr break-lock --config [location]`` can now break config files
40
locks. (Vincent Ladeuil, #525571)
42
* ``bzrlib.config.LockableConfig`` is a base class for config files that
43
needs to be protected against multiple writers. All methods that
44
change a configuration variable value must be decorated with
45
@needs_write_lock (set_option() for example).
46
(Vincent Ladeuil, #525571)
48
* The ``lp:`` prefix will now use your known username (from
49
``bzr launchpad-login``) to expand ``~`` to your username. For example:
50
``bzr launchpad-login user && bzr push lp:~/project/branch`` will now
51
push to ``lp:~user/project/branch``. (John Arbash Meinel)
56
* Allow using both --using and --diff-options.
57
(Matthäus G. Chajdas, #234708)
59
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
60
previously-unversioned directory within the tree: the directory is
62
(Martin Pool, #192859)
64
* ``bzr ignore PATTERNS`` exits with error if a bad pattern is supplied.
65
``InvalidPattern`` exception error message now shows faulting
67
(Parth Malwankar #300062)
69
* ``clean-tree`` issues a warning if it is unable to delete a file
70
due to ``errno.EACCES`` instead of exiting with an error on Windows.
71
(Parth Malwankar, #430785)
73
* CommitBuilder now uses the committer instead of _config.username to generate
74
the revision-id. (Aaron Bentley, #614404)
76
* Configuration files in ``${BZR_HOME}`` are now protected against
77
concurrent writers by using a lock. (Vincent Ladeuil, #525571)
79
* Cope with Microsoft FTP Server and VSFTPd that return reply '250
80
Directory created' when mkdir succeeds. (Martin Pool, #224373)
82
* Decrease peak memory during ``bzr send``. The old code was caching all
83
text content and all inventory strings for all revisions before
84
computing the diffs. Now we only cache as long as there is a child that
85
will need them. Sending 2000 bzr revisions drops from 1.2GB peak to
86
256MB peak. (John Arbash Meinel, #614576)
88
* Don't print internal object name when print an invalid revision spec
89
error. (Neil Martinsen-Burrell, #598701)
91
* Fix ``AttributeError on parent.children`` when adding a file under a
92
directory that was a symlink in the previous commit.
93
(Martin Pool, #192859)
95
* ``HTTP/1.1`` test servers now set a ``Content-Length`` header to comply
96
with pedantic ``HTTP/1.1`` clients. (Vincent Ladeuil, #568421)
98
* `PathNotChild` should not give a traceback.
101
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
102
which can result in "missing referenced chk root keys" errors when
103
fetching from repositories with affected revisions.
104
(Andrew Bennetts, #522637)
106
* ``Transport.stat`` on a symlink, including a transport pointing directly
107
to a symlink, now returns information about the symlink.
113
* ``bzr remove`` now just backs up changed files instead of exiting,
114
forcing you to choose to either keep or delete them. Bazaar will now delete
115
the files if they can easily be recovered using revert, otherwise they
116
will be backed up (adding an extention of the form .~#~).
117
(Marius Kruger, #400554)
119
* Inventory entries now consume less memory (on 32-bit Ubuntu file entries
120
have dropped from 68 bytes to 40, and directory entries from 120 bytes
121
to 48). (Andrew Bennetts)
123
* When building new working trees, default to reading from the repository
124
rather than the source tree unless explicitly requested. (via
125
``--files-from`` and ``--hardlink`` for ``bzr branch`` and
126
``bzr checkout``. Generally, 2a format repositories extract
127
content faster than seeking and reading content from another tree,
128
especially in cold-cache situations. (John Arbash Meinel, #607298)
133
* Added a builder/writer sphinx extension that can generate texinfo files. The
134
generated files are syntactically correct but the info navigation nodes
135
needs more work. (Vincent Ladeuil, #219334)
137
* First tests defined for sphinx, including a new bzrlib.tests.features.sphinx
138
to make the tests conditional.
141
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
142
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
143
(John Arbash Meinel, #617503)
148
* Configuration files should now use the ``from_string`` constructor the
149
rather than the ``file`` parameter of the ``_get_parser`` method. The
150
later has been deprecated. ``from_string`` also accept a ``save=True``
151
parameter to have the configuration file immediately written to
152
disk. (Vincent Ladeuil)
154
* ``IniBaseConfig`` objects should now use the ``from_string`` constructor
155
the rather than the ``file`` parameter of the ``_get_parser`` method. The
156
later has been deprecated. (Vincent Ladeuil)
158
* InventoryEntry instances now raise AttributeError if you try to assign
159
to attributes that are irrelevant to that kind of entry. e.g. setting
160
``symlink_target`` on an InventoryFile will fail. It is still okay to
161
read those attributes on any kind of InventoryEntry. The complete list
162
of affected attributes is: ``executable``, ``text_id``, ``text_sha1``,
163
``text_size`` (only valid for kind == file); ``symlink_target`` (only
164
valid for kind == link); and ``reference_revision`` (only valid for kind
165
== tree-reference). (Andrew Bennetts)
167
* InventoryEntry objects no longer have ``_put_in_tar`` or
168
``_put_on_disk`` methods. (Andrew Bennetts)
170
* The ``get_filename`` parameter in the ``config.IniBaseConfig``
171
constructor has been deprecated, use the ``file_name`` parameter instead.
177
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
183
* The way ``bzr selftest --parallel`` generates N partitions of tests to
184
run in parallel has changed. Instead of splitting the list of tests at
185
N-1 points, it distributes the tests one-by-one into the partitions in a
186
round robin fashion. This reduces the total time to run the tests in
187
parallel because a series of slow tests in the test suite will be
188
distributed evenly among the parallel test suites, rather than slowing
189
down just one suite. (Andrew Bennetts)
196
:2.2.1: NOT RELEASED YET
201
* ``bzr add SYMLINK/FILE`` now works properly when the symlink points to a
202
previously-unversioned directory within the tree: the directory is
203
marked versioned too.
204
(Martin Pool, #192859)
206
* CommitBuilder now uses the committer instead of _config.username to generate
207
the revision-id. (Aaron Bentley, #614404)
209
* Cope with Microsoft FTP server that returns reply '250 Directory
210
created' when mkdir succeeds. (Martin Pool, #224373)
212
* Fix ``AttributeError on parent.children`` when adding a file under a
213
directory that was a symlink in the previous commit.
214
(Martin Pool, #192859)
219
* Fix a lot of references in the docs to the old http://bazaar-vcs.org to
220
the new http://bazaar.canonical.com or http://wiki.bazaar.canonical.com
221
(John Arbash Meinel, #617503)
226
* Remove used and broken code path in ``BranchInitHookParams.__repr__``.
236
This release marks the start of another long-term-stable series. From
237
here, we will only make bugfix releases on the 2.2 series (2.2.1, etc),
238
while 2.3 will become our new development series. The 2.0 and 2.1 series
239
will also continue to get bugfixes. (Currently 2.0 is planned to be
240
supported for another 6 months.)
242
This is primarily a bugfix and polish release over the 2.1 series, with
243
a large number of bugs fixed (>120), and some performance improvements.
245
There are some compatibility changes in this release. For users of bzrlib
246
as a library, we now request that they call ``bzrlib.initialize`` and use
247
the returned context manager appropriately. For commandline users we no
248
longer guess user identity for ``bzr commit``, users must specify their
249
identity using ``bzr whoami`` (you don't need to specify your identity for
250
readonly operations).
252
Users are encouraged to upgrade from the other stable series.
257
* BzrError subclasses no longer support the name "message" to be used
258
as an argument for __init__ or in _fmt format specification as this
259
breaks in some Python versions. errors.LockError.__init__ argument
260
is now named "msg" instead of earlier "message".
261
(Parth Malwankar, #603461)
263
* The old ``bzr selftest --benchmark`` option has been removed.
264
<https://launchpad.net/bzr-usertest> is an actively-maintained
265
macrobenchmark suite.
1019
1281
* Don't traceback trying to unversion children files of an already
1020
1282
unversioned directory. (Vincent Ladeuil, #494221)
1284
* Fix ``AttributeError on parent.children`` when adding a file under a
1285
directory that was a symlink in the previous commit.
1286
(Martin Pool, #192859)
1288
* Prevent ``CHKMap.apply_delta`` from generating non-canonical CHK maps,
1289
which can result in "missing referenced chk root keys" errors when
1290
fetching from repositories with affected revisions.
1291
(Andrew Bennetts, #522637)
1293
* Progress bars prefer to truncate the text message rather than the
1294
counters. The spinner is shown between the network transfer indicator
1295
and the progress message. (Martin Pool)
1022
1297
* Raise ValueError instead of a string exception.
1023
1298
(John Arbash Meinel, #586926)
1300
* Recursive binding for checkouts is now detected by bzr. A clear error
1301
message is shown to the user. (Parth Malwankar, #405192)
1306
* Add ``bzrlib.merge.MergeIntoMerger``, which can merge part or all of a
1307
tree, and works with unrelated branches. (Andrew Bennetts)
1312
* ``bzr help patterns`` now explains case insensitive patterns and
1313
points to Python regular expression documentation.
1314
(Parth Malwankar, #594386)
1319
* Delete ``ProgressTask.note``, which was deprecated in 2.1.
1327
* Unit test added to ensure that "message" is not uses as a format variable
1328
name in BzrError subclasses as this conflicts with some Python versions.
1329
(Parth Malwankar, #603461)