11
:2.5b3: 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.
23
* The ``log_format`` configuration can be used with ``-Olog_format=line`` to
24
change the format ``push`` and ``pull`` use to display the
25
revisions. I.e.: ``bzr pull -v -Olog_format=short`` will use the ``short``
26
format instead of the default ``long`` one. (Vincent Ladeuil, #861472)
31
.. Improvements to existing commands, especially improved performance
32
or memory usage, or better results.
34
* ``bzr version-info`` now takes a ``--revision`` argument.
35
(Jelmer Vernooij, #238705)
37
* ``bzr revno`` now takes a ``--revision`` argument.
38
(Jelmer Vernooij, #870649)
43
.. Fixes for situations where bzr would previously crash or give incorrect
44
or undesirable results.
46
* ``bzr mkdir --quiet`` now does not print a line for every created
47
directory. (Martin von Gagern, #869915)
52
.. Improved or updated documentation.
57
.. Changes that may require updates in plugins or other code that uses
60
* ``Branch.revision_history`` is now deprecated. (Jelmer Vernooij, #799519)
65
.. Major internal changes, unlikely to be visible to users or plugin
66
developers, but interesting for bzr developers.
68
* ``ControlDirFormat`` now has a new method ``supports_transport``
69
which format implementations can use whether or not they can access
70
a control dir over a particular transport. (Jelmer Vernooij)
75
.. Fixes and changes that are only relevant to bzr's test framework and
76
suite. This can include new facilities for writing tests, fixes to
77
spurious test failures and changes to the way things should be tested.
79
* Ensure TestCase instances are deallocated immediately after running where
80
possible. This greatly reduces the peak resource needs of a full test suite
81
run. The new ``-Euncollected_cases`` selftest flag will add failures if any
82
case which persists pasts its expected lifetime. (Martin Packman, #613247)
88
This is the second beta of the 2.5 series, leading to a 2.5.0 release in
89
February 2012. Beta releases are suitable for everyday use but may cause some
90
incompatibilities with plugins.
92
This release includes more filtering options for ``bzr log``, idle
93
connections handling for ``bzr serve``, a ``development-colo`` experimental
94
format to flesh out the colocated branches UI, better support for foreign
95
formats, enhancements to the config framework and more.
97
This release includes all bug fixed in previous series known at the time of
102
External Compatibility Breaks
103
*****************************
110
* A new ``-O`` standard option (common to all commands) have been added. It
111
provides a value for a config option in the ``-Oname=value`` form that
112
takes precedence over all definitions found in config files. It can be
113
used multiple times to override different options.
114
(Vincent Ladeuil, #491196)
116
* ``bzr log`` now has an option called ``--omit-merges`` to omit
117
those commits that merged branches, i.e. those having more than one
119
In order to avoid confusion, the previous command line option
120
``--include-merges`` has been renamed to ``--include-merged``.
121
The old name of the command line option will still be accepted.
122
The name change also affects ``bzr missing``.
125
* ``bzr serve`` will now disconnect clients if they have not issued an RPC
126
request after 5minutes. On POSIX platforms, this will also happen for
127
``bzr serve --inet``. This can be overridden with the configuration
128
variable ``serve.client_timeout`` or in the command line parameter
129
``bzr serve --client-timeout=X``. Further, it is possible to request
130
``bzr serve [--inet]`` to shutdown gracefully by sending SIGHUP. It will
131
finish the current request, and then close the connection.
132
(John Arbash Meinel, #824797, #795025)
134
* The new experimental format ``development-colo`` supports colocated
135
branches. This format will eventually be merged back into the ``2a``
136
format when it has stabilized and there is adequate UI support for
138
(Jelmer Vernooij, #831481)
143
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
144
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
146
* ``bzr info -v`` can now be run against branches that don't support
147
``last_revision_info``, in which case the branch information will simply
148
not be displayed. (Jelmer Vernooij)
153
* ``bzr shelve`` can now be used in emacs shells as the input handling is
154
turned into a line-based one when ``INSIDE_EMACS`` is set (which is the
155
case for all recent emacs versions). (Vincent Ladeuil, #856261)
157
* ``bzr tags`` can now be used against remote repositories that do
158
not provide access to the revision graph. (Jelmer Vernooij, #858942)
160
* ``bzr update PATH`` will stop if you seem to be asking it to update
161
anything less than a whole tree, because that's not supported by ``bzr``'s
162
concept that the whole tree has a single basis revision. Previously, it
163
would go ahead and update the whole tree, which was surprising.
164
(Martin Pool, #557886)
166
* Don't crash if ``bzrlib.initialize()`` has not been called while accessing
167
configs. (Vincent Ladeuil, #863401)
169
* Redirects between http and https no longer discard path information
170
in some cases. (Jelmer Vernooij, #853765)
172
* The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer
173
reports all tags as changed. (Jelmer Vernooij, #845396)
175
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
176
specified that is unknown. (Jelmer Vernooij, #847435)
182
* ``Branch.get_revision_delta`` has been deprecated. Use
183
``Repository.get_revision_delta`` instead. (Jelmer Vernooij, #859712)
185
* Plugins that implement custom protocols for ``bzr serve`` should now
186
also take an argument ``timeout``. This is used by the the bzr protocol
187
to close a connection if a client has been idle for more than X seconds.
188
(Default 5minutes). (John Arbash Meinel)
190
* ``Repository.fileids_altered_by_revision_ids`` has been moved to
191
``VersionedFileRepository`` and is no longer part of the standard
192
``Repository`` interface. (Jelmer Vernooij)
194
* The argument ``include_merges`` to ``missing.find_unmerged`` has
195
been renamed to ``include_merged``. The old name is still supported
196
for now but will cause a deprecation warning. (Martin von Gagern)
198
* The new method ``ControlDirFormat.is_initializable()`` returns a boolean
199
indicating whether or not it is possible to use any of the
200
initialization methods of that format to create a new control dir.
206
* ``Branch`` objects can now use a config stack with the newly introduced
207
``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
208
be used for the same branch but it's recommended to stick to one for a
214
* Test scripts can now use ``bzr shelve`` and provide their input as
215
complete lines. (Vincent Ladeuil, #856261)
217
* Really corrupt the pack file without depending on a special length or value.
218
(Vincent Ladeuil, #807032)
226
This is the first beta of the 2.5 series, leading up to a 2.5.0
227
release in February 2012.
229
This release includes better support for gpg signing, better support for
230
i18n (mostly command help and error messages), more options to filter ``bzr
231
log`` output, more support for colocated branches ("location,branch=XXX"
232
syntax), better feedback on updated tags for various commands, faster
233
branching into an empty repository, enhancements to the config framework and
236
Beta releases are suitable for everyday use but may cause some
237
incompatibilities with plugins. Some plugins may need small updates to work
240
External Compatibility Breaks
241
*****************************
248
* A ``from_unicode`` parameter can be specified when registering a config
249
option. This implements boolean, integer and list config options when the
250
provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
251
are used for this parameter. (Vincent Ladeuil)
253
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
254
checks to see if the most recent published source package version for
255
that project is present in the branch tags. This should help developers
256
trust whether the packaging branch is up-to-date and can be used for new
257
changes. The level of verbosity is controlled by the config item
258
``launchpad.packaging_verbosity``. It can be set to one of
265
only display if the branch is out-of-date
268
also display single-line up-to-date and missing,
272
(default) display multi-line content for all states
275
(John Arbash Meinel, #609187, #812928)
277
* Add a config option gpg_signing_key for setting which GPG key should
278
be used to sign commits. Also default to using the gpg user identity
279
which matches user_email() as set by whoami.
280
(Jonathan Riddell, #68501)
282
* An ``invalid`` parameter can be specified when registering a config option
283
to decide what should be done when invalid values are
284
encountered. 'warning' and 'error' will respectively emit a warning and
285
ignore the value or errors out. (Vincent Ladeuil)
287
* bzr add now skips large files in recursive mode. The default "large"
288
size is 20MB, and is configurable via the add.maximum_file_size
289
option. A value of 0 disables skipping. Named items passed to add are
290
never skipped. (Shannon Weyrick, #54624)
292
* ``bzr help configuration/<option>`` display the help for ``option`` for
293
all registered configuration options. (Vincent Ladeuil, #747050)
295
* ``bzr log -m`` now matches message, author, committer and bugs instead
296
of just matching the message. ``--message`` keeps its original meaning,
297
while ``--match-message, --match-author, --match-committer`` and
298
``--match-bugs`` match each of those fields. (Jacek Sieka)
300
* ``config.Option`` can now declare ``default_from_env``, a list of
301
environment variables to get a default value from. (Vincent Ladeuil)
303
* ``config.NameMatcher`` can be used to implement config stores and stacks
304
that need to provide specific option values for arbitrary unique IDs (svn
305
repository UUIDs, etc). (Vincent Ladeuil, #843638)
307
* New builtin ``bzr branches`` command, which lists all colocated branches
308
in a directory. (Jelmer Vernooij, #826820)
310
* Relative local paths can now be specified in URL syntax by using the
311
"file:" prefix. (Jelmer Vernooij)
313
* Report commits signed with expired keys in ``verify-signatures``.
314
(Jonathan Riddell, #804254)
316
* Translations are now enabled for command help, errors and globally
317
for any message using ``gettext`` given on output. (Jonathan Riddell,
323
* ``bzr add`` will now warn about nested subtrees that are skipped.
324
(Jelmer Vernooij, #187342)
326
* ``bzr commit -m ''`` can now be used to force an empty commit message.
327
Entering an empty commit message in the message editor still triggers
328
an error. (Jelmer Vernooij)
330
* ``bzr pull`` will now mention how many tags it has updated.
331
(Jelmer Vernooij, #164450)
333
* ``bzr tag`` no longer errors if a tag already exists but refers to the
334
same revision, and will mention when a tag has been updated
335
rather than created. (Jelmer Vernooij, #381203)
337
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
338
The ``--keep-tags`` option can be used to prevent this behaviour.
339
(Jelmer Vernooij, #605814)
341
* Do not run i18n initialisation twice. (Jonathan Riddell)
343
* Install translation .mo files. (Jonathan Riddell)
345
* Locations printed by ``bzr upgrade`` are now formatted before display.
348
* ``Repository.get_parent_map`` now estimates the size of the returned
349
content more accurately. This means that we get closer to the desired
350
64kB/request. For repositories converted from svn, this can be an
351
improvement of approx 5:1 in round trips to discover the whole history.
354
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
355
if no bug tracker was specified on the command line.
356
(Jelmer Vernooij, #334860)
358
* Use ``gettext.NullTranslations`` in i18n to allow use of i18n even when
359
translations are not turned on. (Jonathan Riddell)
364
* ``bzr commit`` now correctly reports missing files as "removed", not
365
"modified". (Jelmer Vernooij, #553955)
367
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
368
in a single invocation, e.g. ``--branch`` and ``--use-shared``.
369
(Martin von Gagern, #842993)
371
* A call to CHKInventory's filter-method will not result in a
372
DuplicateFileId error, if you move a subfolder and change a file in
374
(Bastian Bowe, #809901)
376
* Branching from a stacked branch no longer does a ``get_parent_map``
377
request for each revisions that is in the stacked-on repository while
378
determining what revisions need to be fetched. This mostly impacts
379
branching initialy into an empty shared repository when the source is
380
not the development focus. (John Arbash Meinel, #388269)
382
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
383
errors. (Vincent Ladeuil, #822571)
385
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
386
raised whenever a transport at the drive root was opened on windows.
387
(Martin [gz], #841322)
389
* Fixed loading of external merge tools from config to properly decode
390
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
392
* Rather than an error being raised, a warning is now printed when the
393
current user does not have permission to read a configuration file.
394
(Jelmer Vernooij, #837324)
396
* The pull command will now always use separate connections for the
397
case where the destination is a heavyweight checkout of some remote
398
branch on the same host as the source branch.
399
(Martin von Gagern, #483661)
401
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
402
operations that use it, like merge, can now create trees without a root.
408
* Release instructions refreshed. (Vincent Ladeuil)
413
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
414
argument. (Jelmer Vernooij)
416
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
417
which indicates if the format should be for a lightweight or a
418
heavyweight checkout. (Jelmer Vernooij)
420
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
423
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
426
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
427
value in SI format (i.e. "20MB", "1GB") into its integer equivalent.
430
* New method ``InterTree.file_content_matches`` which checks that
431
two files in different trees have the same contents.
434
* New method ``Tree.get_file_verifier`` which allows tree implementations
435
to return non-sha1 checksums to verify files.
436
(Jelmer Vernooij, #720831)
438
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
439
have been added that only support opening from a path or a URL,
440
unlike ``get_transport``. (Jelmer Vernooij)
442
* New registry ``OptionRegistry`` specialized for configuration options.
445
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
448
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
449
``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
450
2.10 and 2.2.0. (Vincent Ladeuil)
452
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
454
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
455
``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
456
remove ``log.show_one_log`` which was never properly deprecated but wasn't
457
used and is easy to inline if needed. (Vincent Ladeuil)
459
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
460
deprecated in 2.1.0. (Vincent Ladeuil)
462
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
463
a default transport is currently unused. (Jelmer Vernooij)
465
* Remove ``UIFactory.warn_cross_format_fetch`` and
466
``UIFactory.warn_experimental_format_fetch`` in favor of
467
``UIFactory.show_user_warning``. (Jelmer Vernooij)
469
* ``Tags`` containers can now declare whether they support versioned
470
tags and whether tags can refer to ghost tags.
473
* ``Tags.merge_to`` now returns a dictionary with the updated tags
474
and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
476
* There is a new class `ContentFilterTree` that provides a facade for
477
content filtering. The `filtered` parameter to `export` is deprecated
478
in favor of passing a filtered tree, and the specific exporter plugins
479
no longer support it.
482
* ``Transport`` now has a ``_parsed_url`` attribute instead of
483
separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
484
and ``_path`` attributes. Proxies are provided for the moment but
485
may be removed in the future. (Jelmer Vernooij)
490
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
491
to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
492
is attempted. (Jelmer Vernooij)
494
* New method ``ControlDir._get_selected_branch`` which returns the
495
colocated branch selected using path segment parameters.
496
(Jelmer Vernooij, #380871)
501
* Blackbox tests (including test scripts) can be debugged interactively (see
502
bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
504
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
505
cleanly and reliably allows tests using `BranchBuilder` to construct
506
branches that e.g. rename files out of a directory and unversion that
507
directory in the same revision. Previously some changes were impossible
508
due to the order that `build_snapshot` performs its actions.
511
* Don't require ``os.fdatasync`` to be defined on all supported OSes
512
(BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
514
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
516
* ``LockDir`` can now be run when the local hostname is ``localhost``.
517
(Jelmer Vernooij, #825994)
519
* ``ModuleAvailableFeature`` won't try to import already imported modules,
520
allowing it to be used for modules with side-effects.
521
(Vincent Ladeuil, #712474)
523
* Output time stamps while running ``make check`` to get better timings from
524
pqm. (Vincent Ladeuil, #837926)
526
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
527
just compares the bytes in the dirstate file to its pristine state,
528
rather than opening the WorkingTree and calling ``last_revision()``.
529
This reduces the overall test suite time by about 10% on my laptop.
532
* Update `TestCase.knownFailure` to the testtools way of handling expected
533
failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
536
vim: tw=74 ft=rst ff=unix