Bazaar Changelog

What's new in Bazaar 2.6 Beta 1

Jul 25, 2012
  • Improvements:
  • Access to HTTPS URLs now uses the urrllib implementation by default. For the old pycurl-based implementation, specify ``https+pycurl://`` as the URL scheme when accessing a HTTPS location.
  • Add short option alias ``-N`` for ``--no-recurse``.
  • Avoid 'Invalid range access' errors when whole files are retrieved with transport.http.get() .
  • ``bzr rmbranch`` now supports removing colocated branches.
  • ``bzr rmbranch`` no longer removes active branches unless ``--force`` is specified.
  • ``bzr verify-signatures`` now shows a progress bar.
  • Two new command hooks, ``pre_command`` and ``post_command``, provide notification before and after a command has been run.
  • Bug Fixes:
  • Fix ``bzr config`` display for ``RegistryOption`` values.
  • API Changes:
  • ``GPGStrategy.do_verifications`` has been deprecated.
  • File ids in the ``Tree`` API can now be bytestring as previously, or tuples of bytestrings.
  • ``mail_client`` now accepts a configuration stack object rather than an old style Config object.
  • New method ``Repository.verify_revision_signatures``.
  • New configuration option class ``RegistryOption`` which is backed onto a registry.
  • New convenience API method ``WorkingTree.get_config_stack``.
  • Remove deprecated ``Branch.set_revision_history`` and ``Branch.revision_history`` methods and the ``set_rh`` hook on ``Branch``.
  • Remove ``branch.PullResult.__int__`` deprecated in 2.3.0,``branch.PushResult.__int__`` deprecated in 2.3.0, ``branch.BranchFormat.get_default_format`` deprecated in 2.4.0, ``branch.BranchFormat.get_formats`` deprecated in 2.4.0, ``branch.BranchFormat.set_default_format`` deprecated in 2.4.0, ``branch.BranchFormat.register_format`` deprecated in 2.4.0, ``branch.BranchFormat.unregister_format`` deprecated in 2.4.0, ``bzrdir.BzrDir.generate_backup_name`` deprecated in 2.3.0, ``bzrdir.BzrProber.register_bzrdir_format`` deprecated in 2.4.0, ``bzrdir.BzrProber.unregister_bzrdir_format`` deprecated in 2.4.0, ``config.Config.get_editor`` deprecated in 2.4.0, ``hooks.known_hooks_key_to_parent_and_attribute`` deprecated in 2.3, ``hooks.Hooks.create_hook`` deprecated in 2.4, ``inventory.Inventory.__contains__`` deprecated in 2.4.0, ``merge.Merge3Merger.scalar_three_way`` deprecated in 2.2.0, ``merge.Merge3Merger.fix_root`` deprecated in 2.4.0, ``transform.TreeTransformBase.has_named_child`` deprecated in 2.3.0, ``transform.get_backup_name`` deprecated in 2.3.0, ``transform._get_backup_name`` deprecated in 2.3.0, ``workingtree.WorkingTreeFormat.get_default_format`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.register_format`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.register_extra_format`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.unregister_extra_format`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.get_formats`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.set_default_format`` deprecated in 2.4.0, ``workingtree.WorkingTreeFormat.unregister_format`` deprecated in 2.4.0,
  • Internals:
  • ``Tree.path2id`` now once again accepts a list of path elements in addition to a path.
  • Turn config option expansion on by default. The only options for which this should be disabled are templates which should already have used conf.get(option, expand=False) or conf.get_user_option(option, expand=False)

New in Bazaar 2.5.1 (Jul 25, 2012)

  • Improvements:
  • ``bzr rmbranch`` now supports removing colocated branches.
  • ``bzr rmbranch`` no longer removes active branches unless ``--force`` is specified.
  • Bug Fixes:
  • Connecting with HTTPS via HTTP now correctly uses the host name of the destination rather than the proxy when checking certificates.
  • Fixed merge tool availability checking and invocation to search the Windows App Path registry in addition to the PATH.
  • Fixed problem with getting errors about failing to open /dev/tty when using Bazaar Explorer to sign commits.
  • Fix UnicodeEncodeError when translated progress task messages contain non-ascii text.
  • Make sure configuration options can provide their own help topic.

New in Bazaar 2.5 Beta 5 (Jan 21, 2012)

  • 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)

New in Bazaar 2.5 Beta 4 (Dec 14, 2011)

  • 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 a 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)

New in Bazaar 2.4.2 (Nov 3, 2011)

  • Improvements:
  • Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
  • Bug Fixes:
  • Fixed an infinite loop when creating a repo at the root of the filesystem, i.e. "/", due to posixpath.normpath() not collapsing 2 leading slashes into one, thus respecting the POSIX standard, but making relpath() loop infinitely. (Florian Vichot, #861008)
  • Fixed loading of external merge tools from config to properly decode command-lines which contain embedded quotes. (Gordon Tyler, #828803)
  • Include declaration of 'changed' to avoid an UnboundLocalError in dirstate pyrex code with new Cython versions. (Denys Duchier, #837221)
  • Prevent several kinds of OverflowError and other fallout from failing to fit stat fields into four bytes in dirstate pack_stat implementations. (Martin Packman, #683191 #706957)
  • Return early from create_delta_index_from_delta given tiny inputs. This avoids raising a spurious MemoryError on certain platforms such as AIX. (John Arbash Meinel, #856731)
  • Documentation:
  • Corrected documentation for ``bzr serve`` in the Admin Guide. (Morten Bøgeskov, Martin Pool, #832576)
  • Testing:
  • Accept both old and new style testtools output in selftest tests. (Jelmer Vernooij, Martin Packman, #815423)
  • Fix the race for TestingThreadingTCPServer in test_server_crash_while_responding. (Vincent Ladeuil, #869366)
  • Really corrupt the pack file without depending on a special length or value. (Vincent Ladeuil, #807032)

New in Bazaar 2.5 Beta 2 (Nov 2, 2011)

  • ew Features:
  • A new ``-O`` standard option (common to all commands) have been added. It provides a value for a config option in the ``-Oname=value`` form that takes precedence over all definitions found in config files. It can be used multiple times to override different options. (Vincent Ladeuil, #491196)
  • ``bzr log`` now has an option called ``--omit-merges`` to omit those commits that merged branches, i.e. those having more than one parent. In order to avoid confusion, the previous command line option ``--include-merges`` has been renamed to ``--include-merged``. The old name of the command line option will still be accepted. The name change also affects ``bzr missing``. (Martin von Gagern)
  • ``bzr serve`` will now disconnect clients if they have not issued an RPC request after 5minutes. On POSIX platforms, this will also happen for ``bzr serve --inet``. This can be overridden with the configuration variable ``serve.client_timeout`` or in the command line parameter ``bzr serve --client-timeout=X``. Further, it is possible to request ``bzr serve [--inet]`` to shutdown gracefully by sending SIGHUP. It will finish the current request, and then close the connection. (John Arbash Meinel, #824797, #795025)
  • The new experimental format ``development-colo`` supports colocated branches. This format will eventually be merged back into the ``2a`` format when it has stabilized and there is adequate UI support for colocated branches. (Jelmer Vernooij, #831481)
  • Improvements:
  • Fixed a bug where ``bzr tags -r x..y`` loaded the branch history once for every revision in the range; it's now much faster. (Vincent Ladeuil, #857335)
  • ``bzr info -v`` can now be run against branches that don't support ``last_revision_info``, in which case the branch information will simply not be displayed. (Jelmer Vernooij)
  • Bug Fixes:
  • ``bzr shelve`` can now be used in emacs shells as the input handling is turned into a line-based one when ``INSIDE_EMACS`` is set (which is the case for all recent emacs versions). (Vincent Ladeuil, #856261)
  • ``bzr tags`` can now be used against remote repositories that do not provide access to the revision graph. (Jelmer Vernooij, #858942)
  • ``bzr update PATH`` will stop if you seem to be asking it to update anything less than a whole tree, because that's not supported by ``bzr``'s concept that the whole tree has a single basis revision. Previously, it would go ahead and update the whole tree, which was surprising. (Martin Pool, #557886)
  • Don't crash if ``bzrlib.initialize()`` has not been called while accessing configs. (Vincent Ladeuil, #863401)
  • Redirects between http and https no longer discard path information in some cases. (Jelmer Vernooij, #853765)
  • The ``--overwrite`` argument to ``bzr push`` and ``bzr pull`` no longer reports all tags as changed. (Jelmer Vernooij, #845396)
  • ``WorkingTree.get_file_mtime`` now raises NoSuchId if a file id is specified that is unknown. (Jelmer Vernooij, #847435)
  • API Changes:
  • ``Branch.get_revision_delta`` has been deprecated. Use ``Repository.get_revision_delta`` instead. (Jelmer Vernooij, #859712)
  • Plugins that implement custom protocols for ``bzr serve`` should now also take an argument ``timeout``. This is used by the the bzr protocol to close a connection if a client has been idle for more than X seconds. (Default 5minutes). (John Arbash Meinel)
  • ``Repository.fileids_altered_by_revision_ids`` has been moved to ``VersionedFileRepository`` and is no longer part of the standard ``Repository`` interface. (Jelmer Vernooij)
  • The argument ``include_merges`` to ``missing.find_unmerged`` has been renamed to ``include_merged``. The old name is still supported for now but will cause a deprecation warning. (Martin von Gagern)
  • The new method ``ControlDirFormat.is_initializable()`` returns a boolean indicating whether or not it is possible to use any of the initialization methods of that format to create a new control dir. (Jelmer Vernooij)
  • Internals:
  • ``Branch`` objects can now use a config stack with the newly introduced ``get_config_stack()``. Both ``get_config`` and ``get_config_stack`` can be used for the same branch but it's recommended to stick to one for a given option.
  • Testing:
  • Test scripts can now use ``bzr shelve`` and provide their input as complete lines. (Vincent Ladeuil, #856261)
  • Really corrupt the pack file without depending on a special length or value. (Vincent Ladeuil, #807032)

New in Bazaar 2.5 Beta 1 (Sep 21, 2011)

  • New Features:
  • A ``from_unicode`` parameter can be specified when registering a config option. This implements boolean, integer and list config options when the provided ``bool_from_store``, ``int_from_store`` and ``list_from_store`` are used for this parameter. (Vincent Ladeuil)
  • Accessing a packaging branch on Launchpad (eg, ``lp:ubuntu/bzr``) now checks to see if the most recent published source package version for that project is present in the branch tags. This should help developers trust whether the packaging branch is up-to-date and can be used for new changes. The level of verbosity is controlled by the config item ``launchpad.packaging_verbosity``
  • Add a config option gpg_signing_key for setting which GPG key should be used to sign commits. Also default to using the gpg user identity which matches user_email() as set by whoami. (Jonathan Riddell, #68501)
  • An ``invalid`` parameter can be specified when registering a config option to decide what should be done when invalid values are encountered. 'warning' and 'error' will respectively emit a warning and ignore the value or errors out. (Vincent Ladeuil)
  • bzr add now skips large files in recursive mode. The default "large" size is 20MB, and is configurable via the add.maximum_file_size option. A value of 0 disables skipping. Named items passed to add are never skipped. (Shannon Weyrick, #54624)
  • bzr help configuration/`` display the help for ``option`` for all registered configuration options. (Vincent Ladeuil, #747050)
  • bzr log -m`` now matches message, author, committer and bugs instead of just matching the message. ``--message`` keeps its original meaning, while ``--match-message, --match-author, --match-committer`` and ``--match-bugs`` match each of those fields. (Jacek Sieka)
  • config.Option`` can now declare ``default_from_env``, a list of environment variables to get a default value from. (Vincent Ladeuil)
  • config.NameMatcher`` can be used to implement config stores and stacks that need to provide specific option values for arbitrary unique IDs (svn repository UUIDs, etc). (Vincent Ladeuil, #843638)
  • New builtin ``bzr branches`` command, which lists all colocated branches in a directory. (Jelmer Vernooij, #826820)
  • Relative local paths can now be specified in URL syntax by using the "file:" prefix. (Jelmer Vernooij)
  • Report commits signed with expired keys in ``verify-signatures``. (Jonathan Riddell, #804254)
  • Translations are now enabled for command help, errors and globally for any message using gettext given on output. (Jonathan Riddell, INADA Naoki, #83941)
  • Improvements:
  • bzr add`` will now warn about nested subtrees that are skipped. (Jelmer Vernooij, #187342)
  • bzr commit -m ''`` can now be used to force an empty commit message. Entering an empty commit message in the message editor still triggers an error. (Jelmer Vernooij)
  • bzr pull`` will now mention how many tags it has updated. (Jelmer Vernooij, #164450)
  • bzr tag`` no longer errors if a tag already exists but refers to the same revision, and will mention when a tag has been updated rather than created. (Jelmer Vernooij, #381203)
  • bzr uncommit`` will now remove tags that refer to removed revisions. The ``--keep-tags`` option can be used to prevent this behaviour. (Jelmer Vernooij, #605814)
  • Do not run i18n initialisation twice. (Jonathan Riddell)
  • Install translation .mo files. (Jonathan Riddell)
  • Locations printed by ``bzr upgrade`` are now formatted before display. (Jelmer Vernooij)
  • Repository.get_parent_map`` now estimates the size of the returned content more accurately. This means that we get closer to the desired 64kB/request. For repositories converted from svn, this can be an improvement of approx 5:1 in round trips to discover the whole history. (John Arbash Meinel)
  • Support a ``bugtracker`` option which is used by ``bzr commit --fixes`` if no bug tracker was specified on the command line. (Jelmer Vernooij, #334860)
  • Use gettext.NullTranslations in i18n to allow use of i18n even when translations are not turned on. (Jonathan Riddell)
  • Bug Fixes:
  • bzr commit`` now correctly reports missing files as "removed", not "modified". (Jelmer Vernooij, #553955)
  • bzr reconfigure`` will now allow multiple non-conflicting requests in a single invocation, e.g. ``--branch`` and ``--use-shared``. (Martin von Gagern, #842993)
  • A call to CHKInventory's filter-method will not result in a DuplicateFileId error, if you move a subfolder and change a file in that subfolder. (Bastian Bowe, #809901)
  • Branching from a stacked branch no longer does a ``get_parent_map`` request for each revisions that is in the stacked-on repository while determining what revisions need to be fetched. This mostly impacts branching initialy into an empty shared repository when the source is not the development focus. (John Arbash Meinel, #388269)
  • Decode ``BZR_HOME`` with fs encoding on posix platforms to avoid unicode errors. (Vincent Ladeuil, #822571)
  • Fix fallout from URL handling changes in 2.5 that caused an IndexError to be raised whenever a transport at the drive root was opened on windows. (Martin [gz], #841322)
  • Fixed loading of external merge tools from config to properly decode command-lines which contain embedded quotes. (Gordon Tyler, #828803)
  • Rather than an error being raised, a warning is now printed when the current user does not have permission to read a configuration file. (Jelmer Vernooij, #837324)
  • The pull command will now always use separate connections for the case where the destination is a heavyweight checkout of some remote branch on the same host as the source branch. (Martin von Gagern, #483661)
  • TreeTransformBase.fixup_new_roots no longer forces trees to have a root, so operations that use it, like merge, can now create trees without a root. (Aaron Bentley)
  • Documentation:
  • Release instructions refreshed. (Vincent Ladeuil)
  • API Changes:
  • BranchFormat.initialize`` now takes a ``append_revisions_only`` argument. (Jelmer Vernooij)
  • Branch._get_checkout_format`` now takes a ``lightweight`` argument which indicates if the format should be for a lightweight or a heavyweight checkout. (Jelmer Vernooij)
  • ControlDir.create_branch`` now takes a ``append_revisions_only`` argument. (Jelmer Vernooij)
  • New class ``URL`` in ``bzrlib.utils`` for managing parsed URLs. (Jelmer Vernooij)
  • New method ``Config.get_user_option_as_int_from_SI`` added for expanding a value in SI format (i.e. "20MB", "1GB") into its integer equivalent. (Shannon Weyrick)
  • New method ``InterTree.file_content_matches`` which checks that two files in different trees have the same contents. (Jelmer Vernooij)
  • New method ``Tree.get_file_verifier`` which allows tree implementations to return non-sha1 checksums to verify files. (Jelmer Vernooij, #720831)
  • New methods ``get_transport_from_path`` and ``get_transport_from_url`` have been added that only support opening from a path or a URL, unlike ``get_transport``. (Jelmer Vernooij)
  • New registry ``OptionRegistry`` specialized for configuration options. (Vincent Ladeuil)
  • Remove ``AtomicFile.closed`` which has been deprecated in bzr 0.10. (Vincent Ladeuil)
  • Remove ``commands._builtin_commands``, ``commands.shlex_split_unicode``, ``Command._maybe_expand_globs`` and ``Command.run_direct`` deprecated in 2.10 and 2.2.0. (Vincent Ladeuil)
  • Remove ``diff.get_trees_and_branches_to_diff`` deprecated in 2.2.0
  • Remove ``log.calculate_view_revisions``, ``log._filter_revision_range``, ``log.get_view_revisions`` which have been deprecated in bzr 2.1.0. Also remove ``log.show_one_log`` which was never properly deprecated but wasn't used and is easy to inline if needed. (Vincent Ladeuil)
  • Remove ``trace.info``, ``trace.error`` and ``trace.show_log_error`` deprecated in 2.1.0. (Vincent Ladeuil)
  • Remove ``TransportListRegistry.set_default_transport``, as the concept of a default transport is currently unused. (Jelmer Vernooij)
  • Remove ``UIFactory.warn_cross_format_fetch`` and ``UIFactory.warn_experimental_format_fetch`` in favor of ``UIFactory.show_user_warning``. (Jelmer Vernooij)
  • Tags`` containers can now declare whether they support versioned tags and whether tags can refer to ghost tags. (Jelmer Vernooij)
  • Tags.merge_to`` now returns a dictionary with the updated tags and a set of conflicts, rather than just conflicts. (Jelmer Vernooij)
  • There is a new class `ContentFilterTree` that provides a facade for content filtering. The `filtered` parameter to `export` is deprecated in favor of passing a filtered tree, and the specific exporter plugins no longer support it. (Martin Pool)
  • Transport`` now has a ``_parsed_url`` attribute instead of separate ``_user``, ``_password``, ``_port``, ``_scheme``, ``_host`` and ``_path`` attributes. Proxies are provided for the moment but may be removed in the future. (Jelmer Vernooij):
  • Internals:
  • A new debug flag ``hpss_client_no_vfs`` will now cause the HPSS client to raise a ``HpssVfsRequestNotAllowed`` exception when a VFS request is attempted. (Jelmer Vernooij)
  • New method ``ControlDir._get_selected_branch`` which returns the colocated branch selected using path segment parameters. (Jelmer Vernooij, #380871)
  • Testing:
  • Blackbox tests (including test scripts) can be debugged interactively (see bzrlib.debug.BzrPdb for details). (Vincent Ladeuil)
  • BranchBuilder.build_snapshot` now supports a "flush" action. This cleanly and reliably allows tests using `BranchBuilder` to construct branches that e.g. rename files out of a directory and unversion that directory in the same revision. Previously some changes were impossible due to the order that `build_snapshot` performs its actions. (Andrew Bennetts)
  • Don't require ``os.fdatasync`` to be defined on all supported OSes (BSD-based OSes don't define it). (Vincent Ladeuil, #822649)
  • Fix compatibility with testtools 0.9.12. (Jelmer Vernooij, #815423)
  • LockDir`` can now be run when the local hostname is ``localhost``. (Jelmer Vernooij, #825994)
  • ModuleAvailableFeature`` won't try to import already imported modules, allowing it to be used for modules with side-effects. (Vincent Ladeuil, #712474)
  • Output time stamps while running ``make check`` to get better timings from pqm. (Vincent Ladeuil, #837926)
  • TestCaseWithMemoryTransport` is faster now: `_check_safety_net` now just compares the bytes in the dirstate file to its pristine state, rather than opening the WorkingTree and calling ``last_revision()``. This reduces the overall test suite time by about 10% on my laptop. (Andrew Bennetts)
  • Update `TestCase.knownFailure` to the testtools way of handling expected failures to resolve Python 2.7 incompatibility. (Martin [gz], #607400)

New in Bazaar 2.3.4 (Jul 20, 2011)

  • Bug Fixes:
  • Accept some differences for ``bound_location`` from the config files that were leading to a 'ReadOnlyError: A write attempt was made in a read only transaction' error.
  • Don't fail with traceback if `bzr serve` is running as a service on Windows, and there is no USERNAME, nor BZR_EMAIL or other whoami-related environment variables set.

New in Bazaar 2.4 Beta 4 (Jun 21, 2011)

  • External Compatibility Breaks:
  • Do not treat configuration option 'check_signatures = require' as if it were 'create_signatures = always'
  • New Features:
  • Hooks have been added for config stacks: ``get``, ``set`` and ``remove`` are called when an option is repsectively read, modified or deleted. Also added ``load`` and ``save`` hooks for config stores, called when the stores are loaded or saved.
  • New hook server_exception in bzrlib.smart.server to catch any exception caused while running bzr serve.
  • New hook set_commit_message in bzrlib.msgeditor to set a commit message and revision properties.
  • Support ``-S`` as an alias for ``--short`` for the ``log`` and ``missing`` commands.
  • Improvements:
  • ``bzr annotate`` can be run without setting whoami data first.
  • Bug Fixes:
  • Bazaar can now detect when a lock file is held by a dead process originating from the same machine, and steal the lock after printing a message to the user. This is off by default, for safety, but can be turned on by setting the configuration variable ``locks.steal_dead`` to ``True``.
  • Credentials in the log output produced by ``-Dhttp`` are masked so users can more freely post them in bug reports.
  • Fix a race condition for ``server_started`` hooks leading to a spurious test failure.
  • Fix exporting subdirectory with ``--per-file-timestamps``.
  • Handle files that get created but don't get used during TreeTransform. ``open()`` can create a file, and still raise an exception before it returns. So anything we might have created, make sure we destroy during ``finalize()``.
  • ``pack_repo`` now uses ``Transport.move`` instead of ``Transport.rename``, deleting any existing targets even on SFTP.
  • Pass the ``build_mo`` command to the rest of the setup() calls in setup.py. The ``bdist_wininst`` and ``py2exe`` code paths were failing because ``build_mo`` became a required step that they didn't know about.
  • Properly avoid re-adding a file after it changes case on CICP filesystems.
  • Reports the original error when an InvalidHttpResponse exception is encountered to facilitate debug.
  • Reports a non-existant file error when trying to merge in a file that does not exist.
  • ``UIFactory.prompt``, ``UIFactory.get_username``, ``UIFactory.get_password`` and ``UIFactory.get_boolean`` now require a unicode prompt to be passed in.
  • Support merging into the empty tree.
  • Documentation:
  • Improve documentation of ``bzr merge --force``.
  • Make docs for configuration options for digital signatures match reality.
  • Add user-guide page on GPG signatures.
  • API Changes:
  • Information about held lockdir locks returned from eg `LockDir.peek` is now represented as a `LockHeldInfo` object, rather than a plain Python dict.
  • Remove `file_status` function.
  • ``Repository.iter_reverse_revision_history`` is now deprecated. Use ``Graph.iter_lefthand_ancestry`` instead.
  • Internals:
  • ``tools/check-newsbugs.py`` accepts a ``--browser`` option to open corresponding launchpad pages in a browser.
  • Testing:
  • A `ImportTariffTestCase` base class has been added in ``bzrlib.tests.test_import_tariff``, which can be used for import tariff tests in plugins.
  • Fix deadlock in `TestImportTariffs.test_simple_serve` when stderr gets more output than fits in the default buffer. This was happening on the Windows buildslave, and could easily happen in other circumstances where the default OS buffer size for pipes is small or the ``python -v`` output is large.
  • Re-target ``bb.test_merge.TestMerge.test_merge_reversed_revision_range`` and rewrite it as a parameterized test to avoid unrelated failures.
  • Show log file contents from subprocesses started by `start_bzr_subprocess` in test failure details. This may help diagnose strange hangs and failures involving subprocesses.
  • Skip ``utextwrap`` tests when ``sphinx`` breaks text_wrap by an hostile monkeypatch to textwrap.TextWrapper.wordsep_re.
  • Multiple ``selftest --exclude`` options are now combined instead of overriding each other.
  • Restore some ``FTPTransport`` test coverage by allowing ``pyftpdlib 0.6.0`` to be used. Also restore ``medusa`` support while leaving it disabled to make it easier to use if/when we can in the future.
  • `TestImportTariffs` no longer uses the real ``$HOME``. This prevents it from polluting ``$HOME/.bzr.log`` or being accidentally influenced by user configuration such as aliases. It still runs with all the user's plugins enabled, as intended.

New in Bazaar 2.4 Beta 3 (May 31, 2011)

  • External Compatibility Breaks:
  • ``bzr-2.4`` has officially dropped support for python2.4 and python2.5. We will continue to maintain ``bzr-2.3`` for people who still need to use those versions of python. (John Arbash Meinel)
  • New Features:
  • The text compressor used for 2a repositories now has a tweakable parameter that can be set in bazaar.conf. ``bzr.groupcompress.max_entries_per_source`` default of 65536. When doing compression, we build up an index of locations to match against. Setting this higher will result in slightly better compression, at a cost of more memory. Note that a value of 65k represents fully sampling a 1MB file. So this only has an effect when compressing texts larger than N*16 bytes. (John Arbash Meinel, #602614)
  • Improvements:
  • ``bzr branch --stacked`` from a smart server uses the network a little more efficiently. For a simple branch it reduces the number of round-trips by about 20%. (Andrew Bennetts)
  • ``bzr log --line`` scales the width of the author field with the size of the line. This means that the full author name is shown when the environment variable BZR_COLUMNS=0. (Neil Martinsen-Burrell)
  • ``bzr pull`` now properly triggers the fast ``CHKInventory.iter_changes`` rather than the slow generic inter-Inventory changes. It used to use a ``DirStateRevisionTree`` as one of the source trees, which is faster when we have to read the whole inventory anyway, but much slower when we can get just the delta out of the repository. On a 70k record tree, this changes ``bzr pull`` from 28s down to 17s. (John Arbash Meinel, #780677)
  • Slightly reduced memory consumption when fetching into a 2a repository by reusing existing caching a little better. (Andrew Bennetts)
  • Speed up ``bzr status`` by a little bit when there are a couple of modified files. We now track how many files we have seen that need updating, and only rewrite the dirstate file if enough of them have changed. The default is 10, and can be overridden by setting the branch option "``bzr.workingtree.worth_saving_limit``". (Ian Clatworthy, John Arbash Meinel, #380202)
  • Speed up ``bzr uncommit``. Instead of resetting the dirstate from scratch, use ``update_basis_by_delta``, computing the delta from the repository. (John Arbash Meinel, #780544)
  • Bug Fixes:
  • All Tree types can now be exported as tar.*, zip or directories. (Aaron Bentley)
  • ``bzr merge --no-remember location`` never sets ``submit_branch``. (Vincent Ladeuil, #782169)
  • ``bzr pull --no-remember location`` never sets ``parent_location``. ``bzr push --no-remember location`` never sets ``push_location``. ``bzr send --no-remember submit_location public_location`` never sets ``submit_branch`` nor ``public_branch``. (Vincent Ladeuil)
  • Conflicts involving non-ascii filenames are now properly reported rather than failing with a UnicodeEncodeError. (Martin [GZ], #686161)
  • Correct parent is now set when using 'switch -b' with bound branches. (A. S. Budden, #513709)
  • Fix `bzr plugins` regression in bzr 2.4 which resulted in a traceback from writelines on ckj terminals. (Martin [GZ], #754082)
  • ``WT.inventory`` and ``WT.iter_entries_by_dir()`` was not correctly reporting subdirectories that were tree references (in formats that supported them). (John Arbash Meinel, #764677)
  • Merging into empty branches now gives an error as this is currently not supported. (Jonathan Riddell, #242175)
  • Do not show exception to user on pointless commit error (Jonathan Riddell #317357)
  • ``WT.update_basis_by_delta`` no longer requires that the deltas match the current WT state. This allows ``update_basis_by_delta`` to be used by more commands than just commit. Updating with a delta allows us to not load the whole inventory, which can take 10+s with large trees. (Jonathan Riddell, John Arbash Meinel, #781168)
  • Documentation:
  • Restore the workaround for option names including dots (--1.14) which was disabled when we stopped listing --1.9 as a format. (Vincent Ladeuil, #782289)
  • API Changes:
  • ``annotate_file`` has been deprecated in favor of ``annotate_file_revision_tree``. (Jelmer Vernooij, #775598)
  • ``Branch.fetch`` now takes an optional ``limit`` argument. (Andrew Bennetts, Jelmer Vernooij, #750175)
  • ``Inter.get`` now raises ``NoCompatibleInter`` if there are no compatible optimisers rather than an instance of the class it is called on. (Jelmer Vernooij)
  • ``Branch.push`` now takes a ``lossy`` argument. ``Branch.lossy_push`` has been removed. (Jelmer Vernooij)
  • New method ``Repository.get_file_graph`` which can return the per-file revision graph. (Jelmer Vernooij, #775578)
  • The default implementation of ``Branch`` is now oriented to storing the branch tip. Branch implementations which store the full history should now subclass ``FullHistoryBzrBranch``. ``Branch._last_revision_info`` has been renamed to ``Branch._read_last_revision_info`` (Jelmer Vernooij)
  • ``Tree.__iter__`` has been deprecated; use ``Tree.all_file_ids`` instead. (Jelmer Vernooij)
  • ``Tree.get_symlink_target`` now takes an optional ``path`` argument. (Jelmer Vernooij)
  • Internals:
  • Removed ``bzrlib.branch._run_with_write_locked_target`` as ``bzrlib.cleanup`` provides the same functionality in a more general way. (Andrew Bennetts)
  • Testing:
  • A test that was expected to fail but passes instead now counts as a failure catching up with new testtools and subunit handling. (Martin [GZ], #654474)
  • Make it easier for plugins to reuse the per_workingtree scenarios by restoring the wt_scenarios helper that was accidentally deleted. (Vincent Ladeuil, #783472)
  • Removed ``test_breakin`` tests that were excessively prone to hanging, did not work on Wine, and partly already disabled. (Martin Pool, #408814, #746985)
  • Windows locations are different and should be tested accordingly. (Vincent Ladeuil, #788131)

New in Bazaar 2.4 Beta 1 (Mar 29, 2011)

  • Includes a new changelog merge plugin, better configuration for
  • external merge tools and some enhanced features for the configuration
  • files.
  • Includes bug fixes for 2.0.7, 2.1.4 and 2.2.5 and ~40 fixes of
  • its own so all known fixed bugs are included here.

New in Bazaar 2.3.1 (Mar 15, 2011)

  • Bug Fixes:
  • Correctly resolve text conflicts for files in subdirs.
  • Fix "AssertionError: repository.user_url ... does not match URL from server response" when reusing a smart transport.
  • Restore proper logging of bytes transferred. We accidentally reset the counter when commands finished before we logged the total transferred.

New in Bazaar 2.3.0 (Feb 8, 2011)

  • This release marks the start of another long-term-stable series. From here, we will only make bugfix releases on the 2.3 series (2.3.1, etc, and support it until August 2012), while 2.4 will become our new development series. The 2.1 and 2.2 series will also continue to get bugfixes. (Currently 2.0 is planned to be EOLed circa September 2011 and will receive only critical bugfixes.)
  • This is a bugfix and polish release over the 2.2 series, with a large number of bugs fixed (>130), and some performance improvements. Some features have been enhanced including commits on stacked branches, upgrades of related branches, shortcut URL schemes for ubuntu and debian on launchpad and better conflict resolution.
  • Only bugfixes from other stables series have been included since 2.3b5 so all known fixed bugs are included here.

New in Bazaar 2.3 Beta 2 (Oct 22, 2010)

  • 2.3b2 includes support for GNU lsh, some new revisions specifiers and
  • modifies the tags sorting order. It also includes bug and documentation
  • fixes.

New in Bazaar 2.2 Beta 4 (Jul 30, 2010)

  • ow stabilizes the internal APIs. Plugin authors are recommended to ensure their releases are compatible, so that 2.2rc1 can be a true release candidate, containing stable and compatible plugin versions.
  • For users of bzrlib as a library, one of the primary changes is to request that they call ``bzrlib.initialize`` and use the returned context manager appropriately.
  • Better interaction with ``bzr-loom`` to make sure branching from a loom even over a smart server still yields a local loom. Not to mention lots of bugfixes over 2.2b3.