11
:2.5b2: NOT RELEASED YET
13
External Compatibility Breaks
14
*****************************
16
.. These may require users to change the way they use Bazaar.
21
.. New commands, options, etc that users may wish to try out.
26
.. Improvements to existing commands, especially improved performance
27
or memory usage, or better results.
32
.. Fixes for situations where bzr would previously crash or give incorrect
33
or undesirable results.
35
* Redirects between http and https no longer discard path information
36
in some cases. (Jelmer Vernooij, #853765)
38
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
39
specified that is unknown. (Jelmer Vernooij, #847435)
44
.. Improved or updated documentation.
49
.. Changes that may require updates in plugins or other code that uses
55
.. Major internal changes, unlikely to be visible to users or plugin
56
developers, but interesting for bzr developers.
58
* ``Branch`` objects can now use a config stack with the newly introduced
59
``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
60
be used for the same branch but it's recommended to stick to one for a
66
.. Fixes and changes that are only relevant to bzr's test framework and
67
suite. This can include new facilities for writing tests, fixes to
68
spurious test failures and changes to the way things should be tested.
76
This is the first beta of the 2.5 series, leading up to a 2.5.0
77
release in February 2012. Beta releases are suitable for everyday use
78
but may cause some incompatibilities with plugins. Some plugins may need
79
small updates to work with 2.5b1.
81
External Compatibility Breaks
82
*****************************
89
* A ``from_unicode`` parameter can be specified when registering a config
90
option. This implements boolean, integer and list config options when the
91
provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
92
are used for this parameter. (Vincent Ladeuil)
94
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
95
checks to see if the most recent published source package version for
96
that project is present in the branch tags. This should help developers
97
trust whether the packaging branch is up-to-date and can be used for new
98
changes. The level of verbosity is controlled by the config item
99
``launchpad.packaging_verbosity``. It can be set to one of
106
only display if the branch is out-of-date
109
also display single-line up-to-date and missing,
113
(default) display multi-line content for all states
116
(John Arbash Meinel, #609187, #812928)
118
* Add a config option gpg_signing_key for setting which GPG key should
119
be used to sign commits. Also default to using the gpg user identity
120
which matches user_email() as set by whoami.
121
(Jonathan Riddell, #68501)
123
* An ``invalid`` parameter can be specified when registering a config option
124
to decide what should be done when invalid values are
125
encountered. 'warning' and 'error' will respectively emit a warning and
126
ignore the value or errors out. (Vincent Ladeuil)
128
* bzr add now skips large files in recursive mode. The default "large"
129
size is 20MB, and is configurable via the add.maximum_file_size
130
option. A value of 0 disables skipping. Named items passed to add are
131
never skipped. (Shannon Weyrick, #54624)
133
* ``bzr help configuration/<option>`` display the help for ``option`` for
134
all registered configuration options. (Vincent Ladeuil, #747050)
136
* ``bzr log -m`` now matches message, author, committer and bugs instead
137
of just matching the message. ``--message`` keeps its original meaning,
138
while ``--match-message, --match-author, --match-committer`` and
139
``--match-bugs`` match each of those fields. (Jacek Sieka)
141
* ``bzr log`` now has an option called ``--omit-merges`` to ommit
142
those commits that merged branches, i.e. those having more than one
144
In order to avoid confusion, the previous command line option
145
``--include-merges`` has been renamed to ``--include-merged``.
146
The old name of the command line option will still be accepted.
147
The name change also affects ``bzr missing``.
150
* ``config.Option`` can now declare ``default_from_env``, a list of
151
environment variables to get a default value from. (Vincent Ladeuil)
153
* ``config.NameMatcher`` can be used to implement config stores and stacks
154
that need to provide specific option values for arbitrary unique IDs (svn
155
repository UUIDs, etc). (Vincent Ladeuil, #843638)
157
* New builtin ``bzr branches`` command, which lists all colocated branches
158
in a directory. (Jelmer Vernooij, #826820)
160
* Relative local paths can now be specified in URL syntax by using the
161
"file:" prefix. (Jelmer Vernooij)
163
* Report commits signed with expired keys in ``verify-signatures``.
164
(Jonathan Riddell, #804254)
166
* Translations are now enabled for command help, errors and globally
167
for any message using gettext given on output. (Jonathan Riddell,
173
* ``bzr add`` will now warn about nested subtrees that are skipped.
174
(Jelmer Vernooij, #187342)
176
* ``bzr commit -m ''`` can now be used to force an empty commit message.
177
Entering an empty commit message in the message editor still triggers
178
an error. (Jelmer Vernooij)
180
* ``bzr pull`` will now mention how many tags it has updated.
181
(Jelmer Vernooij, #164450)
183
* ``bzr tag`` no longer errors if a tag already exists but refers to the
184
same revision, and will mention when a tag has been updated
185
rather than created. (Jelmer Vernooij, #381203)
187
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
188
The ``--keep-tags`` option can be used to prevent this behaviour.
189
(Jelmer Vernooij, #605814)
191
* Do not run i18n initialisation twice. (Jonathan Riddell)
193
* Install translation .mo files. (Jonathan Riddell)
195
* Locations printed by ``bzr upgrade`` are now formatted before display.
198
* ``Repository.get_parent_map`` now estimates the size of the returned
199
content more accurately. This means that we get closer to the desired
200
64kB/request. For repositories converted from svn, this can be an
201
improvement of approx 5:1 in round trips to discover the whole history.
204
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
205
if no bug tracker was specified on the command line.
206
(Jelmer Vernooij, #334860)
208
* Use gettext.NullTranslations in i18n to allow use of i18n even when
209
translations are not turned on. (Jonathan Riddell)
214
* ``bzr commit`` now correctly reports missing files as "removed", not
215
"modified". (Jelmer Vernooij, #553955)
217
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
218
in a single invocation, e.g. ``--branch`` and ``--use-shared``.
219
(Martin von Gagern, #842993)
221
* A call to CHKInventory's filter-method will not result in a
222
DuplicateFileId error, if you move a subfolder and change a file in
224
(Bastian Bowe, #809901)
226
* Branching from a stacked branch no longer does a ``get_parent_map``
227
request for each revisions that is in the stacked-on repository while
228
determining what revisions need to be fetched. This mostly impacts
229
branching initialy into an empty shared repository when the source is
230
not the development focus. (John Arbash Meinel, #388269)
232
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
233
errors. (Vincent Ladeuil, #822571)
235
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
236
raised whenever a transport at the drive root was opened on windows.
237
(Martin [gz], #841322)
239
* Fixed loading of external merge tools from config to properly decode
240
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
242
* Rather than an error being raised, a warning is now printed when the
243
current user does not have permission to read a configuration file.
244
(Jelmer Vernooij, #837324)
246
* The pull command will now always use separate connections for the
247
case where the destination is a heavyweight checkout of some remote
248
branch on the same host as the source branch.
249
(Martin von Gagern, #483661)
251
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
252
operations that use it, like merge, can now create trees without a root.
258
* Release instructions refreshed. (Vincent Ladeuil)
263
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
264
argument. (Jelmer Vernooij)
266
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
267
which indicates if the format should be for a lightweight or a
268
heavyweight checkout. (Jelmer Vernooij)
270
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
273
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
276
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
277
value in SI format (i.e. "20MB", "1GB") into its integer equivalent.
280
* New method ``InterTree.file_content_matches`` which checks that
281
two files in different trees have the same contents.
284
* New method ``Tree.get_file_verifier`` which allows tree implementations
285
to return non-sha1 checksums to verify files.
286
(Jelmer Vernooij, #720831)
288
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
289
have been added that only support opening from a path or a URL,
290
unlike ``get_transport``. (Jelmer Vernooij)
292
* New registry ``OptionRegistry`` specialized for configuration options.
295
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
298
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
299
``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
300
2.10 and 2.2.0. (Vincent Ladeuil)
302
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
304
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
305
``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
306
remove ``log.show_one_log`` which was never properly deprecated but wasn't
307
used and is easy to inline if needed. (Vincent Ladeuil)
309
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
310
deprecated in 2.1.0. (Vincent Ladeuil)
312
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
313
a default transport is currently unused. (Jelmer Vernooij)
315
* Remove ``UIFactory.warn_cross_format_fetch`` and
316
``UIFactory.warn_experimental_format_fetch`` in favor of
317
``UIFactory.show_user_warning``. (Jelmer Vernooij)
319
* ``Tags`` containers can now declare whether they support versioned
320
tags and whether tags can refer to ghost tags.
323
* ``Tags.merge_to`` now returns a dictionary with the updated tags
324
and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
326
* There is a new class `ContentFilterTree` that provides a facade for
327
content filtering. The `filtered` parameter to `export` is deprecated
328
in favor of passing a filtered tree, and the specific exporter plugins
329
no longer support it.
332
* ``Transport`` now has a ``_parsed_url`` attribute instead of
333
separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
334
and ``_path`` attributes. Proxies are provided for the moment but
335
may be removed in the future. (Jelmer Vernooij)
337
* The argument ``include_merges`` to ``missing.find_unmerged`` has
338
been renamed to ``include_merged``. The old name is still supported
339
for now but will cause a deprecation warning. (Martin von Gagern)
345
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
346
to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
347
is attempted. (Jelmer Vernooij)
349
* New method ``ControlDir._get_selected_branch`` which returns the
350
colocated branch selected using path segment parameters.
351
(Jelmer Vernooij, #380871)
356
* Blackbox tests (including test scripts) can be debugged interactively (see
357
bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
359
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
360
cleanly and reliably allows tests using `BranchBuilder` to construct
361
branches that e.g. rename files out of a directory and unversion that
362
directory in the same revision. Previously some changes were impossible
363
due to the order that `build_snapshot` performs its actions.
366
* Don't require ``os.fdatasync`` to be defined on all supported OSes
367
(BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
369
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
371
* ``LockDir`` can now be run when the local hostname is ``localhost``.
372
(Jelmer Vernooij, #825994)
374
* ``ModuleAvailableFeature`` won't try to import already imported modules,
375
allowing it to be used for modules with side-effects.
376
(Vincent Ladeuil, #712474)
378
* Output time stamps while running ``make check`` to get better timings from
379
pqm. (Vincent Ladeuil, #837926)
381
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
382
just compares the bytes in the dirstate file to its pristine state,
383
rather than opening the WorkingTree and calling ``last_revision()``.
384
This reduces the overall test suite time by about 10% on my laptop.
387
* Update `TestCase.knownFailure` to the testtools way of handling expected
388
failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
391
vim: tw=74 ft=rst ff=unix