11
:2.5b4: 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
* Resolve regression from colocated branch path handling, by ensuring that
36
unreserved characters are unquoted in URLs. (Martin Packman, #842223)
38
* Support verifying signatures on remote repositories.
39
(Jelmer Vernooij, #889694)
44
.. Improved or updated documentation.
49
.. Changes that may require updates in plugins or other code that uses
52
* ``Repository.verify_revision`` has been renamed to
53
``Repository.verify_revision_signature``. (Jelmer Vernooij)
58
.. Major internal changes, unlikely to be visible to users or plugin
59
developers, but interesting for bzr developers.
64
.. Fixes and changes that are only relevant to bzr's test framework and
65
suite. This can include new facilities for writing tests, fixes to
66
spurious test failures and changes to the way things should be tested.
74
This is the third beta of the 2.5 series, leading to a 2.5.0 release in
75
February 2012. Beta releases are suitable for everyday use but may cause
76
some incompatibilities with plugins.
78
This release includes log options for ``push`` and ``pull``, more UI polish
79
for colocated branches, a better and more coherent implementation for UI
80
dialogs, enhancements to the config framework and more.
82
This release includes all bug fixed in previous series known at the time of
85
External Compatibility Breaks
86
*****************************
93
* The ``log_format`` configuration can be used with ``-Olog_format=line`` to
94
change the format ``push`` and ``pull`` use to display the
95
revisions. I.e.: ``bzr pull -v -Olog_format=short`` will use the ``short``
96
format instead of the default ``long`` one. (Vincent Ladeuil, #861472)
98
* The new config scheme allows an alternative syntax for the 'appenpath'
99
policy relying on option expansion and defining a new 'relpath' option
100
local to a section. Instead of using '<option>:policy=appendpath', the
101
option value can de defined as 'option=xxxx/{relpath}'.
102
(Vincent Ladeuil, #832013)
107
* ``bzr info -v`` now shows the number of colocated branches
108
for control directories that support them.
109
(Jelmer Vernooij, #863285)
111
* ``bzr version-info`` now takes a ``--revision`` argument.
112
(Jelmer Vernooij, #238705)
114
* ``bzr revno`` now takes a ``--revision`` argument.
115
(Jelmer Vernooij, #870649)
117
* ``bzr serve`` now can serve from URLs rather than just from the
118
file system. I.e.: ``bzr serve -d lp:bzr`` or
119
``bzr serve -d file:///data/bzr`` (Jelmer Vernooij)
121
* all input prompts are now char-based when possible, and can be forced to
122
line-based mode by setting the ``BZR_TEXTUI_INPUT`` environment variable
123
to 'line-based'. This replace the previous shelf UI only patch using
124
``INSIDE_EMACS``. (Benoît Pierre)
129
* ``bzr info`` now shows the master branch location too for
130
treeless local branches. (Jelmer Vernooij, #258355)
132
* ``bzr info`` no longer shows empty output if only a control
133
directory is present. (Jelmer Vernooij, #159098)
135
* ``bzr mkdir --quiet`` now does not print a line for every created
136
directory. (Martin von Gagern, #869915)
138
* ``bzr mv`` does not crash when attempting to move the root of a
139
branch. (Jonathan Riddell, #809728)
141
* ``bzr shelve`` now use ``UIFactory.choose`` for input handling, making
142
it usable when creating a custom ``UIFactory`` implementation. (Benoît
145
* ``bzr clean-tree`` now use ``UIFactory.get_boolean`` for confirmation
146
prompt, making it usable when using a custom ``UIFactory``
147
implementation. (Benoît Pierre)
149
* If sending a crash through Apport fails report the Apport failure to
150
bzr.log rather than stderr. (Jonathan Riddell, #766735)
152
* ``bzr upgrade`` no longer treats 'already up-to-date' exceptions as
153
errors. (Benoît Pierre, #716560).
155
* ``bzr version-info`` no longer populates the clean state for custom
156
templates unless {clean} is explicitly asked for.
157
(Lawrence Mitchell, #882541)
159
* Fix finding the CPU count when using Python >= 2.6 on BSD-based systems.
160
(Jelmer Vernooij, #887151)
162
* ``WorkingTree.clone()`` now supports its ``revision_id`` being set
163
to the null revision. (Jelmer Vernooij, #876423)
165
* ``WorkingTree.pull`` can now pull ``NULL_REVISION``.
166
(Jelmer Vernooij, #887556)
171
* ``Branch.revision_history`` is now deprecated. (Jelmer Vernooij, #799519)
173
* Methods ``add`` and ``items`` of ``LRUCache`` and ``LRUSizeCache`` are
174
deprecated. Use normal dict-style access instead. (Martin Packman)
176
* New flag ``RepositoryFormat.supports_unreferenced_revisions`` which
177
indicates whether revisions can be present in a repository without
178
being referenced from e.g. a branch history at the same time.
181
* ``UIFactory.choose`` has been added: prompt the user for a list of
182
choices. (Benoît Pierre)
187
* ``ControlDirFormat`` now has a new method ``supports_transport``
188
which format implementations can use whether or not they can access
189
a control dir over a particular transport. (Jelmer Vernooij)
191
* ``BranchBuilder.build_commit`` now take ``parent_ids`` and
192
``allow_leftmost_as_ghost`` arguments. (Jelmer Vernooij)
197
* Ensure TestCase instances are deallocated immediately after running where
198
possible. This greatly reduces the peak resource needs of a full test suite
199
run. The new ``-Euncollected_cases`` selftest flag will add failures if any
200
case which persists pasts its expected lifetime. (Martin Packman, #613247)
202
* Report exceptions from child processes during fork instead of swallowing the
203
error and reporting that everything went okay. (Martin Packman, #804130)
209
This is the second beta of the 2.5 series, leading to a 2.5.0 release in
210
February 2012. Beta releases are suitable for everyday use but may cause some
211
incompatibilities with plugins.
213
This release includes more filtering options for ``bzr log``, idle
214
connections handling for ``bzr serve``, a ``development-colo`` experimental
215
format to flesh out the colocated branches UI, better support for foreign
216
formats, enhancements to the config framework and more.
218
This release includes all bug fixed in previous series known at the time of
223
External Compatibility Breaks
224
*****************************
231
* A new ``-O`` standard option (common to all commands) have been added. It
232
provides a value for a config option in the ``-Oname=value`` form that
233
takes precedence over all definitions found in config files. It can be
234
used multiple times to override different options.
235
(Vincent Ladeuil, #491196)
237
* ``bzr log`` now has an option called ``--omit-merges`` to omit
238
those commits that merged branches, i.e. those having more than one
240
In order to avoid confusion, the previous command line option
241
``--include-merges`` has been renamed to ``--include-merged``.
242
The old name of the command line option will still be accepted.
243
The name change also affects ``bzr missing``.
246
* ``bzr serve`` will now disconnect clients if they have not issued an RPC
247
request after 5minutes. On POSIX platforms, this will also happen for
248
``bzr serve --inet``. This can be overridden with the configuration
249
variable ``serve.client_timeout`` or in the command line parameter
250
``bzr serve --client-timeout=X``. Further, it is possible to request
251
``bzr serve [--inet]`` to shutdown gracefully by sending SIGHUP. It will
252
finish the current request, and then close the connection.
253
(John Arbash Meinel, #824797, #795025)
255
* The new experimental format ``development-colo`` supports colocated
256
branches. This format will eventually be merged back into the ``2a``
257
format when it has stabilized and there is adequate UI support for
259
(Jelmer Vernooij, #831481)
264
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
265
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
267
* ``bzr info -v`` can now be run against branches that don't support
268
``last_revision_info``, in which case the branch information will simply
269
not be displayed. (Jelmer Vernooij)
274
* ``bzr shelve`` can now be used in emacs shells as the input handling is
275
turned into a line-based one when ``INSIDE_EMACS`` is set (which is the
276
case for all recent emacs versions). (Vincent Ladeuil, #856261)
278
* ``bzr tags`` can now be used against remote repositories that do
279
not provide access to the revision graph. (Jelmer Vernooij, #858942)
281
* ``bzr update PATH`` will stop if you seem to be asking it to update
282
anything less than a whole tree, because that's not supported by ``bzr``'s
283
concept that the whole tree has a single basis revision. Previously, it
284
would go ahead and update the whole tree, which was surprising.
285
(Martin Pool, #557886)
287
* Don't crash if ``bzrlib.initialize()`` has not been called while accessing
288
configs. (Vincent Ladeuil, #863401)
290
* Redirects between http and https no longer discard path information
291
in some cases. (Jelmer Vernooij, #853765)
293
* The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer
294
reports all tags as changed. (Jelmer Vernooij, #845396)
296
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
297
specified that is unknown. (Jelmer Vernooij, #847435)
303
* ``Branch.get_revision_delta`` has been deprecated. Use
304
``Repository.get_revision_delta`` instead. (Jelmer Vernooij, #859712)
306
* Plugins that implement custom protocols for ``bzr serve`` should now
307
also take an argument ``timeout``. This is used by the the bzr protocol
308
to close a connection if a client has been idle for more than X seconds.
309
(Default 5minutes). (John Arbash Meinel)
311
* ``Repository.fileids_altered_by_revision_ids`` has been moved to
312
``VersionedFileRepository`` and is no longer part of the standard
313
``Repository`` interface. (Jelmer Vernooij)
315
* The argument ``include_merges`` to ``missing.find_unmerged`` has
316
been renamed to ``include_merged``. The old name is still supported
317
for now but will cause a deprecation warning. (Martin von Gagern)
319
* The new method ``ControlDirFormat.is_initializable()`` returns a boolean
320
indicating whether or not it is possible to use any of the
321
initialization methods of that format to create a new control dir.
327
* ``Branch`` objects can now use a config stack with the newly introduced
328
``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
329
be used for the same branch but it's recommended to stick to one for a
335
* Test scripts can now use ``bzr shelve`` and provide their input as
336
complete lines. (Vincent Ladeuil, #856261)
338
* Really corrupt the pack file without depending on a special length or value.
339
(Vincent Ladeuil, #807032)
347
This is the first beta of the 2.5 series, leading up to a 2.5.0
348
release in February 2012.
350
This release includes better support for gpg signing, better support for
351
i18n (mostly command help and error messages), more options to filter ``bzr
352
log`` output, more support for colocated branches ("location,branch=XXX"
353
syntax), better feedback on updated tags for various commands, faster
354
branching into an empty repository, enhancements to the config framework and
357
Beta releases are suitable for everyday use but may cause some
358
incompatibilities with plugins. Some plugins may need small updates to work
361
External Compatibility Breaks
362
*****************************
369
* A ``from_unicode`` parameter can be specified when registering a config
370
option. This implements boolean, integer and list config options when the
371
provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
372
are used for this parameter. (Vincent Ladeuil)
374
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
375
checks to see if the most recent published source package version for
376
that project is present in the branch tags. This should help developers
377
trust whether the packaging branch is up-to-date and can be used for new
378
changes. The level of verbosity is controlled by the config item
379
``launchpad.packaging_verbosity``. It can be set to one of
386
only display if the branch is out-of-date
389
also display single-line up-to-date and missing,
393
(default) display multi-line content for all states
396
(John Arbash Meinel, #609187, #812928)
398
* Add a config option gpg_signing_key for setting which GPG key should
399
be used to sign commits. Also default to using the gpg user identity
400
which matches user_email() as set by whoami.
401
(Jonathan Riddell, #68501)
403
* An ``invalid`` parameter can be specified when registering a config option
404
to decide what should be done when invalid values are
405
encountered. 'warning' and 'error' will respectively emit a warning and
406
ignore the value or errors out. (Vincent Ladeuil)
408
* bzr add now skips large files in recursive mode. The default "large"
409
size is 20MB, and is configurable via the add.maximum_file_size
410
option. A value of 0 disables skipping. Named items passed to add are
411
never skipped. (Shannon Weyrick, #54624)
413
* ``bzr help configuration/<option>`` display the help for ``option`` for
414
all registered configuration options. (Vincent Ladeuil, #747050)
416
* ``bzr log -m`` now matches message, author, committer and bugs instead
417
of just matching the message. ``--message`` keeps its original meaning,
418
while ``--match-message, --match-author, --match-committer`` and
419
``--match-bugs`` match each of those fields. (Jacek Sieka)
421
* ``config.Option`` can now declare ``default_from_env``, a list of
422
environment variables to get a default value from. (Vincent Ladeuil)
424
* ``config.NameMatcher`` can be used to implement config stores and stacks
425
that need to provide specific option values for arbitrary unique IDs (svn
426
repository UUIDs, etc). (Vincent Ladeuil, #843638)
428
* New builtin ``bzr branches`` command, which lists all colocated branches
429
in a directory. (Jelmer Vernooij, #826820)
431
* Relative local paths can now be specified in URL syntax by using the
432
"file:" prefix. (Jelmer Vernooij)
434
* Report commits signed with expired keys in ``verify-signatures``.
435
(Jonathan Riddell, #804254)
437
* Translations are now enabled for command help, errors and globally
438
for any message using ``gettext`` given on output. (Jonathan Riddell,
444
* ``bzr add`` will now warn about nested subtrees that are skipped.
445
(Jelmer Vernooij, #187342)
447
* ``bzr commit -m ''`` can now be used to force an empty commit message.
448
Entering an empty commit message in the message editor still triggers
449
an error. (Jelmer Vernooij)
451
* ``bzr pull`` will now mention how many tags it has updated.
452
(Jelmer Vernooij, #164450)
454
* ``bzr tag`` no longer errors if a tag already exists but refers to the
455
same revision, and will mention when a tag has been updated
456
rather than created. (Jelmer Vernooij, #381203)
458
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
459
The ``--keep-tags`` option can be used to prevent this behaviour.
460
(Jelmer Vernooij, #605814)
462
* Do not run i18n initialisation twice. (Jonathan Riddell)
464
* Install translation .mo files. (Jonathan Riddell)
466
* Locations printed by ``bzr upgrade`` are now formatted before display.
469
* ``Repository.get_parent_map`` now estimates the size of the returned
470
content more accurately. This means that we get closer to the desired
471
64kB/request. For repositories converted from svn, this can be an
472
improvement of approx 5:1 in round trips to discover the whole history.
475
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
476
if no bug tracker was specified on the command line.
477
(Jelmer Vernooij, #334860)
479
* Use ``gettext.NullTranslations`` in i18n to allow use of i18n even when
480
translations are not turned on. (Jonathan Riddell)
485
* ``bzr commit`` now correctly reports missing files as "removed", not
486
"modified". (Jelmer Vernooij, #553955)
488
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
489
in a single invocation, e.g. ``--branch`` and ``--use-shared``.
490
(Martin von Gagern, #842993)
492
* A call to CHKInventory's filter-method will not result in a
493
DuplicateFileId error, if you move a subfolder and change a file in
495
(Bastian Bowe, #809901)
497
* Branching from a stacked branch no longer does a ``get_parent_map``
498
request for each revisions that is in the stacked-on repository while
499
determining what revisions need to be fetched. This mostly impacts
500
branching initialy into an empty shared repository when the source is
501
not the development focus. (John Arbash Meinel, #388269)
503
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
504
errors. (Vincent Ladeuil, #822571)
506
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
507
raised whenever a transport at the drive root was opened on windows.
508
(Martin [gz], #841322)
510
* Fixed loading of external merge tools from config to properly decode
511
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
513
* Rather than an error being raised, a warning is now printed when the
514
current user does not have permission to read a configuration file.
515
(Jelmer Vernooij, #837324)
517
* The pull command will now always use separate connections for the
518
case where the destination is a heavyweight checkout of some remote
519
branch on the same host as the source branch.
520
(Martin von Gagern, #483661)
522
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
523
operations that use it, like merge, can now create trees without a root.
529
* Release instructions refreshed. (Vincent Ladeuil)
534
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
535
argument. (Jelmer Vernooij)
537
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
538
which indicates if the format should be for a lightweight or a
539
heavyweight checkout. (Jelmer Vernooij)
541
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
544
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
547
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
548
value in SI format (i.e. "20MB", "1GB") into its integer equivalent.
551
* New method ``InterTree.file_content_matches`` which checks that
552
two files in different trees have the same contents.
555
* New method ``Tree.get_file_verifier`` which allows tree implementations
556
to return non-sha1 checksums to verify files.
557
(Jelmer Vernooij, #720831)
559
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
560
have been added that only support opening from a path or a URL,
561
unlike ``get_transport``. (Jelmer Vernooij)
563
* New registry ``OptionRegistry`` specialized for configuration options.
566
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
569
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
570
``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
571
2.10 and 2.2.0. (Vincent Ladeuil)
573
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
575
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
576
``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
577
remove ``log.show_one_log`` which was never properly deprecated but wasn't
578
used and is easy to inline if needed. (Vincent Ladeuil)
580
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
581
deprecated in 2.1.0. (Vincent Ladeuil)
583
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
584
a default transport is currently unused. (Jelmer Vernooij)
586
* Remove ``UIFactory.warn_cross_format_fetch`` and
587
``UIFactory.warn_experimental_format_fetch`` in favor of
588
``UIFactory.show_user_warning``. (Jelmer Vernooij)
590
* ``Tags`` containers can now declare whether they support versioned
591
tags and whether tags can refer to ghost tags.
594
* ``Tags.merge_to`` now returns a dictionary with the updated tags
595
and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
597
* There is a new class `ContentFilterTree` that provides a facade for
598
content filtering. The `filtered` parameter to `export` is deprecated
599
in favor of passing a filtered tree, and the specific exporter plugins
600
no longer support it.
603
* ``Transport`` now has a ``_parsed_url`` attribute instead of
604
separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
605
and ``_path`` attributes. Proxies are provided for the moment but
606
may be removed in the future. (Jelmer Vernooij)
611
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
612
to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
613
is attempted. (Jelmer Vernooij)
615
* New method ``ControlDir._get_selected_branch`` which returns the
616
colocated branch selected using path segment parameters.
617
(Jelmer Vernooij, #380871)
622
* Blackbox tests (including test scripts) can be debugged interactively (see
623
bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
625
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
626
cleanly and reliably allows tests using `BranchBuilder` to construct
627
branches that e.g. rename files out of a directory and unversion that
628
directory in the same revision. Previously some changes were impossible
629
due to the order that `build_snapshot` performs its actions.
632
* Don't require ``os.fdatasync`` to be defined on all supported OSes
633
(BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
635
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
637
* ``LockDir`` can now be run when the local hostname is ``localhost``.
638
(Jelmer Vernooij, #825994)
640
* ``ModuleAvailableFeature`` won't try to import already imported modules,
641
allowing it to be used for modules with side-effects.
642
(Vincent Ladeuil, #712474)
644
* Output time stamps while running ``make check`` to get better timings from
645
pqm. (Vincent Ladeuil, #837926)
647
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
648
just compares the bytes in the dirstate file to its pristine state,
649
rather than opening the WorkingTree and calling ``last_revision()``.
650
This reduces the overall test suite time by about 10% on my laptop.
653
* Update `TestCase.knownFailure` to the testtools way of handling expected
654
failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
657
vim: tw=74 ft=rst ff=unix