11
:2.5.2: 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.
38
.. Improved or updated documentation.
43
.. Changes that may require updates in plugins or other code that uses
49
.. Major internal changes, unlikely to be visible to users or plugin
50
developers, but interesting for bzr developers.
55
.. Fixes and changes that are only relevant to bzr's test framework and
56
suite. This can include new facilities for writing tests, fixes to
57
spurious test failures and changes to the way things should be tested.
65
This is a bugfix release. Most of the bugs dealt with https and colocated
66
branches glitches. Upgrading is recommended for all users of earlier 2.5
69
External Compatibility Breaks
70
*****************************
82
* ``bzr rmbranch`` now supports removing colocated branches.
83
(Jelmer Vernooij, #920653)
85
* ``bzr rmbranch`` no longer removes active branches unless ``--force``
86
is specified. (Jelmer Vernooij, #922953)
91
* Connecting with HTTPS via HTTP now correctly uses the host name of the
92
destination rather than the proxy when checking certificates.
93
(Martin Packman, #944696)
95
* Fixed merge tool availability checking and invocation to search the
96
Windows App Path registry in addition to the PATH. (Gordon Tyler, #939605)
98
* Fixed problem with getting errors about failing to open /dev/tty when using
99
Bazaar Explorer to sign commits. (Mark Grandi, #847388)
101
* Fix UnicodeEncodeError when translated progress task messages contain
102
non-ascii text. (Martin Packman, #966934)
104
* Make sure configuration options can provide their own help topic.
105
(Jelmer Vernooij, #941672)
110
* The alpha-quality texinfo sphinx builder has been deprecated. Sphinx >=
111
1.1.2 now provides a better one. Most of the documentation can now be
112
generated to the texinfo format with ``make texinfo-sphinx``. This will
113
generate both the ``.texi`` files and the ``.info`` ones.
114
(Vincent Ladeuil, #940164)
124
* Add support for pyftpdlib >= 0.7.0 and drop support for previous pyftpdlib
125
versions. (Vincent Ladeuil, #956027)
127
* Run smoketest for setup.py isolated in a tempdir. (Martin Packman, #140874)
136
This release marks the start of a new long-term-stable series. From here, we
137
will only make bugfix releases on the 2.5 series (2.5.1, etc, and support it
138
until April 2017), while 2.6 will become our new development series.
140
This is a bugfix and polish release over the 2.4 series, with a large number
141
of bugs fixed (~170 for the 2.5 series alone). The 2.5 series provides a
142
faster smart protocol implementation for many operations, basic support for
143
colocated branches. We have started translating bzr with the 2.5 series:
144
https://translations.launchpad.net/bzr, more than 20 languages have already
145
been registered but these are the early days, contributions welcome.
147
Only a few bugfixes have been included since 2.5b6 so all known fixed bugs
150
Users are encouraged to upgrade from the other stable series.
153
External Compatibility Breaks
154
*****************************
166
* The names of colocated branches are used as branch nicks if no nick is
167
specified. (Aaron Bentley)
172
* Show locks in ``bzr info`` on control directories without a
173
repository. (Jelmer Vernooij, #936767)
175
* Disable ssl certificate verification on osx and windows until a native
176
access to the the root certificates is provided there.
177
(Vincent Ladeuil, #929179)
182
* Stop depending on the particular CPython ordering of dictionary keys
183
when testing the result of BzrDir.get_branches.
191
This is the sixth (and last (really)) beta of the 2.5 series, leading to a
192
2.5.0 release in March 2012. Beta releases are suitable for everyday use
193
but may cause some incompatibilities with plugins.
195
This introduces the support for colocated branches into the '2a' format in a
196
backward compatible way, fix more glitches in the colocated UI, verify https
197
certificates for the urllib https client implementation, fix some more
198
unicode issues and more.
200
All bugs fixed in previous series known at the time of this release are
203
External Compatibility Breaks
204
*****************************
211
* Support for colocated branches is now available in the default
212
format ("2a"). (Jelmer Vernooij)
217
* ``bzr switch -b`` in a standalone tree will now create a colocated branch.
218
(Jelmer Vernooij, #918197)
220
* ``bzr info`` now reports when there are present (but unused) colocated
221
branches. (Jelmer Vernooij, #891646)
223
* Checkouts can now be into target directories that already have
224
a control directory (but no branch or working tree).
225
(Jelmer Vernooij, #913980)
227
* Colocated branches can now have names including forward slashes, to
228
allow for namespaces. (Jelmer Vernooij, #907980)
230
* New HPSS call for ``BzrDir.get_branches``. (Jelmer Vernooij, #894460)
232
* Checkouts of colocated branches are now always lightweight.
233
(Jelmer Vernooij, #918828)
238
* ``bzr branch`` now fetches revisions when branching into an empty
239
control directory. (Jelmer Vernooij, #905594)
241
* A sane default is provided for ``ssl.ca_certs`` which should points to the
242
Certificate Authority bundle for supported platforms.
243
(Vincent Ladeuil, #920455)
245
* ``bzr branch`` generates correct target branch locations again if not
246
specified. (Jelmer Vernooij, #919218)
248
* ``bzr send`` works on treeless branches again.
249
(Jelmer Vernooij, #921591)
251
* ``bzr version`` no longer throws a UnicodeDecodeError if the .bzr.log path
252
contains non-ascii characters. (Martin Packman, #312841)
254
* Support scripts that don't call bzrlib.initialize() but still call run_bzr().
255
(Vincent Ladeuil, #917733)
257
* Test for equality instead of object identity where ROOT_PARENT is concerned.
258
(Wouter van Heyst, #881142)
260
* urllib-based HTTPS client connections now verify the server certificate
261
validity as well as the hostname.
262
(Jelmer Vernooij, Vincent Ladeuil, #651161)
268
* ``config.config_dir`` and related functions now always return paths as
269
unicode. (Martin Packman, #825826)
271
* ``ControlDir`` now has a new method ``set_branch_reference`` which can
272
be used for setting branch references. (Jelmer Vernooij)
274
* ``ControlDir.destroy_branch`` now raises ``NotBranchError`` rather than
275
``NoSuchFile`` if the branch didn't exist. (Jelmer Vernooij, #921693)
280
* A new matcher ``RevisionHistoryMatches`` has been added. (Jelmer Vernooij)
282
* Add new module ``bzrlib.url_policy_open``. (Jelmer Vernooij, #850843)
284
* ``MutableTree`` has two new hooks ``pre_transform`` and
285
``post_transform`` that are called for tree transform operations.
286
(Jelmer Vernooij, #912084)
292
* Be more careful about closing open files for pypy interoperability.
300
This is the fifth (and last) beta of the 2.5 series, leading to a 2.5.0
301
release in February 2012. Beta releases are suitable for everyday use but
302
may cause some incompatibilities with plugins.
304
This release includes many improvements in the smart server, UI polish for
305
the colocated branches, enhancements to the config framework and more
306
internal uses, bug fixes related to unicode and locale support and more.
308
All bug fixed in previous series known at the time of this release are
311
External Compatibility Breaks
312
*****************************
314
* The '.bzr/branch/email' file is no longer read to determine the users'
315
identity. Instead, the 'email' setting in '.bzr/branch/branch.conf'
316
should be used. (Jelmer Vernooij, #903894)
321
* "bzr mkdir" now includes -p (--parents) option for recursively adding
323
(Jared Hance, Jelmer Vernooij, #253529)
325
* ``config.Option`` can now declare ``override_from_env``, a list of
326
environment variables which, when set, that takes precedence over values
327
defined in configuration files. (Vincent Ladeuil, #907279)
332
* New HPSS call for ``Repository.reconcile``. (Jelmer Vernooij, #894455)
334
* Merge now has two new hooks ``pre_merge`` and ``post_merge``
335
that are called before and after a merge and can make
336
additional modifications to the trees involved.
337
(Jelmer Vernooij, #906877)
339
* Override the value returned by ``sys.getfilesystemencoding()`` for the bzr
340
script to utf-8 when it would otherwise be ascii on a posix system. This
341
will mean bzr works with non-ascii files when no locale or an incorrect
342
locale is set. (Martin Packman, #794353)
344
* ``bzr branches`` now indicates the active colocated branch.
345
(Jelmer Vernooij, #891667)
347
* ``bzr push`` now suggests using :parent if there is a parent location
348
set. (Jelmer Vernooij)
350
* ``bzr send`` now only opens a single connection, rather than two,
351
to the target branch. (Jelmer Vernooij)
356
* Allow configuration option default value to be a python callable at
357
registration. (Vincent Ladeuil, #832064)
359
* ``bzr config`` will now display the section ``[DEFAULT]`` used in
360
``bazaar.conf``. (Vincent Ladeuil, #907268)
362
* Configuration stores can now provides a specific quoting mechanism. This
363
is required to workaround ``configobj`` conflating quoting and list values
364
automatic conversion. (Vincent Ladeuil, #906897)
366
* Create obsolete_packs directory when repacking if it does not
367
exist. (Jonathan Riddell, Jelmer Vernooij, #314314)
369
* Fallback to the slower ``bzr log`` implementation when displaying a range
370
of revisions whose ancestry is not obviously on the same developement
371
line. (Vincent Ladeuil, #904744)
373
* Make lazy imports resilient when resolved concurrently from multiple
374
threads. Now the stand-in object will behave as a proxy for the real object
375
after the initial access, rather than throwing. Assigning the object to
376
multiple names should still be avoided. (Martin von Gagern, #396819)
378
* Not setting ``gpg_signing_key`` or setting it to ``default`` will use the
379
user email (obtained from the ``email`` configuration option or its
380
default value). (Vincent Ladeuil, Jelmer Vernooij, #904550)
382
* Prevent spurious InconsistentDelta error when committing a move of a
383
non-ascii directory with contents. (Rory Yorke, #185211)
385
* Properly ignore '\n' in an option reference since this cannot be part of a
386
config option identifier. (Vincent Ladeuil, #902125)
388
* Make sure that the bzr probers are always registered when
389
bzrlib.workingtree is imported. (Jelmer Vernooij, #905218)
391
* Report mistake trying to move a removed file with a non-ascii name without
392
UnicodeEncodeError being raised. (Martin Packman, #898541)
394
* Safely unquote configuration values in weird edge cases (a section seen as
395
a dictionary which is not a supported use case for the configuration
396
stacks). (Vincent Ladeuil, #908050)
398
* Stop altering ``sys.platform`` on OSX when initialising the locale.
399
(Martin Packman, #570495)
401
* Uncommit no longer removes tags if they are part of the working
402
trees pending merges. (Jelmer Vernooij, #905462)
407
* ``Config.signature_needed``, ``Config.signing_policy``,
408
``Config.gpg_signing_key``, ``Config.gpg_signing_command``,
409
``Config.checking_policy`` and ``Config.post_commit`` are now deprecated.
412
* ``Repository.get_commit_builder`` now takes a ``config_stack``
413
rather than a ``config`` argument. (Jelmer Vernooij)
415
* Scripts using bzrlib should now ensure setlocale is called on posix
416
platforms if they need a non-ascii user encoding. (Martin Packman)
418
* Send formats now accept a new optional argument ``submit_branch``,
419
which can be None or a Branch object for the submit branch location.
422
* ``VersionedFileRepository.add_revision`` no longer takes a ``config``
423
argument. (Jelmer Vernooij)
428
* Add HPSS call for ``Branch.get_checkout_format``. (Jelmer Vernooij, #894459)
430
* Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461)
432
* Add HPSS calls for ``Repository.iter_files_bytes``, speeding up
433
several commands including ``bzr export`` and ``bzr co --lightweight``.
434
(Jelmer Vernooij, #608640)
436
* All bzr control directories, branch formats, repository formats and
437
working tree formats now support feature flags, which are
438
serialized in their respective format files. See
439
``doc/developers/feature-flags.txt`` for details.
442
* ``bzrlib.urlutils`` now includes ``quote`` and ``unquote`` functions,
443
rather than importing them from ``urllib``. This prevents loading
444
of the ``socket``, ``ssl`` and ``urllib`` modules for
445
local bzr operations. (Jelmer Vernooij)
447
* Configuration options can be SI units by using ``int_SI_from_unicode`` as
448
their ``convert_from_unicode`` helper. (Vincent Ladeuil)
450
* Configuration stacks can now use ``StartingPathMatcher`` to select the
451
sections matching a location while respecting the order chosen by the user
452
in the configuration file: from generic sections to specific
453
sections. (Vincent Ladeuil, #832046).
455
* Configuration stores can now save incremental changes by using
456
``save_changes()`` instead of ``save()``. This reduces the number or
457
required input/outputs and allows stores to be shared between
458
stacks. (Vincent Ladeuil)
460
* ControlDir now has a get_branches method that returns a dictionary
461
whose keys are the names of the branches and whose values are the
462
branches themselves. The active branch uses the key None.
463
(Neil Martinsen-Burrell)
465
* Helper ``osutils.path_from_environ`` added for extracting a unicode path
466
from an environment variable. (Martin Packman, #832028)
468
* Helper ``win32utils.get_environ_unicode`` added for avoiding encoding
469
problems with ``os.environ.get`` use. (Martin Packman, #262874)
471
* Lazy imports can now only be absolute. (Jelmer Vernooij)
473
* Merge3Mergers now have an optional ``other_branch`` argument
474
which contains the branch from which the ``other_tree``
475
was obtained, if any. (Jelmer Vernooij)
477
* MutableTree now has a hook ``post_build_tree`` which is called after
478
a new mutable tree has been created. (Jelmer Vernooij, #912765)
480
* New HPSS call ``BzrDir.checkout_metadir``. (Jelmer Vernooij, #894459)
482
* New HPSS call ``VersionedFileRepository.get_inventories``,
483
speeding up various commands including ``bzr export``,
484
``bzr checkout`` and ``bzr cat``. (Jelmer Vernooij, #608640)
486
* The ``ConfigCommandLineStore`` is now supported by ``bzr config`` and is
487
seen as single no-name section of configuration options. (Vincent Ladeuil)
492
* New matcher ``ContainsNoVfsCalls`` which filters a list of HPSS
493
calls for VFS requests. (Jelmer Vernooij)
495
* New ``MemoryStack`` class allows for diskless tests and locally injected
496
configuration stacks. Lower level tests for predefined set of options can
497
be written without setting up configuration files. (Vincent Ladeuil)
505
This is the fourth beta of the 2.5 series, leading to a 2.5.0 release in
506
February 2012. Beta releases are suitable for everyday use but may cause
507
some incompatibilities with plugins.
509
This release includes many improvements in the smart server, UI polish for
510
the colocated branches, optimizations for revision specifiers to avoid
511
history sized operations, enhancements to the config framework, bug fixes
512
related to unicode paths and more.
514
All bug fixed in previous series known at the time of this release are
517
External Compatibility Breaks
518
*****************************
525
* Provides a ``po_merge`` plugin to automatically merge ``.po`` files with
526
``msgmerge``. See ``bzr help po_merge`` for details.
527
(Vincent Ladeuil, #884270)
532
* ``bzr branch --stacked`` now only makes a single connection to the remote
533
server rather than three. (Jelmer Vernooij, #444293)
535
* ``bzr export --uncommitted`` will export the uncommitted tree.
536
(Jelmer Vernooij, #555613)
538
* ``bzr rmbranch`` can now remove colocated branches.
539
(Jelmer Vernooij, #831464)
541
* ``bzr status`` no longer shows shelves if files are specified.
544
* ``bzr switch`` now accepts colocated branch names to switch to.
545
(Jelmer Vernooij, #826814)
547
* Plugins can now register additional "location aliases".
550
* Revision specifiers will now only browse as much history as they
551
need to, rather than grabbing the whole history unnecessarily in some
552
cases. (Jelmer Vernooij)
554
* When using ``bzr switch`` to switch to a sibling of the current
555
branch, the relative branch name should no longer be url-encoded.
561
* A new section local option ``basename`` is available to help support some
562
``bzr-pipeline`` workflows and more generally help mapping local paths to
563
remote ones. See ``bzr help configuration`` for more details.
564
(Vincent Ladeuil, #843211)
566
* Add HPSS call for looking up revision numbers from revision ids on
567
remote repositories. (Jelmer Vernooij, #640253)
569
* Add HPSS call for retrieving file contents from remote repositories.
570
Should improve performance for lightweight checkouts and exports of
571
from remote repositories. (Jelmer Vernooij, #368717, #762330, #608640)
573
* Allow lazy compiled patterns from ``bzrlib.lazy_regex`` to be
574
pickled. (Jelmer Vernooij, #893149)
576
* ``bzr info`` no longer shows empty output if only a control
577
directory is present. (Jelmer Vernooij, #159098)
579
* Cope with missing revision ids being specified to
580
``Repository.gather_stats`` HPSS call. (Jelmer Vernooij, #411290)
582
* Fix test failures on windows related to locations.conf handling.
583
(Vincent Ladeuil, #892992)
585
* Fixed parsing of the timestamp given to ``commit --commit-time``. Now
586
prohibits several invalid strings, reads the correct number of seconds,
587
and gives a better error message if the time zone offset is not given.
588
(Matt Giuca, #892657)
590
* Give meaningful file/line references when reporting deprecation warnings
591
for _CompatabilityThunkFeature based test features.
592
(Vincent Ladeuil, #897718)
594
* Make reporting of mistakes involving unversioned files with non-ascii
595
filenames work again without 'Unprintable exception' being shown.
596
(Martin Packman, #898408)
598
* Provide names for lazily registered hooks.
599
(Neil Martinsen-Burrell, #894609)
601
* Raise BadIndexKey exception in btree_index when a key is too large, fixing
602
an infinite recursion issue. (Shannon Weyrick, #720853)
604
* Resolve regression from colocated branch path handling, by ensuring that
605
unreserved characters are unquoted in URLs. (Martin Packman, #842223)
607
* Split segments from URLs for colocated branches without assuming the
608
combined form is valid. (Martin Packman, #842233)
610
* Support looking up revision numbers by revision id in empty branches.
611
(Jelmer Vernooij, #535031)
613
* Support verifying signatures on remote repositories.
614
(Jelmer Vernooij, #889694)
616
* Teach the bzr client how to reconnect if we get ``ConnectionReset``
617
while making an RPC request. This doesn't handle all possible network
618
disconnects, but it should at least handle when the server is asked to
619
shutdown gracefully. (John Arbash Meinel, #819604)
621
* When a remote format is unknown, bzr will now print a single-line error
622
message rather than a backtrace. (Jelmer Vernooij, #687226)
627
* ``BzrDir.open_branch`` and ``BranchFormat.open`` now take an optional
628
``possible_transports`` argument. (Jelmer Vernooij)
630
* New method ``Transport.set_segment_parameter``. (Jelmer Vernooij)
632
* ``Repository.verify_revision`` has been renamed to
633
``Repository.verify_revision_signature``. (Jelmer Vernooij)
635
* ``RevisionSpec.wants_revision_history`` now defaults to ``False`` and
636
is deprecated. The ``revs`` argument of
637
``RevisionInfo.from_revision_id`` is now deprecated. (Jelmer Vernooij)
639
* ``Tree.get_file_by_path`` is now deprecated. Use ``Tree.get_file`` instead.
640
(Jelmer Vernooij, #666897)
642
* Some global options for use with commands have been removed, construct
643
an ``Option`` with the name instead. (Martin Packman)
645
* The unused exception ``HistoryMissing`` has been removed.
651
* Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461)
653
* ``bzr config`` uses the new configuration implementation.
656
* Custom HPSS error handlers can now be installed in the smart server client
657
using the ``error_translators`` and ``no_context_error_translators``
658
registries. (Jelmer Vernooij)
660
* New HPSS calls ``Repository.has_signature_for_revision_id``,
661
``Repository.make_working_trees``, ``BzrDir.destroy_repository``,
662
``BzrDir.has_workingtree``, ``Repository.get_physical_lock_status``,
663
``Branch.get_physical_lock_status``,
664
``Branch.put_config_file``, ``Branch.break_lock``,
665
``BzrDir.destroy_branch``, ``Repository.break_lock``,
666
``VersionedFileRepository.get_serializer_format``,
667
``Repository.all_revision_ids``, ``Repository.start_write_group``,
668
``Repository.commit_write_group``, ``Repository.abort_write_group``
669
``Repository.check_write_group``, ``Repository.iter_revisions``,
670
``Repository.add_signature_revision_text`` and
671
``Repository.get_revision_signature_text``.
674
* ``RemoteBranch.get_config_stack`` and ``RemoteBzrDir.get_config_stack``
675
will now use HPSS calls where possible. (Jelmer Vernooij)
677
* The registry of merge types has been moved to ``merge`` from ``option`` but
678
``merge.get_merge_type_registry`` remains as an accessor. (Martin Packman)
683
* Avoid failures in test_transform when OS error messages are localised.
684
(Martin Packman, #891582)
686
* Tests are now subject to a time limit: by default 300s, and 120s when
687
run from 'make check', controlled by the `selftest.timeout`
688
configuration option. This is currently not supported on Windows.
696
This is the third beta of the 2.5 series, leading to a 2.5.0 release in
697
February 2012. Beta releases are suitable for everyday use but may cause
698
some incompatibilities with plugins.
700
This release includes log options for ``push`` and ``pull``, more UI polish
701
for colocated branches, a better and more coherent implementation for UI
702
dialogs, enhancements to the config framework and more.
704
This release includes all bug fixed in previous series known at the time of
707
External Compatibility Breaks
708
*****************************
715
* The ``log_format`` configuration can be used with ``-Olog_format=line`` to
716
change the format ``push`` and ``pull`` use to display the
717
revisions. I.e.: ``bzr pull -v -Olog_format=short`` will use the ``short``
718
format instead of the default ``long`` one. (Vincent Ladeuil, #861472)
720
* The new config scheme allows an alternative syntax for the 'appenpath'
721
policy relying on option expansion and defining a new 'relpath' option
722
local to a section. Instead of using '<option>:policy=appendpath', the
723
option value can de defined as 'option=xxxx/{relpath}'.
724
(Vincent Ladeuil, #832013)
729
* ``bzr info -v`` now shows the number of colocated branches
730
for control directories that support them.
731
(Jelmer Vernooij, #863285)
733
* ``bzr version-info`` now takes a ``--revision`` argument.
734
(Jelmer Vernooij, #238705)
736
* ``bzr revno`` now takes a ``--revision`` argument.
737
(Jelmer Vernooij, #870649)
739
* ``bzr serve`` now can serve from URLs rather than just from the
740
file system. I.e.: ``bzr serve -d lp:bzr`` or
741
``bzr serve -d file:///data/bzr`` (Jelmer Vernooij)
743
* all input prompts are now char-based when possible, and can be forced to
744
line-based mode by setting the ``BZR_TEXTUI_INPUT`` environment variable
745
to 'line-based'. This replace the previous shelf UI only patch using
746
``INSIDE_EMACS``. (BenoƮt Pierre)
751
* ``bzr info`` now shows the master branch location too for
752
treeless local branches. (Jelmer Vernooij, #258355)
754
* ``bzr mkdir --quiet`` now does not print a line for every created
755
directory. (Martin von Gagern, #869915)
757
* ``bzr mv`` does not crash when attempting to move the root of a
758
branch. (Jonathan Riddell, #809728)
760
* ``bzr shelve`` now use ``UIFactory.choose`` for input handling, making
761
it usable when creating a custom ``UIFactory`` implementation. (BenoƮt
764
* ``bzr clean-tree`` now use ``UIFactory.get_boolean`` for confirmation
765
prompt, making it usable when using a custom ``UIFactory``
766
implementation. (BenoƮt Pierre)
768
* If sending a crash through Apport fails report the Apport failure to
769
bzr.log rather than stderr. (Jonathan Riddell, #766735)
771
* ``bzr upgrade`` no longer treats 'already up-to-date' exceptions as
772
errors. (BenoƮt Pierre, #716560).
774
* ``bzr version-info`` no longer populates the clean state for custom
775
templates unless {clean} is explicitly asked for.
776
(Lawrence Mitchell, #882541)
778
* Fix finding the CPU count when using Python >= 2.6 on BSD-based systems.
779
(Jelmer Vernooij, #887151)
781
* ``WorkingTree.clone()`` now supports its ``revision_id`` being set
782
to the null revision. (Jelmer Vernooij, #876423)
784
* ``WorkingTree.pull`` can now pull ``NULL_REVISION``.
785
(Jelmer Vernooij, #887556)
790
* ``Branch.revision_history`` is now deprecated. (Jelmer Vernooij, #799519)
792
* Methods ``add`` and ``items`` of ``LRUCache`` and ``LRUSizeCache`` are
793
deprecated. Use normal dict-style access instead. (Martin Packman)
795
* New flag ``RepositoryFormat.supports_unreferenced_revisions`` which
796
indicates whether revisions can be present in a repository without
797
being referenced from e.g. a branch history at the same time.
800
* ``UIFactory.choose`` has been added: prompt the user for a list of
801
choices. (BenoƮt Pierre)
806
* ``ControlDirFormat`` now has a new method ``supports_transport``
807
which format implementations can use whether or not they can access
808
a control dir over a particular transport. (Jelmer Vernooij)
810
* ``BranchBuilder.build_commit`` now take ``parent_ids`` and
811
``allow_leftmost_as_ghost`` arguments. (Jelmer Vernooij)
816
* Ensure TestCase instances are deallocated immediately after running where
817
possible. This greatly reduces the peak resource needs of a full test suite
818
run. The new ``-Euncollected_cases`` selftest flag will add failures if any
819
case which persists pasts its expected lifetime. (Martin Packman, #613247)
821
* Report exceptions from child processes during fork instead of swallowing the
822
error and reporting that everything went okay. (Martin Packman, #804130)
828
This is the second beta of the 2.5 series, leading to a 2.5.0 release in
829
February 2012. Beta releases are suitable for everyday use but may cause some
830
incompatibilities with plugins.
832
This release includes more filtering options for ``bzr log``, idle
833
connections handling for ``bzr serve``, a ``development-colo`` experimental
834
format to flesh out the colocated branches UI, better support for foreign
835
formats, enhancements to the config framework and more.
837
This release includes all bug fixed in previous series known at the time of
842
External Compatibility Breaks
843
*****************************
850
* A new ``-O`` standard option (common to all commands) have been added. It
851
provides a value for a config option in the ``-Oname=value`` form that
852
takes precedence over all definitions found in config files. It can be
853
used multiple times to override different options.
854
(Vincent Ladeuil, #491196)
856
* ``bzr log`` now has an option called ``--omit-merges`` to omit
857
those commits that merged branches, i.e. those having more than one
859
In order to avoid confusion, the previous command line option
860
``--include-merges`` has been renamed to ``--include-merged``.
861
The old name of the command line option will still be accepted.
862
The name change also affects ``bzr missing``.
865
* ``bzr serve`` will now disconnect clients if they have not issued an RPC
866
request after 5minutes. On POSIX platforms, this will also happen for
867
``bzr serve --inet``. This can be overridden with the configuration
868
variable ``serve.client_timeout`` or in the command line parameter
869
``bzr serve --client-timeout=X``. Further, it is possible to request
870
``bzr serve [--inet]`` to shutdown gracefully by sending SIGHUP. It will
871
finish the current request, and then close the connection.
872
(John Arbash Meinel, #824797, #795025)
874
* The new experimental format ``development-colo`` supports colocated
875
branches. This format will eventually be merged back into the ``2a``
876
format when it has stabilized and there is adequate UI support for
878
(Jelmer Vernooij, #831481)
883
* Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for
884
every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
886
* ``bzr info -v`` can now be run against branches that don't support
887
``last_revision_info``, in which case the branch information will simply
888
not be displayed. (Jelmer Vernooij)
893
* ``bzr shelve`` can now be used in emacs shells as the input handling is
894
turned into a line-based one when ``INSIDE_EMACS`` is set (which is the
895
case for all recent emacs versions). (Vincent Ladeuil, #856261)
897
* ``bzr tags`` can now be used against remote repositories that do
898
not provide access to the revision graph. (Jelmer Vernooij, #858942)
900
* ``bzr update PATH`` will stop if you seem to be asking it to update
901
anything less than a whole tree, because that's not supported by ``bzr``'s
902
concept that the whole tree has a single basis revision. Previously, it
903
would go ahead and update the whole tree, which was surprising.
904
(Martin Pool, #557886)
906
* Don't crash if ``bzrlib.initialize()`` has not been called while accessing
907
configs. (Vincent Ladeuil, #863401)
909
* Redirects between http and https no longer discard path information
910
in some cases. (Jelmer Vernooij, #853765)
912
* The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer
913
reports all tags as changed. (Jelmer Vernooij, #845396)
915
* ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is
916
specified that is unknown. (Jelmer Vernooij, #847435)
922
* ``Branch.get_revision_delta`` has been deprecated. Use
923
``Repository.get_revision_delta`` instead. (Jelmer Vernooij, #859712)
925
* Plugins that implement custom protocols for ``bzr serve`` should now
926
also take an argument ``timeout``. This is used by the the bzr protocol
927
to close a connection if a client has been idle for more than X seconds.
928
(Default 5minutes). (John Arbash Meinel)
930
* ``Repository.fileids_altered_by_revision_ids`` has been moved to
931
``VersionedFileRepository`` and is no longer part of the standard
932
``Repository`` interface. (Jelmer Vernooij)
934
* The argument ``include_merges`` to ``missing.find_unmerged`` has
935
been renamed to ``include_merged``. The old name is still supported
936
for now but will cause a deprecation warning. (Martin von Gagern)
938
* The new method ``ControlDirFormat.is_initializable()`` returns a boolean
939
indicating whether or not it is possible to use any of the
940
initialization methods of that format to create a new control dir.
946
* ``Branch`` objects can now use a config stack with the newly introduced
947
``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can
948
be used for the same branch but it's recommended to stick to one for a
954
* Test scripts can now use ``bzr shelve`` and provide their input as
955
complete lines. (Vincent Ladeuil, #856261)
957
* Really corrupt the pack file without depending on a special length or value.
958
(Vincent Ladeuil, #807032)
966
This is the first beta of the 2.5 series, leading up to a 2.5.0
967
release in February 2012.
969
This release includes better support for gpg signing, better support for
970
i18n (mostly command help and error messages), more options to filter ``bzr
971
log`` output, more support for colocated branches ("location,branch=XXX"
972
syntax), better feedback on updated tags for various commands, faster
973
branching into an empty repository, enhancements to the config framework and
976
Beta releases are suitable for everyday use but may cause some
977
incompatibilities with plugins. Some plugins may need small updates to work
980
External Compatibility Breaks
981
*****************************
988
* A ``from_unicode`` parameter can be specified when registering a config
989
option. This implements boolean, integer and list config options when the
990
provided ``bool_from_store``, ``int_from_store`` and ``list_from_store``
991
are used for this parameter. (Vincent Ladeuil)
993
* Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now
994
checks to see if the most recent published source package version for
995
that project is present in the branch tags. This should help developers
996
trust whether the packaging branch is up-to-date and can be used for new
997
changes. The level of verbosity is controlled by the config item
998
``launchpad.packaging_verbosity``. It can be set to one of
1005
only display if the branch is out-of-date
1008
also display single-line up-to-date and missing,
1012
(default) display multi-line content for all states
1015
(John Arbash Meinel, #609187, #812928)
1017
* Add a config option gpg_signing_key for setting which GPG key should
1018
be used to sign commits. Also default to using the gpg user identity
1019
which matches user_email() as set by whoami.
1020
(Jonathan Riddell, #68501)
1022
* An ``invalid`` parameter can be specified when registering a config option
1023
to decide what should be done when invalid values are
1024
encountered. 'warning' and 'error' will respectively emit a warning and
1025
ignore the value or errors out. (Vincent Ladeuil)
1027
* bzr add now skips large files in recursive mode. The default "large"
1028
size is 20MB, and is configurable via the add.maximum_file_size
1029
option. A value of 0 disables skipping. Named items passed to add are
1030
never skipped. (Shannon Weyrick, #54624)
1032
* ``bzr help configuration/<option>`` display the help for ``option`` for
1033
all registered configuration options. (Vincent Ladeuil, #747050)
1035
* ``bzr log -m`` now matches message, author, committer and bugs instead
1036
of just matching the message. ``--message`` keeps its original meaning,
1037
while ``--match-message, --match-author, --match-committer`` and
1038
``--match-bugs`` match each of those fields. (Jacek Sieka)
1040
* ``config.Option`` can now declare ``default_from_env``, a list of
1041
environment variables to get a default value from. (Vincent Ladeuil)
1043
* ``config.NameMatcher`` can be used to implement config stores and stacks
1044
that need to provide specific option values for arbitrary unique IDs (svn
1045
repository UUIDs, etc). (Vincent Ladeuil, #843638)
1047
* New builtin ``bzr branches`` command, which lists all colocated branches
1048
in a directory. (Jelmer Vernooij, #826820)
1050
* Relative local paths can now be specified in URL syntax by using the
1051
"file:" prefix. (Jelmer Vernooij)
1053
* Report commits signed with expired keys in ``verify-signatures``.
1054
(Jonathan Riddell, #804254)
1056
* Translations are now enabled for command help, errors and globally
1057
for any message using ``gettext`` given on output. (Jonathan Riddell,
1058
INADA Naoki, #83941)
1063
* ``bzr add`` will now warn about nested subtrees that are skipped.
1064
(Jelmer Vernooij, #187342)
1066
* ``bzr commit -m ''`` can now be used to force an empty commit message.
1067
Entering an empty commit message in the message editor still triggers
1068
an error. (Jelmer Vernooij)
1070
* ``bzr pull`` will now mention how many tags it has updated.
1071
(Jelmer Vernooij, #164450)
1073
* ``bzr tag`` no longer errors if a tag already exists but refers to the
1074
same revision, and will mention when a tag has been updated
1075
rather than created. (Jelmer Vernooij, #381203)
1077
* ``bzr uncommit`` will now remove tags that refer to removed revisions.
1078
The ``--keep-tags`` option can be used to prevent this behaviour.
1079
(Jelmer Vernooij, #605814)
1081
* Do not run i18n initialisation twice. (Jonathan Riddell)
1083
* Install translation .mo files. (Jonathan Riddell)
1085
* Locations printed by ``bzr upgrade`` are now formatted before display.
1088
* ``Repository.get_parent_map`` now estimates the size of the returned
1089
content more accurately. This means that we get closer to the desired
1090
64kB/request. For repositories converted from svn, this can be an
1091
improvement of approx 5:1 in round trips to discover the whole history.
1092
(John Arbash Meinel)
1094
* Support a ``bugtracker`` option which is used by ``bzr commit --fixes``
1095
if no bug tracker was specified on the command line.
1096
(Jelmer Vernooij, #334860)
1098
* Use ``gettext.NullTranslations`` in i18n to allow use of i18n even when
1099
translations are not turned on. (Jonathan Riddell)
1104
* ``bzr commit`` now correctly reports missing files as "removed", not
1105
"modified". (Jelmer Vernooij, #553955)
1107
* ``bzr reconfigure`` will now allow multiple non-conflicting requests
1108
in a single invocation, e.g. ``--branch`` and ``--use-shared``.
1109
(Martin von Gagern, #842993)
1111
* A call to CHKInventory's filter-method will not result in a
1112
DuplicateFileId error, if you move a subfolder and change a file in
1114
(Bastian Bowe, #809901)
1116
* Branching from a stacked branch no longer does a ``get_parent_map``
1117
request for each revisions that is in the stacked-on repository while
1118
determining what revisions need to be fetched. This mostly impacts
1119
branching initialy into an empty shared repository when the source is
1120
not the development focus. (John Arbash Meinel, #388269)
1122
* Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode
1123
errors. (Vincent Ladeuil, #822571)
1125
* Fix fallout from URL handling changes in 2.5 that caused an IndexError to be
1126
raised whenever a transport at the drive root was opened on windows.
1127
(Martin [gz], #841322)
1129
* Fixed loading of external merge tools from config to properly decode
1130
command-lines which contain embedded quotes. (Gordon Tyler, #828803)
1132
* Rather than an error being raised, a warning is now printed when the
1133
current user does not have permission to read a configuration file.
1134
(Jelmer Vernooij, #837324)
1136
* The pull command will now always use separate connections for the
1137
case where the destination is a heavyweight checkout of some remote
1138
branch on the same host as the source branch.
1139
(Martin von Gagern, #483661)
1141
* TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so
1142
operations that use it, like merge, can now create trees without a root.
1148
* Release instructions refreshed. (Vincent Ladeuil)
1153
* ``BranchFormat.initialize`` now takes a ``append_revisions_only``
1154
argument. (Jelmer Vernooij)
1156
* ``Branch._get_checkout_format`` now takes a ``lightweight`` argument
1157
which indicates if the format should be for a lightweight or a
1158
heavyweight checkout. (Jelmer Vernooij)
1160
* ``ControlDir.create_branch`` now takes a ``append_revisions_only`` argument.
1163
* New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs.
1166
* New method ``Config.get_user_option_as_int_from_SI`` added for expanding a
1167
value in SI format (i.e. "20MB", "1GB") into its integer equivalent.
1170
* New method ``InterTree.file_content_matches`` which checks that
1171
two files in different trees have the same contents.
1174
* New method ``Tree.get_file_verifier`` which allows tree implementations
1175
to return non-sha1 checksums to verify files.
1176
(Jelmer Vernooij, #720831)
1178
* New methods ``get_transport_from_path`` and ``get_transport_from_url``
1179
have been added that only support opening from a path or a URL,
1180
unlike ``get_transport``. (Jelmer Vernooij)
1182
* New registry ``OptionRegistry`` specialized for configuration options.
1185
* Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10.
1188
* Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``,
1189
``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in
1190
2.10 and 2.2.0. (Vincent Ladeuil)
1192
* Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0.
1194
* Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``,
1195
``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also
1196
remove ``log.show_one_log`` which was never properly deprecated but wasn't
1197
used and is easy to inline if needed. (Vincent Ladeuil)
1199
* Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error``
1200
deprecated in 2.1.0. (Vincent Ladeuil)
1202
* Remove ``TransportListRegistry.set_default_transport``, as the concept of
1203
a default transport is currently unused. (Jelmer Vernooij)
1205
* Remove ``UIFactory.warn_cross_format_fetch`` and
1206
``UIFactory.warn_experimental_format_fetch`` in favor of
1207
``UIFactory.show_user_warning``. (Jelmer Vernooij)
1209
* ``Tags`` containers can now declare whether they support versioned
1210
tags and whether tags can refer to ghost tags.
1213
* ``Tags.merge_to`` now returns a dictionary with the updated tags
1214
and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
1216
* There is a new class `ContentFilterTree` that provides a facade for
1217
content filtering. The `filtered` parameter to `export` is deprecated
1218
in favor of passing a filtered tree, and the specific exporter plugins
1219
no longer support it.
1222
* ``Transport`` now has a ``_parsed_url`` attribute instead of
1223
separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host``
1224
and ``_path`` attributes. Proxies are provided for the moment but
1225
may be removed in the future. (Jelmer Vernooij)
1230
* A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client
1231
to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request
1232
is attempted. (Jelmer Vernooij)
1234
* New method ``ControlDir._get_selected_branch`` which returns the
1235
colocated branch selected using path segment parameters.
1236
(Jelmer Vernooij, #380871)
1241
* Blackbox tests (including test scripts) can be debugged interactively (see
1242
bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
1244
* `BranchBuilder.build_snapshot` now supports a "flush" action. This
1245
cleanly and reliably allows tests using `BranchBuilder` to construct
1246
branches that e.g. rename files out of a directory and unversion that
1247
directory in the same revision. Previously some changes were impossible
1248
due to the order that `build_snapshot` performs its actions.
1251
* Don't require ``os.fdatasync`` to be defined on all supported OSes
1252
(BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
1254
* Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
1256
* ``LockDir`` can now be run when the local hostname is ``localhost``.
1257
(Jelmer Vernooij, #825994)
1259
* ``ModuleAvailableFeature`` won't try to import already imported modules,
1260
allowing it to be used for modules with side-effects.
1261
(Vincent Ladeuil, #712474)
1263
* Output time stamps while running ``make check`` to get better timings from
1264
pqm. (Vincent Ladeuil, #837926)
1266
* `TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now
1267
just compares the bytes in the dirstate file to its pristine state,
1268
rather than opening the WorkingTree and calling ``last_revision()``.
1269
This reduces the overall test suite time by about 10% on my laptop.
1272
* Update `TestCase.knownFailure` to the testtools way of handling expected
1273
failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)
1276
vim: tw=74 ft=rst ff=unix