#################### Bazaar Release Notes #################### .. toctree:: :maxdepth: 1 bzr 2.5.2 ######### :2.5.2: NOT RELEASED YET External Compatibility Breaks ***************************** .. These may require users to change the way they use Bazaar. New Features ************ .. New commands, options, etc that users may wish to try out. Improvements ************ .. Improvements to existing commands, especially improved performance or memory usage, or better results. Bug Fixes ********* .. Fixes for situations where bzr would previously crash or give incorrect or undesirable results. * Revert use of --no-tty when gpg signing commits. (Jelmer Vernooij, #1014570) Documentation ************* .. Improved or updated documentation. API Changes *********** .. Changes that may require updates in plugins or other code that uses bzrlib. Internals ********* .. Major internal changes, unlikely to be visible to users or plugin developers, but interesting for bzr developers. Testing ******* .. Fixes and changes that are only relevant to bzr's test framework and suite. This can include new facilities for writing tests, fixes to spurious test failures and changes to the way things should be tested. bzr 2.5.1 ######### :2.5.1: 2012-05-22 This is a bugfix release. Most of the bugs dealt with https and colocated branches glitches. Upgrading is recommended for all users of earlier 2.5 releases. External Compatibility Breaks ***************************** None. New Features ************ None. Improvements ************ * ``bzr rmbranch`` now supports removing colocated branches. (Jelmer Vernooij, #920653) * ``bzr rmbranch`` no longer removes active branches unless ``--force`` is specified. (Jelmer Vernooij, #922953) Bug Fixes ********* * Connecting with HTTPS via HTTP now correctly uses the host name of the destination rather than the proxy when checking certificates. (Martin Packman, #944696) * Fixed merge tool availability checking and invocation to search the Windows App Path registry in addition to the PATH. (Gordon Tyler, #939605) * Fixed problem with getting errors about failing to open /dev/tty when using Bazaar Explorer to sign commits. (Mark Grandi, #847388) * Fix UnicodeEncodeError when translated progress task messages contain non-ascii text. (Martin Packman, #966934) * Make sure configuration options can provide their own help topic. (Jelmer Vernooij, #941672) Documentation ************* * The alpha-quality texinfo sphinx builder has been deprecated. Sphinx >= 1.1.2 now provides a better one. Most of the documentation can now be generated to the texinfo format with ``make texinfo-sphinx``. This will generate both the ``.texi`` files and the ``.info`` ones. (Vincent Ladeuil, #940164) API Changes *********** None. Testing ******* * Add support for pyftpdlib >= 0.7.0 and drop support for previous pyftpdlib versions. (Vincent Ladeuil, #956027) * Run smoketest for setup.py isolated in a tempdir. (Martin Packman, #140874) bzr 2.5.0 ######### :Codename: Phillip :2.5.0: 2012-02-24 This release marks the start of a new long-term-stable series. From here, we will only make bugfix releases on the 2.5 series (2.5.1, etc, and support it until April 2017), while 2.6 will become our new development series. This is a bugfix and polish release over the 2.4 series, with a large number of bugs fixed (~170 for the 2.5 series alone). The 2.5 series provides a faster smart protocol implementation for many operations, basic support for colocated branches. We have started translating bzr with the 2.5 series: https://translations.launchpad.net/bzr, more than 20 languages have already been registered but these are the early days, contributions welcome. Only a few bugfixes have been included since 2.5b6 so all known fixed bugs are included here. Users are encouraged to upgrade from the other stable series. External Compatibility Breaks ***************************** None. New Features ************ None. Improvements ************ * The names of colocated branches are used as branch nicks if no nick is specified. (Aaron Bentley) Bug Fixes ********* * Show locks in ``bzr info`` on control directories without a repository. (Jelmer Vernooij, #936767) * Disable ssl certificate verification on osx and windows until a native access to the the root certificates is provided there. (Vincent Ladeuil, #929179) Testing ******* * Stop depending on the particular CPython ordering of dictionary keys when testing the result of BzrDir.get_branches. (Wouter van Heyst) bzr 2.5b6 ######### :2.5b6: 2012-02-02 This is the sixth (and last (really)) beta of the 2.5 series, leading to a 2.5.0 release in March 2012. Beta releases are suitable for everyday use but may cause some incompatibilities with plugins. This introduces the support for colocated branches into the '2a' format in a backward compatible way, fix more glitches in the colocated UI, verify https certificates for the urllib https client implementation, fix some more unicode issues and more. All bugs fixed in previous series known at the time of this release are included. External Compatibility Breaks ***************************** None. New Features ************ * Support for colocated branches is now available in the default format ("2a"). (Jelmer Vernooij) Improvements ************ * ``bzr switch -b`` in a standalone tree will now create a colocated branch. (Jelmer Vernooij, #918197) * ``bzr info`` now reports when there are present (but unused) colocated branches. (Jelmer Vernooij, #891646) * Checkouts can now be into target directories that already have a control directory (but no branch or working tree). (Jelmer Vernooij, #913980) * Colocated branches can now have names including forward slashes, to allow for namespaces. (Jelmer Vernooij, #907980) * New HPSS call for ``BzrDir.get_branches``. (Jelmer Vernooij, #894460) * Checkouts of colocated branches are now always lightweight. (Jelmer Vernooij, #918828) Bug Fixes ********* * ``bzr branch`` now fetches revisions when branching into an empty control directory. (Jelmer Vernooij, #905594) * A sane default is provided for ``ssl.ca_certs`` which should points to the Certificate Authority bundle for supported platforms. (Vincent Ladeuil, #920455) * ``bzr branch`` generates correct target branch locations again if not specified. (Jelmer Vernooij, #919218) * ``bzr send`` works on treeless branches again. (Jelmer Vernooij, #921591) * ``bzr version`` no longer throws a UnicodeDecodeError if the .bzr.log path contains non-ascii characters. (Martin Packman, #312841) * Support scripts that don't call bzrlib.initialize() but still call run_bzr(). (Vincent Ladeuil, #917733) * Test for equality instead of object identity where ROOT_PARENT is concerned. (Wouter van Heyst, #881142) * urllib-based HTTPS client connections now verify the server certificate validity as well as the hostname. (Jelmer Vernooij, Vincent Ladeuil, #651161) API Changes *********** * ``config.config_dir`` and related functions now always return paths as unicode. (Martin Packman, #825826) * ``ControlDir`` now has a new method ``set_branch_reference`` which can be used for setting branch references. (Jelmer Vernooij) * ``ControlDir.destroy_branch`` now raises ``NotBranchError`` rather than ``NoSuchFile`` if the branch didn't exist. (Jelmer Vernooij, #921693) Internals ********* * A new matcher ``RevisionHistoryMatches`` has been added. (Jelmer Vernooij) * Add new module ``bzrlib.url_policy_open``. (Jelmer Vernooij, #850843) * ``MutableTree`` has two new hooks ``pre_transform`` and ``post_transform`` that are called for tree transform operations. (Jelmer Vernooij, #912084) Testing ******* * Be more careful about closing open files for pypy interoperability. (Wouter van Heyst) bzr 2.5b5 ######### :2.5b5: 2012-01-12 This is the fifth (and last) beta of the 2.5 series, leading to a 2.5.0 release in February 2012. Beta releases are suitable for everyday use but may cause some incompatibilities with plugins. This release includes many improvements in the smart server, UI polish for the colocated branches, enhancements to the config framework and more internal uses, bug fixes related to unicode and locale support and more. All bug fixed in previous series known at the time of this release are included. External Compatibility Breaks ***************************** * The '.bzr/branch/email' file is no longer read to determine the users' identity. Instead, the 'email' setting in '.bzr/branch/branch.conf' should be used. (Jelmer Vernooij, #903894) New Features ************ * "bzr mkdir" now includes -p (--parents) option for recursively adding parent directories. (Jared Hance, Jelmer Vernooij, #253529) * ``config.Option`` can now declare ``override_from_env``, a list of environment variables which, when set, that takes precedence over values defined in configuration files. (Vincent Ladeuil, #907279) Improvements ************ * New HPSS call for ``Repository.reconcile``. (Jelmer Vernooij, #894455) * Merge now has two new hooks ``pre_merge`` and ``post_merge`` that are called before and after a merge and can make additional modifications to the trees involved. (Jelmer Vernooij, #906877) * Override the value returned by ``sys.getfilesystemencoding()`` for the bzr script to utf-8 when it would otherwise be ascii on a posix system. This will mean bzr works with non-ascii files when no locale or an incorrect locale is set. (Martin Packman, #794353) * ``bzr branches`` now indicates the active colocated branch. (Jelmer Vernooij, #891667) * ``bzr push`` now suggests using :parent if there is a parent location set. (Jelmer Vernooij) * ``bzr send`` now only opens a single connection, rather than two, to the target branch. (Jelmer Vernooij) Bug Fixes ********* * Allow configuration option default value to be a python callable at registration. (Vincent Ladeuil, #832064) * ``bzr config`` will now display the section ``[DEFAULT]`` used in ``bazaar.conf``. (Vincent Ladeuil, #907268) * Configuration stores can now provides a specific quoting mechanism. This is required to workaround ``configobj`` conflating quoting and list values automatic conversion. (Vincent Ladeuil, #906897) * Create obsolete_packs directory when repacking if it does not exist. (Jonathan Riddell, Jelmer Vernooij, #314314) * Fallback to the slower ``bzr log`` implementation when displaying a range of revisions whose ancestry is not obviously on the same developement line. (Vincent Ladeuil, #904744) * Make lazy imports resilient when resolved concurrently from multiple threads. Now the stand-in object will behave as a proxy for the real object after the initial access, rather than throwing. Assigning the object to multiple names should still be avoided. (Martin von Gagern, #396819) * Not setting ``gpg_signing_key`` or setting it to ``default`` will use the user email (obtained from the ``email`` configuration option or its default value). (Vincent Ladeuil, Jelmer Vernooij, #904550) * Prevent spurious InconsistentDelta error when committing a move of a non-ascii directory with contents. (Rory Yorke, #185211) * Properly ignore '\n' in an option reference since this cannot be part of a config option identifier. (Vincent Ladeuil, #902125) * Make sure that the bzr probers are always registered when bzrlib.workingtree is imported. (Jelmer Vernooij, #905218) * Report mistake trying to move a removed file with a non-ascii name without UnicodeEncodeError being raised. (Martin Packman, #898541) * Safely unquote configuration values in weird edge cases (a section seen as a dictionary which is not a supported use case for the configuration stacks). (Vincent Ladeuil, #908050) * Stop altering ``sys.platform`` on OSX when initialising the locale. (Martin Packman, #570495) * Uncommit no longer removes tags if they are part of the working trees pending merges. (Jelmer Vernooij, #905462) API Changes *********** * ``Config.signature_needed``, ``Config.signing_policy``, ``Config.gpg_signing_key``, ``Config.gpg_signing_command``, ``Config.checking_policy`` and ``Config.post_commit`` are now deprecated. (Jelmer Vernooij) * ``Repository.get_commit_builder`` now takes a ``config_stack`` rather than a ``config`` argument. (Jelmer Vernooij) * Scripts using bzrlib should now ensure setlocale is called on posix platforms if they need a non-ascii user encoding. (Martin Packman) * Send formats now accept a new optional argument ``submit_branch``, which can be None or a Branch object for the submit branch location. (Jelmer Vernooij) * ``VersionedFileRepository.add_revision`` no longer takes a ``config`` argument. (Jelmer Vernooij) Internals ********* * Add HPSS call for ``Branch.get_checkout_format``. (Jelmer Vernooij, #894459) * Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461) * Add HPSS calls for ``Repository.iter_files_bytes``, speeding up several commands including ``bzr export`` and ``bzr co --lightweight``. (Jelmer Vernooij, #608640) * All bzr control directories, branch formats, repository formats and working tree formats now support feature flags, which are serialized in their respective format files. See ``doc/developers/feature-flags.txt`` for details. (Jelmer Vernooij) * ``bzrlib.urlutils`` now includes ``quote`` and ``unquote`` functions, rather than importing them from ``urllib``. This prevents loading of the ``socket``, ``ssl`` and ``urllib`` modules for local bzr operations. (Jelmer Vernooij) * Configuration options can be SI units by using ``int_SI_from_unicode`` as their ``convert_from_unicode`` helper. (Vincent Ladeuil) * Configuration stacks can now use ``StartingPathMatcher`` to select the sections matching a location while respecting the order chosen by the user in the configuration file: from generic sections to specific sections. (Vincent Ladeuil, #832046). * Configuration stores can now save incremental changes by using ``save_changes()`` instead of ``save()``. This reduces the number or required input/outputs and allows stores to be shared between stacks. (Vincent Ladeuil) * ControlDir now has a get_branches method that returns a dictionary whose keys are the names of the branches and whose values are the branches themselves. The active branch uses the key None. (Neil Martinsen-Burrell) * Helper ``osutils.path_from_environ`` added for extracting a unicode path from an environment variable. (Martin Packman, #832028) * Helper ``win32utils.get_environ_unicode`` added for avoiding encoding problems with ``os.environ.get`` use. (Martin Packman, #262874) * Lazy imports can now only be absolute. (Jelmer Vernooij) * Merge3Mergers now have an optional ``other_branch`` argument which contains the branch from which the ``other_tree`` was obtained, if any. (Jelmer Vernooij) * MutableTree now has a hook ``post_build_tree`` which is called after a new mutable tree has been created. (Jelmer Vernooij, #912765) * New HPSS call ``BzrDir.checkout_metadir``. (Jelmer Vernooij, #894459) * New HPSS call ``VersionedFileRepository.get_inventories``, speeding up various commands including ``bzr export``, ``bzr checkout`` and ``bzr cat``. (Jelmer Vernooij, #608640) * The ``ConfigCommandLineStore`` is now supported by ``bzr config`` and is seen as single no-name section of configuration options. (Vincent Ladeuil) Testing ******* * New matcher ``ContainsNoVfsCalls`` which filters a list of HPSS calls for VFS requests. (Jelmer Vernooij) * New ``MemoryStack`` class allows for diskless tests and locally injected configuration stacks. Lower level tests for predefined set of options can be written without setting up configuration files. (Vincent Ladeuil) bzr 2.5b4 ######### :2.5b4: 2011-12-08 This is the fourth beta of the 2.5 series, leading to a 2.5.0 release in February 2012. Beta releases are suitable for everyday use but may cause some incompatibilities with plugins. This release includes many improvements in the smart server, UI polish for the colocated branches, optimizations for revision specifiers to avoid history sized operations, enhancements to the config framework, bug fixes related to unicode paths and more. All bug fixed in previous series known at the time of this release are included. External Compatibility Breaks ***************************** None. New Features ************ * Provides a ``po_merge`` plugin to automatically merge ``.po`` files with ``msgmerge``. See ``bzr help po_merge`` for details. (Vincent Ladeuil, #884270) Improvements ************ * ``bzr branch --stacked`` now only makes a single connection to the remote server rather than three. (Jelmer Vernooij, #444293) * ``bzr export --uncommitted`` will export the uncommitted tree. (Jelmer Vernooij, #555613) * ``bzr rmbranch`` can now remove colocated branches. (Jelmer Vernooij, #831464) * ``bzr status`` no longer shows shelves if files are specified. (Francis Devereux) * ``bzr switch`` now accepts colocated branch names to switch to. (Jelmer Vernooij, #826814) * Plugins can now register additional "location aliases". (Jelmer Vernooij) * Revision specifiers will now only browse as much history as they need to, rather than grabbing the whole history unnecessarily in some cases. (Jelmer Vernooij) * When using ``bzr switch`` to switch to a sibling of the current branch, the relative branch name should no longer be url-encoded. (Jelmer Vernooij) Bug Fixes ********* * A new section local option ``basename`` is available to help support some ``bzr-pipeline`` workflows and more generally help mapping local paths to remote ones. See ``bzr help configuration`` for more details. (Vincent Ladeuil, #843211) * Add HPSS call for looking up revision numbers from revision ids on remote repositories. (Jelmer Vernooij, #640253) * Add HPSS call for retrieving file contents from remote repositories. Should improve performance for lightweight checkouts and exports of from remote repositories. (Jelmer Vernooij, #368717, #762330, #608640) * Allow lazy compiled patterns from ``bzrlib.lazy_regex`` to be pickled. (Jelmer Vernooij, #893149) * ``bzr info`` no longer shows empty output if only a control directory is present. (Jelmer Vernooij, #159098) * Cope with missing revision ids being specified to ``Repository.gather_stats`` HPSS call. (Jelmer Vernooij, #411290) * Fix test failures on windows related to locations.conf handling. (Vincent Ladeuil, #892992) * Fixed parsing of the timestamp given to ``commit --commit-time``. Now prohibits several invalid strings, reads the correct number of seconds, and gives a better error message if the time zone offset is not given. (Matt Giuca, #892657) * Give meaningful file/line references when reporting deprecation warnings for _CompatabilityThunkFeature based test features. (Vincent Ladeuil, #897718) * Make reporting of mistakes involving unversioned files with non-ascii filenames work again without 'Unprintable exception' being shown. (Martin Packman, #898408) * Provide names for lazily registered hooks. (Neil Martinsen-Burrell, #894609) * Raise BadIndexKey exception in btree_index when a key is too large, fixing an infinite recursion issue. (Shannon Weyrick, #720853) * Resolve regression from colocated branch path handling, by ensuring that unreserved characters are unquoted in URLs. (Martin Packman, #842223) * Split segments from URLs for colocated branches without assuming the combined form is valid. (Martin Packman, #842233) * Support looking up revision numbers by revision id in empty branches. (Jelmer Vernooij, #535031) * Support verifying signatures on remote repositories. (Jelmer Vernooij, #889694) * Teach the bzr client how to reconnect if we get ``ConnectionReset`` while making an RPC request. This doesn't handle all possible network disconnects, but it should at least handle when the server is asked to shutdown gracefully. (John Arbash Meinel, #819604) * When a remote format is unknown, bzr will now print a single-line error message rather than a backtrace. (Jelmer Vernooij, #687226) API Changes *********** * ``BzrDir.open_branch`` and ``BranchFormat.open`` now take an optional ``possible_transports`` argument. (Jelmer Vernooij) * New method ``Transport.set_segment_parameter``. (Jelmer Vernooij) * ``Repository.verify_revision`` has been renamed to ``Repository.verify_revision_signature``. (Jelmer Vernooij) * ``RevisionSpec.wants_revision_history`` now defaults to ``False`` and is deprecated. The ``revs`` argument of ``RevisionInfo.from_revision_id`` is now deprecated. (Jelmer Vernooij) * ``Tree.get_file_by_path`` is now deprecated. Use ``Tree.get_file`` instead. (Jelmer Vernooij, #666897) * Some global options for use with commands have been removed, construct an ``Option`` with the name instead. (Martin Packman) * The unused exception ``HistoryMissing`` has been removed. (Jelmer Vernooij) Internals ********* * Add HPSS call for ``Repository.pack``. (Jelmer Vernooij, #894461) * ``bzr config`` uses the new configuration implementation. (Vincent Ladeuil) * Custom HPSS error handlers can now be installed in the smart server client using the ``error_translators`` and ``no_context_error_translators`` registries. (Jelmer Vernooij) * New HPSS calls ``Repository.has_signature_for_revision_id``, ``Repository.make_working_trees``, ``BzrDir.destroy_repository``, ``BzrDir.has_workingtree``, ``Repository.get_physical_lock_status``, ``Branch.get_physical_lock_status``, ``Branch.put_config_file``, ``Branch.break_lock``, ``BzrDir.destroy_branch``, ``Repository.break_lock``, ``VersionedFileRepository.get_serializer_format``, ``Repository.all_revision_ids``, ``Repository.start_write_group``, ``Repository.commit_write_group``, ``Repository.abort_write_group`` ``Repository.check_write_group``, ``Repository.iter_revisions``, ``Repository.add_signature_revision_text`` and ``Repository.get_revision_signature_text``. (Jelmer Vernooij) * ``RemoteBranch.get_config_stack`` and ``RemoteBzrDir.get_config_stack`` will now use HPSS calls where possible. (Jelmer Vernooij) * The registry of merge types has been moved to ``merge`` from ``option`` but ``merge.get_merge_type_registry`` remains as an accessor. (Martin Packman) Testing ******* * Avoid failures in test_transform when OS error messages are localised. (Martin Packman, #891582) * Tests are now subject to a time limit: by default 300s, and 120s when run from 'make check', controlled by the `selftest.timeout` configuration option. This is currently not supported on Windows. (Martin Pool) bzr 2.5b3 ######### :2.5b3: 2011-11-10 This is the third beta of the 2.5 series, leading to a 2.5.0 release in February 2012. Beta releases are suitable for everyday use but may cause some incompatibilities with plugins. This release includes log options for ``push`` and ``pull``, more UI polish for colocated branches, a better and more coherent implementation for UI dialogs, enhancements to the config framework and more. This release includes all bug fixed in previous series known at the time of this release. External Compatibility Breaks ***************************** None New Features ************ * The ``log_format`` configuration can be used with ``-Olog_format=line`` to change the format ``push`` and ``pull`` use to display the revisions. I.e.: ``bzr pull -v -Olog_format=short`` will use the ``short`` format instead of the default ``long`` one. (Vincent Ladeuil, #861472) * The new config scheme allows an alternative syntax for the 'appenpath' policy relying on option expansion and defining a new 'relpath' option local to a section. Instead of using '