11
:2.5.0: 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.
29
* "bzr switch -b" in a standalone tree will now create a colocated branch.
30
(Jelmer Vernooij, #918197)
32
* ``bzr info`` now reports when there are present (but unused) colocated
33
branches. (Jelmer Vernooij, #891646)
35
* Checkouts can now be into target directories that already have
36
a control directory (but no branch or working tree).
37
(Jelmer Vernooij, #913980)
39
* New HPSS call for ``BzrDir.get_branches``. (Jelmer Vernooij, #894460)
41
* Two new command hooks, ``pre_command`` and ``post_command``,
42
provide notification before and after a command has been run.
43
(Brian de Alwis, Jelmer Vernooij)
48
.. Fixes for situations where bzr would previously crash or give incorrect
49
or undesirable results.
51
* ``bzr branch`` now fetches revisions when branching into an empty
52
control directory. (Jelmer Vernooij, #905594)
54
* Support scripts that don't call bzrlib.initialize() but still call run_bzr().
55
(Vincent Ladeuil, #917733)
57
* Test for equality instead of object identity where ROOT_PARENT is concerned.
58
(Wouter van Heyst, #881142)
60
* urllib-based HTTPS client connections now verify the server certificate
61
validity as well as the hostname.
62
(Jelmer Vernooij, Vincent Ladeuil, #651161)
67
.. Improved or updated documentation.
72
.. Changes that may require updates in plugins or other code that uses
75
* ``ControlDir`` now has a new method ``set_branch_reference`` which can
76
be used for setting branch references. (Jelmer Vernooij)
81
.. Major internal changes, unlikely to be visible to users or plugin
82
developers, but interesting for bzr developers.
84
* A new matcher ``RevisionHistoryMatches`` has been added. (Jelmer Vernooij)
86
* ``MutableTree`` has two new hooks ``pre_transform`` and
87
``post_transform`` that are called for tree transform operations.
88
(Jelmer Vernooij, #912084)
93
.. Fixes and changes that are only relevant to bzr's test framework and
94
suite. This can include new facilities for writing tests, fixes to
95
spurious test failures and changes to the way things should be tested.
103
This is the fifth (and last) beta of the 2.5 series, leading to a 2.5.0
104
release in February 2012. Beta releases are suitable for everyday use but
105
may cause some incompatibilities with plugins.
107
This release includes many improvements in the smart server, UI polish for
108
the colocated branches, enhancements to the config framework and more
109
internal uses, bug fixes related to unicode and locale support and more.
111
All bug fixed in previous series known at the time of this release are
114
External Compatibility Breaks
115
*****************************
117
* The '.bzr/branch/email' file is no longer read to determine the users'
118
identity. Instead, the 'email' setting in '.bzr/branch/branch.conf'
119
should be used. (Jelmer Vernooij, #903894)
124
* "bzr mkdir" now includes -p (--parents) option for recursively adding
126
(Jared Hance, Jelmer Vernooij, #253529)
128
* ``config.Option`` can now declare ``override_from_env``, a list of
129
environment variables which, when set, that takes precedence over values
130
defined in configuration files. (Vincent Ladeuil, #907279)
135
* New HPSS call for ``Repository.reconcile``. (Jelmer Vernooij, #894455)
137
* Merge now has two new hooks ``pre_merge`` and ``post_merge``
138
that are called before and after a merge and can make
139
additional modifications to the trees involved.
140
(Jelmer Vernooij, #906877)
142
* Override the value returned by ``sys.getfilesystemencoding()`` for the bzr
143
script to utf-8 when it would otherwise be ascii on a posix system. This
144
will mean bzr works with non-ascii files when no locale or an incorrect
145
locale is set. (Martin Packman, #794353)
147
* ``bzr branches`` now indicates the active colocated branch.
148
(Jelmer Vernooij, #891667)
150
* ``bzr push`` now suggests using :parent if there is a parent location
151
set. (Jelmer Vernooij)
153
* ``bzr send`` now only opens a single connection, rather than two,
154
to the target branch. (Jelmer Vernooij)
159
* Allow configuration option default value to be a python callable at
160
registration. (Vincent Ladeuil, #832064)
162
* ``bzr config`` will now display the section ``[DEFAULT]`` used in
163
``bazaar.conf``. (Vincent Ladeuil, #907268)
165
* Configuration stores can now provides a specific quoting mechanism. This
166
is required to workaround ``configobj`` conflating quoting and list values
167
automatic conversion. (Vincent Ladeuil, #906897)
169
* Create obsolete_packs directory when repacking if it does not
170
exist. (Jonathan Riddell, Jelmer Vernooij, #314314)
172
* Fallback to the slower ``bzr log`` implementation when displaying a range
173
of revisions whose ancestry is not obviously on the same developement
174
line. (Vincent Ladeuil, #904744)
176
* Make lazy imports resilient when resolved concurrently from multiple
177
threads. Now the stand-in object will behave as a proxy for the real object
178
after the initial access, rather than throwing. Assigning the object to
179
multiple names should still be avoided. (Martin von Gagern, #396819)
181
* Not setting ``gpg_signing_key`` or setting it to ``default`` will use the
182
user email (obtained from the ``email`` configuration option or its
183
default value). (Vincent Ladeuil, Jelmer Vernooij, #904550)
185
* Prevent spurious InconsistentDelta error when committing a move of a
186
non-ascii directory with contents. (Rory Yorke, #185211)
188
* Properly ignore '\n' in an option reference since this cannot be part of a
189
config option identifier. (Vincent Ladeuil, #902125)
191
* Make sure that the bzr probers are always registered when
192
bzrlib.workingtree is imported. (Jelmer Vernooij, #905218)
194
* Report mistake trying to move a removed file with a non-ascii name without
195
UnicodeEncodeError being raised. (Martin Packman, #898541)
197
* Safely unquote configuration values in weird edge cases (a section seen as
198
a dictionary which is not a supported use case for the configuration
199
stacks). (Vincent Ladeuil, #908050)
201
* Stop altering ``sys.platform`` on OSX when initialising the locale.
202
(Martin Packman, #570495)
204
* Uncommit no longer removes tags if they are part of the working
205
trees pending merges. (Jelmer Vernooij, #905462)
210
* ``Config.signature_needed``, ``Config.signing_policy``,
211
``Config.gpg_signing_key``, ``Config.gpg_signing_command``,
212
``Config.checking_policy`` and ``Config.post_commit`` are now deprecated.
215
* ``Repository.get_commit_builder`` now takes a ``config_stack``
216
rather than a ``config`` argument. (Jelmer Vernooij)
218
* Scripts using bzrlib should now ensure setlocale is called on posix
219
platforms if they need a non-ascii user encoding. (Martin Packman)
221
* Send formats now accept a new optional argument ``submit_branch``,
222
which can be None or a Branch object for the submit branch location.
225
* ``VersionedFileRepository.add_revision`` no longer takes a ``config``
226
argument. (Jelmer Vernooij)
231
* Add HPSS call for ``Branch.get_checkout_format``. (Jelmer Vernooij, #894459)
233
* Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461)
235
* Add HPSS calls for ``Repository.iter_files_bytes``, speeding up
236
several commands including ``bzr export`` and ``bzr co --lightweight``.
237
(Jelmer Vernooij, #608640)
239
* All bzr control directories, branch formats, repository formats and
240
working tree formats now support feature flags, which are
241
serialized in their respective format files. See
242
``doc/developers/feature-flags.txt`` for details.
245
* ``bzrlib.urlutils`` now includes ``quote`` and ``unquote`` functions,
246
rather than importing them from ``urllib``. This prevents loading
247
of the ``socket``, ``ssl`` and ``urllib`` modules for
248
local bzr operations. (Jelmer Vernooij)
250
* Configuration options can be SI units by using ``int_SI_from_unicode`` as
251
their ``convert_from_unicode`` helper. (Vincent Ladeuil)
253
* Configuration stacks can now use ``StartingPathMatcher`` to select the
254
sections matching a location while respecting the order chosen by the user
255
in the configuration file: from generic sections to specific
256
sections. (Vincent Ladeuil, #832046).
258
* Configuration stores can now save incremental changes by using
259
``save_changes()`` instead of ``save()``. This reduces the number or
260
required input/outputs and allows stores to be shared between
261
stacks. (Vincent Ladeuil)
263
* ControlDir now has a get_branches method that returns a dictionary
264
whose keys are the names of the branches and whose values are the
265
branches themselves. The active branch uses the key None.
266
(Neil Martinsen-Burrell)
268
* Helper ``osutils.path_from_environ`` added for extracting a unicode path
269
from an environment variable. (Martin Packman, #832028)
271
* Helper ``win32utils.get_environ_unicode`` added for avoiding encoding
272
problems with ``os.environ.get`` use. (Martin Packman, #262874)
274
* Lazy imports can now only be absolute. (Jelmer Vernooij)
276
* Merge3Mergers now have an optional ``other_branch`` argument
277
which contains the branch from which the ``other_tree``
278
was obtained, if any. (Jelmer Vernooij)
280
* MutableTree now has a hook ``post_build_tree`` which is called after
281
a new mutable tree has been created. (Jelmer Vernooij, #912765)
283
* New HPSS call ``BzrDir.checkout_metadir``. (Jelmer Vernooij, #894459)
285
* New HPSS call ``VersionedFileRepository.get_inventories``,
286
speeding up various commands including ``bzr export``,
287
``bzr checkout`` and ``bzr cat``. (Jelmer Vernooij, #608640)
289
* The ``ConfigCommandLineStore`` is now supported by ``bzr config`` and is
290
seen as single no-name section of configuration options. (Vincent Ladeuil)
295
* New matcher ``ContainsNoVfsCalls`` which filters a list of HPSS
296
calls for VFS requests. (Jelmer Vernooij)
298
* New ``MemoryStack`` class allows for diskless tests and locally injected
299
configuration stacks. Lower level tests for predefined set of options can
300
be written without setting up configuration files. (Vincent Ladeuil)
308
This is the fourth beta of the 2.5 series, leading to a 2.5.0 release in
309
February 2012. Beta releases are suitable for everyday use but may cause
310
some incompatibilities with plugins.
312
This release includes many improvements in the smart server, UI polish for
313
the colocated branches, optimizations for revision specifiers to avoid
314
history sized operations, enhancements to the config framework, bug fixes
315
related to unicode paths and more.
317
All bug fixed in previous series known at the time of this release are
320
External Compatibility Breaks
321
*****************************
328
* Provides a ``po_merge`` plugin to automatically merge ``.po`` files with
329
``msgmerge``. See ``bzr help po_merge`` for details.
330
(Vincent Ladeuil, #884270)
335
* ``bzr branch --stacked`` now only makes a single connection to the remote
336
server rather than three. (Jelmer Vernooij, #444293)
338
* ``bzr export --uncommitted`` will export the uncommitted tree.
339
(Jelmer Vernooij, #555613)
341
* ``bzr rmbranch`` can now remove colocated branches.
342
(Jelmer Vernooij, #831464)
344
* ``bzr status`` no longer shows shelves if files are specified.
347
* ``bzr switch`` now accepts colocated branch names to switch to.
348
(Jelmer Vernooij, #826814)
350
* Plugins can now register additional "location aliases".
353
* Revision specifiers will now only browse as much history as they
354
need to, rather than grabbing the whole history unnecessarily in some
355
cases. (Jelmer Vernooij)
357
* When using ``bzr switch`` to switch to a sibling of the current
358
branch, the relative branch name should no longer be url-encoded.
364
* A new section local option ``basename`` is available to help support some
365
``bzr-pipeline`` workflows and more generally help mapping local paths to
366
remote ones. See ``bzr help configuration`` for more details.
367
(Vincent Ladeuil, #843211)
369
* Add HPSS call for looking up revision numbers from revision ids on
370
remote repositories. (Jelmer Vernooij, #640253)
372
* Add HPSS call for retrieving file contents from remote repositories.
373
Should improve performance for lightweight checkouts and exports of
374
from remote repositories. (Jelmer Vernooij, #368717, #762330, #608640)
376
* Allow lazy compiled patterns from ``bzrlib.lazy_regex`` to be
377
pickled. (Jelmer Vernooij, #893149)
379
* ``bzr info`` no longer shows empty output if only a control
380
directory is present. (Jelmer Vernooij, #159098)
382
* Cope with missing revision ids being specified to
383
``Repository.gather_stats`` HPSS call. (Jelmer Vernooij, #411290)
385
* Fix test failures on windows related to locations.conf handling.
386
(Vincent Ladeuil, #892992)
388
* Fixed parsing of the timestamp given to ``commit --commit-time``. Now
389
prohibits several invalid strings, reads the correct number of seconds,
390
and gives a better error message if the time zone offset is not given.
391
(Matt Giuca, #892657)
393
* Give meaningful file/line references when reporting deprecation warnings
394
for _CompatabilityThunkFeature based test features.
395
(Vincent Ladeuil, #897718)
397
* Make reporting of mistakes involving unversioned files with non-ascii
398
filenames work again without 'Unprintable exception' being shown.
399
(Martin Packman, #898408)
401
* Provide names for lazily registered hooks.
402
(Neil Martinsen-Burrell, #894609)
404
* Raise BadIndexKey exception in btree_index when a key is too large, fixing
405
an infinite recursion issue. (Shannon Weyrick, #720853)
407
* Resolve regression from colocated branch path handling, by ensuring that
408
unreserved characters are unquoted in URLs. (Martin Packman, #842223)
410
* Split segments from URLs for colocated branches without assuming the
411
combined form is valid. (Martin Packman, #842233)
413
* Support looking up revision numbers by revision id in empty branches.
414
(Jelmer Vernooij, #535031)
416
* Support verifying signatures on remote repositories.
417
(Jelmer Vernooij, #889694)
419
* Teach the bzr client how to reconnect if we get ``ConnectionReset``
420
while making an RPC request. This doesn't handle all possible network
421
disconnects, but it should at least handle when the server is asked to
422
shutdown gracefully. (John Arbash Meinel, #819604)
424
* When a remote format is unknown, bzr will now print a single-line error
425
message rather than a backtrace. (Jelmer Vernooij, #687226)
430
* ``BzrDir.open_branch`` and ``BranchFormat.open`` now take an optional
431
``possible_transports`` argument. (Jelmer Vernooij)
433
* New method ``Transport.set_segment_parameter``. (Jelmer Vernooij)
435
* ``Repository.verify_revision`` has been renamed to
436
``Repository.verify_revision_signature``. (Jelmer Vernooij)
438
* ``RevisionSpec.wants_revision_history`` now defaults to ``False`` and
439
is deprecated. The ``revs`` argument of
440
``RevisionInfo.from_revision_id`` is now deprecated. (Jelmer Vernooij)
442
* ``Tree.get_file_by_path`` is now deprecated. Use ``Tree.get_file`` instead.
443
(Jelmer Vernooij, #666897)
445
* Some global options for use with commands have been removed, construct
446
an ``Option`` with the name instead. (Martin Packman)
448
* The unused exception ``HistoryMissing`` has been removed.
454
* Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461)
456
* ``bzr config`` uses the new configuration implementation.
459
* Custom HPSS error handlers can now be installed in the smart server client
460
using the ``error_translators`` and ``no_context_error_translators``
461
registries. (Jelmer Vernooij)
463
* New HPSS calls ``Repository.has_signature_for_revision_id``,
464
``Repository.make_working_trees``, ``BzrDir.destroy_repository``,
465
``BzrDir.has_workingtree``, ``Repository.get_physical_lock_status``,
466
``Branch.get_physical_lock_status``,
467
``Branch.put_config_file``, ``Branch.break_lock``,
468
``BzrDir.destroy_branch``, ``Repository.break_lock``,
469
``VersionedFileRepository.get_serializer_format``,
470
``Repository.all_revision_ids``, ``Repository.start_write_group``,
471
``Repository.commit_write_group``, ``Repository.abort_write_group``
472
``Repository.check_write_group``, ``Repository.iter_revisions``,
473
``Repository.add_signature_revision_text`` and
474
``Repository.get_revision_signature_text``.
477
* ``RemoteBranch.get_config_stack`` and ``RemoteBzrDir.get_config_stack``
478
will now use HPSS calls where possible. (Jelmer Vernooij)
480
* The registry of merge types has been moved to ``merge`` from ``option`` but
481
``merge.get_merge_type_registry`` remains as an accessor. (Martin Packman)
486
* Avoid failures in test_transform when OS error messages are localised.
487
(Martin Packman, #891582)
489
* Tests are now subject to a time limit: by default 300s, and 120s when
490
run from 'make check', controlled by the `selftest.timeout`
491
configuration option. This is currently not supported on Windows.
499
This is the third beta of the 2.5 series, leading to a 2.5.0 release in
500
February 2012. Beta releases are suitable for everyday use but may cause
501
some incompatibilities with plugins.
503
This release includes log options for ``push`` and ``pull``, more UI polish
504
for colocated branches, a better and more coherent implementation for UI
505
dialogs, enhancements to the config framework and more.
507
This release includes all bug fixed in previous series known at the time of
510
External Compatibility Breaks
511
*****************************
518
* The ``log_format`` configuration can be used with ``-Olog_format=line`` to
519
change the format ``push`` and ``pull`` use to display the
520
revisions. I.e.: ``bzr pull -v -Olog_format=short`` will use the ``short``
521
format instead of the default ``long`` one. (Vincent Ladeuil, #861472)
523
* The new config scheme allows an alternative syntax for the 'appenpath'
524
policy relying on option expansion and defining a new 'relpath' option
525
local to a section. Instead of using '<option>:policy=appendpath', the
526
option value can de defined as 'option=xxxx/{relpath}'.
527
(Vincent Ladeuil, #832013)
532
* ``bzr info -v`` now shows the number of colocated branches
533
for control directories that support them.
534
(Jelmer Vernooij, #863285)
536
* ``bzr version-info`` now takes a ``--revision`` argument.
537
(Jelmer Vernooij, #238705)
539
* ``bzr revno`` now takes a ``--revision`` argument.
540
(Jelmer Vernooij, #870649)
542
* ``bzr serve`` now can serve from URLs rather than just from the
543
file system. I.e.: ``bzr serve -d lp:bzr`` or
544
``bzr serve -d file:///data/bzr`` (Jelmer Vernooij)
546
* all input prompts are now char-based when possible, and can be forced to
547
line-based mode by setting the ``BZR_TEXTUI_INPUT`` environment variable
548
to 'line-based'. This replace the previous shelf UI only patch using
549
``INSIDE_EMACS``. (Benoît Pierre)
554
* ``bzr info`` now shows the master branch location too for
555
treeless local branches. (Jelmer Vernooij, #258355)
557
* ``bzr mkdir --quiet`` now does not print a line for every created
558
directory. (Martin von Gagern, #869915)
560
* ``bzr mv`` does not crash when attempting to move the root of a
561
branch. (Jonathan Riddell, #809728)
563
* ``bzr shelve`` now use ``UIFactory.choose`` for input handling, making
564
it usable when creating a custom ``UIFactory`` implementation. (Benoît
567
* ``bzr clean-tree`` now use ``UIFactory.get_boolean`` for confirmation
568
prompt, making it usable when using a custom ``UIFactory``
569
implementation. (Benoît Pierre)
571
* If sending a crash through Apport fails report the Apport failure to
572
bzr.log rather than stderr. (Jonathan Riddell, #766735)
574
* ``bzr upgrade`` no longer treats 'already up-to-date' exceptions as
575
errors. (Benoît Pierre, #716560).
577
* ``bzr version-info`` no longer populates the clean state for custom
578
templates unless {clean} is explicitly asked for.
579
(Lawrence Mitchell, #882541)
581
* Fix finding the CPU count when using Python >= 2.6 on BSD-based systems.
582
(Jelmer Vernooij, #887151)
584
* ``WorkingTree.clone()`` now supports its ``revision_id`` being set
585
to the null revision. (Jelmer Vernooij, #876423)
587
* ``WorkingTree.pull`` can now pull ``NULL_REVISION``.
588
(Jelmer Vernooij, #887556)
593
* ``Branch.revision_history`` is now deprecated. (Jelmer Vernooij, #799519)
595
* Methods ``add`` and ``items`` of ``LRUCache`` and ``LRUSizeCache`` are
596
deprecated. Use normal dict-style access instead. (Martin Packman)
598
* New flag ``RepositoryFormat.supports_unreferenced_revisions`` which
599
indicates whether revisions can be present in a repository without
600
being referenced from e.g. a branch history at the same time.
603
* ``UIFactory.choose`` has been added: prompt the user for a list of
604
choices. (Benoît Pierre)
609
* ``ControlDirFormat`` now has a new method ``supports_transport``
610
which format implementations can use whether or not they can access
611
a control dir over a particular transport. (Jelmer Vernooij)
613
* ``BranchBuilder.build_commit`` now take ``parent_ids`` and
614
``allow_leftmost_as_ghost`` arguments. (Jelmer Vernooij)
619
* Ensure TestCase instances are deallocated immediately after running where
620
possible. This greatly reduces the peak resource needs of a full test suite
621
run. The new ``-Euncollected_cases`` selftest flag will add failures if any
622
case which persists pasts its expected lifetime. (Martin Packman, #613247)
624
* Report exceptions from child processes during fork instead of swallowing the
625
error and reporting that everything went okay. (Martin Packman, #804130)
631
This is the second beta of the 2.5 series, leading to a 2.5.0 release in
632
February 2012. Beta releases are suitable for everyday use but may cause some
633
incompatibilities with plugins.
635
This release includes more filtering options for ``bzr log``, idle
636
connections handling for ``bzr serve``, a ``development-colo`` experimental
637
format to flesh out the colocated branches UI, better support for foreign
638
formats, enhancements to the config framework and more.
640
This release includes all bug fixed in previous series known at the time of
645
External Compatibility Breaks
646
*****************************
653
* A new ``-O`` standard option (common to all commands) have been added. It
654
provides a value for a config option in the ``-Oname=value`` form that
655
takes precedence over all definitions found in config files. It can be
656
used multiple times to override different options.
657
(Vincent Ladeuil, #491196)
659
* ``bzr log`` now has an option called ``--omit-merges`` to omit
660
those commits that merged branches, i.e. those having more than one
662
In order to avoid confusion, the previous command line option
663
``--include-merges`` has been renamed to ``--include-merged``.
664
The old name of the command line option will still be accepted.
665
The name change also affects ``bzr missing``.
668
* ``bzr serve`` will now disconnect clients if they have not issued an RPC
669
request after 5minutes. On POSIX platforms, this will also happen for
670
``bzr serve --inet``. This can be overridden with the configuration
671
variable ``serve.client_timeout`` or in the command line parameter
672
``bzr serve --client-timeout=X``. Further, it is possible to request
673
``bzr serve [--inet]`` to shutdown gracefully by sending SIGHUP. It will
674
finish the current request, and then close the connection.
675
(John Arbash Meinel, #824797, #795025)
677
* The new experimental format ``development-colo`` supports colocated
678
branches. This format will eventually be merged back into the ``2a``
679
format when it has stabilized and there is adequate UI support for
681
(Jelmer Vernooij, #831481)
686
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
687
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
689
* ``bzr info -v`` can now be run against branches that don't support
690
``last_revision_info``, in which case the branch information will simply
691
not be displayed. (Jelmer Vernooij)
696
* ``bzr shelve`` can now be used in emacs shells as the input handling is
697
turned into a line-based one when ``INSIDE_EMACS`` is set (which is the
698
case for all recent emacs versions). (Vincent Ladeuil, #856261)
700
* ``bzr tags`` can now be used against remote repositories that do
701
not provide access to the revision graph. (Jelmer Vernooij, #858942)
703
* ``bzr update PATH`` will stop if you seem to be asking it to update
704
anything less than a whole tree, because that's not supported by ``bzr``'s
705
concept that the whole tree has a single basis revision. Previously, it
706
would go ahead and update the whole tree, which was surprising.
707
(Martin Pool, #557886)
709
* Don't crash if ``bzrlib.initialize()`` has not been called while accessing
710
configs. (Vincent Ladeuil, #863401)
712
* Redirects between http and https no longer discard path information
713
in some cases. (Jelmer Vernooij, #853765)
715
* The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer
716
reports all tags as changed. (Jelmer Vernooij, #845396)
718
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
719
specified that is unknown. (Jelmer Vernooij, #847435)
725
* ``Branch.get_revision_delta`` has been deprecated. Use
726
``Repository.get_revision_delta`` instead. (Jelmer Vernooij, #859712)
728
* Plugins that implement custom protocols for ``bzr serve`` should now
729
also take an argument ``timeout``. This is used by the the bzr protocol
730
to close a connection if a client has been idle for more than X seconds.
731
(Default 5minutes). (John Arbash Meinel)
733
* ``Repository.fileids_altered_by_revision_ids`` has been moved to
734
``VersionedFileRepository`` and is no longer part of the standard
735
``Repository`` interface. (Jelmer Vernooij)
737
* The argument ``include_merges`` to ``missing.find_unmerged`` has
738
been renamed to ``include_merged``. The old name is still supported
739
for now but will cause a deprecation warning. (Martin von Gagern)
741
* The new method ``ControlDirFormat.is_initializable()`` returns a boolean
742
indicating whether or not it is possible to use any of the
743
initialization methods of that format to create a new control dir.
749
* ``Branch`` objects can now use a config stack with the newly introduced
750
``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
751
be used for the same branch but it's recommended to stick to one for a
757
* Test scripts can now use ``bzr shelve`` and provide their input as
758
complete lines. (Vincent Ladeuil, #856261)
760
* Really corrupt the pack file without depending on a special length or value.
761
(Vincent Ladeuil, #807032)
769
This is the first beta of the 2.5 series, leading up to a 2.5.0
770
release in February 2012.
772
This release includes better support for gpg signing, better support for
773
i18n (mostly command help and error messages), more options to filter ``bzr
774
log`` output, more support for colocated branches ("location,branch=XXX"
775
syntax), better feedback on updated tags for various commands, faster
776
branching into an empty repository, enhancements to the config framework and
779
Beta releases are suitable for everyday use but may cause some
780
incompatibilities with plugins. Some plugins may need small updates to work
783
External Compatibility Breaks
784
*****************************
791
* A ``from_unicode`` parameter can be specified when registering a config
792
option. This implements boolean, integer and list config options when the
793
provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
794
are used for this parameter. (Vincent Ladeuil)
796
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
797
checks to see if the most recent published source package version for
798
that project is present in the branch tags. This should help developers
799
trust whether the packaging branch is up-to-date and can be used for new
800
changes. The level of verbosity is controlled by the config item
801
``launchpad.packaging_verbosity``. It can be set to one of
808
only display if the branch is out-of-date
811
also display single-line up-to-date and missing,
815
(default) display multi-line content for all states
818
(John Arbash Meinel, #609187, #812928)
820
* Add a config option gpg_signing_key for setting which GPG key should
821
be used to sign commits. Also default to using the gpg user identity
822
which matches user_email() as set by whoami.
823
(Jonathan Riddell, #68501)
825
* An ``invalid`` parameter can be specified when registering a config option
826
to decide what should be done when invalid values are
827
encountered. 'warning' and 'error' will respectively emit a warning and
828
ignore the value or errors out. (Vincent Ladeuil)
830
* bzr add now skips large files in recursive mode. The default "large"
831
size is 20MB, and is configurable via the add.maximum_file_size
832
option. A value of 0 disables skipping. Named items passed to add are
833
never skipped. (Shannon Weyrick, #54624)
835
* ``bzr help configuration/<option>`` display the help for ``option`` for
836
all registered configuration options. (Vincent Ladeuil, #747050)
838
* ``bzr log -m`` now matches message, author, committer and bugs instead
839
of just matching the message. ``--message`` keeps its original meaning,
840
while ``--match-message, --match-author, --match-committer`` and
841
``--match-bugs`` match each of those fields. (Jacek Sieka)
843
* ``config.Option`` can now declare ``default_from_env``, a list of
844
environment variables to get a default value from. (Vincent Ladeuil)
846
* ``config.NameMatcher`` can be used to implement config stores and stacks
847
that need to provide specific option values for arbitrary unique IDs (svn
848
repository UUIDs, etc). (Vincent Ladeuil, #843638)
850
* New builtin ``bzr branches`` command, which lists all colocated branches
851
in a directory. (Jelmer Vernooij, #826820)
853
* Relative local paths can now be specified in URL syntax by using the
854
"file:" prefix. (Jelmer Vernooij)
856
* Report commits signed with expired keys in ``verify-signatures``.
857
(Jonathan Riddell, #804254)
859
* Translations are now enabled for command help, errors and globally
860
for any message using ``gettext`` given on output. (Jonathan Riddell,
866
* ``bzr add`` will now warn about nested subtrees that are skipped.
867
(Jelmer Vernooij, #187342)
869
* ``bzr commit -m ''`` can now be used to force an empty commit message.
870
Entering an empty commit message in the message editor still triggers
871
an error. (Jelmer Vernooij)
873
* ``bzr pull`` will now mention how many tags it has updated.
874
(Jelmer Vernooij, #164450)
876
* ``bzr tag`` no longer errors if a tag already exists but refers to the
877
same revision, and will mention when a tag has been updated
878
rather than created. (Jelmer Vernooij, #381203)
880
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
881
The ``--keep-tags`` option can be used to prevent this behaviour.
882
(Jelmer Vernooij, #605814)
884
* Do not run i18n initialisation twice. (Jonathan Riddell)
886
* Install translation .mo files. (Jonathan Riddell)
888
* Locations printed by ``bzr upgrade`` are now formatted before display.
891
* ``Repository.get_parent_map`` now estimates the size of the returned
892
content more accurately. This means that we get closer to the desired
893
64kB/request. For repositories converted from svn, this can be an
894
improvement of approx 5:1 in round trips to discover the whole history.
897
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
898
if no bug tracker was specified on the command line.
899
(Jelmer Vernooij, #334860)
901
* Use ``gettext.NullTranslations`` in i18n to allow use of i18n even when
902
translations are not turned on. (Jonathan Riddell)
907
* ``bzr commit`` now correctly reports missing files as "removed", not
908
"modified". (Jelmer Vernooij, #553955)
910
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
911
in a single invocation, e.g. ``--branch`` and ``--use-shared``.
912
(Martin von Gagern, #842993)
914
* A call to CHKInventory's filter-method will not result in a
915
DuplicateFileId error, if you move a subfolder and change a file in
917
(Bastian Bowe, #809901)
919
* Branching from a stacked branch no longer does a ``get_parent_map``
920
request for each revisions that is in the stacked-on repository while
921
determining what revisions need to be fetched. This mostly impacts
922
branching initialy into an empty shared repository when the source is
923
not the development focus. (John Arbash Meinel, #388269)
925
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
926
errors. (Vincent Ladeuil, #822571)
928
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
929
raised whenever a transport at the drive root was opened on windows.
930
(Martin [gz], #841322)
932
* Fixed loading of external merge tools from config to properly decode
933
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
935
* Rather than an error being raised, a warning is now printed when the
936
current user does not have permission to read a configuration file.
937
(Jelmer Vernooij, #837324)
939
* The pull command will now always use separate connections for the
940
case where the destination is a heavyweight checkout of some remote
941
branch on the same host as the source branch.
942
(Martin von Gagern, #483661)
944
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
945
operations that use it, like merge, can now create trees without a root.
951
* Release instructions refreshed. (Vincent Ladeuil)
956
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
957
argument. (Jelmer Vernooij)
959
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
960
which indicates if the format should be for a lightweight or a
961
heavyweight checkout. (Jelmer Vernooij)
963
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
966
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
969
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
970
value in SI format (i.e. "20MB", "1GB") into its integer equivalent.
973
* New method ``InterTree.file_content_matches`` which checks that
974
two files in different trees have the same contents.
977
* New method ``Tree.get_file_verifier`` which allows tree implementations
978
to return non-sha1 checksums to verify files.
979
(Jelmer Vernooij, #720831)
981
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
982
have been added that only support opening from a path or a URL,
983
unlike ``get_transport``. (Jelmer Vernooij)
985
* New registry ``OptionRegistry`` specialized for configuration options.
988
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
991
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
992
``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
993
2.10 and 2.2.0. (Vincent Ladeuil)
995
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
997
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
998
``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
999
remove ``log.show_one_log`` which was never properly deprecated but wasn't
1000
used and is easy to inline if needed. (Vincent Ladeuil)
1002
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
1003
deprecated in 2.1.0. (Vincent Ladeuil)
1005
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
1006
a default transport is currently unused. (Jelmer Vernooij)
1008
* Remove ``UIFactory.warn_cross_format_fetch`` and
1009
``UIFactory.warn_experimental_format_fetch`` in favor of
1010
``UIFactory.show_user_warning``. (Jelmer Vernooij)
1012
* ``Tags`` containers can now declare whether they support versioned
1013
tags and whether tags can refer to ghost tags.
1016
* ``Tags.merge_to`` now returns a dictionary with the updated tags
1017
and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
1019
* There is a new class `ContentFilterTree` that provides a facade for
1020
content filtering. The `filtered` parameter to `export` is deprecated
1021
in favor of passing a filtered tree, and the specific exporter plugins
1022
no longer support it.
1025
* ``Transport`` now has a ``_parsed_url`` attribute instead of
1026
separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
1027
and ``_path`` attributes. Proxies are provided for the moment but
1028
may be removed in the future. (Jelmer Vernooij)
1033
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
1034
to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
1035
is attempted. (Jelmer Vernooij)
1037
* New method ``ControlDir._get_selected_branch`` which returns the
1038
colocated branch selected using path segment parameters.
1039
(Jelmer Vernooij, #380871)
1044
* Blackbox tests (including test scripts) can be debugged interactively (see
1045
bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
1047
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
1048
cleanly and reliably allows tests using `BranchBuilder` to construct
1049
branches that e.g. rename files out of a directory and unversion that
1050
directory in the same revision. Previously some changes were impossible
1051
due to the order that `build_snapshot` performs its actions.
1054
* Don't require ``os.fdatasync`` to be defined on all supported OSes
1055
(BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
1057
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
1059
* ``LockDir`` can now be run when the local hostname is ``localhost``.
1060
(Jelmer Vernooij, #825994)
1062
* ``ModuleAvailableFeature`` won't try to import already imported modules,
1063
allowing it to be used for modules with side-effects.
1064
(Vincent Ladeuil, #712474)
1066
* Output time stamps while running ``make check`` to get better timings from
1067
pqm. (Vincent Ladeuil, #837926)
1069
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
1070
just compares the bytes in the dirstate file to its pristine state,
1071
rather than opening the WorkingTree and calling ``last_revision()``.
1072
This reduces the overall test suite time by about 10% on my laptop.
1075
* Update `TestCase.knownFailure` to the testtools way of handling expected
1076
failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
1079
vim: tw=74 ft=rst ff=unix