Bazaar Release Notes¶
bzr 1.13¶
- Codename
paraskavedekatriaphobia
- 1.13
2009-03-14
- 1.13rc1
2009-03-10
- 1.13.1
2009-03-23
- 1.13.2
2009-04-27
GNU Changelog output can now be produced by bzr log --gnu-changelog. Debug
flags can now be set in ~/.bazaar/bazaar.conf. Lightweight checkouts and
stacked branches should both be much faster over remote connections.
Changes From 1.13.1 to 1.13.2¶
A regression was found in the 1.13.1 release. When bzr 1.13.1 and earlier push a stacked branch they do not take care to push all the parent inventories for the transferred revisions. This means that a smart server serving that branch often cannot calculate inventory deltas for the branch (because smart server does not/cannot open fallback repositories). Prior to 1.13 the server did not have a verb to stream revisions out of a repository, so that’s why this bug has appeared now.
Bug Fixes¶
Fix for bug 354036 ErrorFromSmartServer - AbsentContentFactory object has no attribute ‘get_bytes_as’ exception while pulling from Launchpad (Jean-Francois Roy, Andrew Bennetts, Robert Collins)
Changes From 1.13final to 1.13.1¶
A couple regessions where found in the 1.13 release. The pyrex-generated C extensions are missing from the .tar.gz and .zip files. Documentation on how to generate GNU ChangeLogs is wrong.
Bug Fixes¶
Change
./bzr’s_script_versionto match ./bzrlib/__init__.py version_info. (Bob Tanner, Martin Pool, #345232)Distribution archives for 1.13 do not contain generated C extension modules (Jean-Francois Roy, Bob Tanner, #344465)
GNU ChangeLog output can now be produced by bzr log –format gnu-changelog is incorrect (Deejay, Bob Tanner, Martin Pool, Robert Collins, #343928)
merge --forceworks again. (Robert Collins, #342105)
Changes From 1.13rc1 to 1.13final¶
Fix “is not a stackable format” error when pushing a stackable-format branch with an unstackable-format repository to a destination with a default stacking policy. (Andrew Bennetts)
Progress bars now show the rate of network activity for
bzr+ssh://andbzr://connections. (Andrew Bennetts)
Compatibility Breaks¶
bzr log --linenow indicates which revisions are merges with [merge] after the date. Scripts which parse the output of this command may need to be adjusted. (Neil Martinsen-Burrell)
New Features¶
bzr reconfigurenow supports –with-trees and –with-no-trees options to change the default tree-creation policy of shared repositories. (Matthew Fuller, Marius Kruger, #145033)Debug flags can now be set in
~/.bazaar/bazaar.conf. (Martin Pool)Filtered views provide a mask over the tree so that users can focus on a subset of a tree when doing their work. See
Filtered viewsin chapter 7 of the User Guide andbzr help viewfor details. (Ian Clatworthy)GNU Changelog output can now be produced by
bzr log --gnu-changelog. (Andrea Bolognani, Martin Pool)The
-Dmemoryflag now gives memory information on Windows. (John Arbash Meinel)Multiple authors for a commit can now be recorded by using the “–author” option multiple times. (James Westby, #185772)
New clean-tree command, from bzrtools. (Aaron Bentley, Jelmer Vernooij)
New command
bzr launchpad-openopens a Launchpad web page for that branch in your web browser, as long as the branch is on Launchpad at all. (Jonathan Lange)New API for getting bugs fixed by a revision: Revision.iter_bugs(). (Jonathan Lange)
Improvements¶
All bzr
Hooksclasses are now registered inbzrlib.hooks.known_hooks. This removes the separate list frombzrlib.testsand ensures that all hooks registered there are correctly isolated by the test suite (previouslyMutableTreeHookswere not being isolated correctly). Further, documentation for hooks is now dynamically generated from the present HookPoints.bzr hookswill now also report on all the hooks present in thebzrlib.hooks.known_hooksregistry. (Robert Collins)bzr addno longer printsadd completedon success. Failure still prints an error message. (Robert Collins)bzr branchnow has a--no-treeoption which turns off the generation of a working tree in the new branch. (Daniel Watkins, John Klinger, #273993)Bazaar will now point out
bzr+ssh://to the user when they use ssh://. (Jelmer Vernooij, #330535)bzr -v infonow omits the number of committers branch statistic, making it many times faster for large projects. To include that statistic in the output, usebzr -vv info. (Ian Clatworthy)bzr pushto abzrurl (bzr://,bzr+ssh://etc) will stream if the server is version 1.13 or greater, reducing roundtrips significantly. (Andrew Bennetts, Robert Collins)Lightweight Checkouts and Stacked Branches should both be much faster over remote connections. Building the working tree now batches up requests into approx 5MB requests, rather than a separate request for each file. (John Arbash Meinel)
Support for GSSAPI authentication when using HTTP or HTTPS. (Jelmer Vernooij)
The
bzr shelveprompt now includes a ‘?’ help option to explain the short options better. (Daniel Watkins, #327429)bzr lp-opennow falls back to the push location if it cannot find a public location. (Jonathan Lange, #332372)bzr lp-openwill try to find the Launchpad URL for the location passed on the command line. This makesbzr lp-open lp:foowork as expected. (Jonathan Lange, #332705)bzr sendnow supports MH-E viaemacsclient. (Eric Gillespie)
Bug Fixes¶
Allows
bzr log <FILE>to be called in an empty branch without backtracing. (Vincent Ladeuil, #346431)Bazaar now gives a better message including the filename if it’s unable to read a file in the working directory, for example because of a permission error. (Martin Pool, #338653)
bzr cat -r<old> <path>doesn’t traceback anymore when <path> has a file id in the working tree different from the one in revision <old>. (Vincent Ladeuil, #341517, #253806)bzr sendhelp is more specific about how to apply merge directives. (Neil Martinsen-Burrell, #253470)bzr missingnow usesRepository.get_revision_delta()rather than fetching trees and determining a delta itself. (Jelmer Vernooij, #315048)bzr pushto a smart server no longer causes “Revision {set([(‘null:’,)])} not present …” errors when the branch has multiple root revisions. (Andrew Bennetts, #317654)bzr shelvenow properly handle patches with no terminating newline. (Benoît PIERRE, #303569)bzr unshelvegives a more palatable error if passed a non-integer shelf id. (Daniel Watkins)Export now handles files that are not present in the tree. (James Westby, #174539)
Fixed incorrect “Source format does not support stacking” warning when pushing to a smart server. (Andrew Bennetts, #334114)
Fixed “sprout() got an unexpected keyword argument ‘source_branch’” error branching from old repositories. (Martin Pool, #321695)
Make
bzr push --quiet <non-local location>less chatty. (Kent Gibson, #221461)Many Branch hooks would not fire with
bzr://andbzr+ssh://branches, and this was not noticed due to a bug in the test logic for branches. This is now fixed and a test added to prevent it reoccuring. (Robert Collins, Andrew Bennetts)Restore the progress bar on Windows. We were disabling it when TERM wasn’t set, but Windows doesn’t set TERM. (Alexander Belchenko, #334808)
setup.py build_extnow gives a proper error when an extension fails to build. (John Arbash Meinel)Symlinks to non ascii file names are now supported. (Robert Collins, Vincent Ladeuil, #339055, #272444)
Under rare circumstances (aka nobody reported a bug about it), the FTP transport could revert to ascii mode. It now stays in binary mode except when needed. (Vincent Ladeuil)
Unshelve does not generate warnings about progress bars. (Aaron Bentley, #328148)
shelve cleans up properly when unversioned files are specified. (Benoît Pierre, Aaron Bentley)
Documentation¶
Added
Organizing your workspaceto the User Guide appendices, summarizing some common ways of organizing trees, branches and repositories and the processes/workflows implied/enabled by each. (Ian Clatworthy)Hooks can now be self documenting.
bzrlib.hooks.Hooks.create_hookis the entry point for this feature. (Robert Collins)The documentation for
shelveandunshelvehas been clarified. (Daniel Watkins, #327421, #327425)
API Changes¶
bzr selftestnow fails if the bazaar sources contain trailing whitespace, non-unix style line endings and files not ending in a newline. About 372 files and 3243 lines with trailing whitespace was updated to comply with this. The code already complied with the other criteria, but now it is enforced. (Marius Kruger)bzrlib.branch.PushResultwas renamed tobzrlib.branch.BranchPushResult. (Jelmer Vernooij)Branch.fetchandRepository.fetchnow return None rather than a count of copied revisions and failed revisions. A while back we stopped ever reporting failed revisions because we started erroring instead, and the copied revisions count is not used in the UI at all - indeed it only reflects the repository status not changes to the branch itself. (Robert Collins)Inventory.apply_deltanow raises an AssertionError if a file-id appears multiple times within the delta. (Ian Clatworthy)MutableTree.commit now favours the “authors” argument, with the old “author” argument being deprecated.
Remove deprecated EmptyTree. (Martin Pool)
Repository.fetchnow accepts an optionalfetch_specparameter. ASearchResultorMiniSearchResultmay be passed tofetch_specinstead of alast_revisionto specify exactly which revisions to fetch. (Andrew Bennetts)RepositoryAcquisitionPolicy.acquire_repositorynow returns a tuple of(repository, is_new_flag), rather than just the repository. (Andrew Bennetts)Revision.get_apparent_author() is now deprecated, replaced by Revision.get_apparent_authors(), which returns a list. The former now returns the first item that would be returned from the second.
The
BranchBuildertest helper now accepts atimestampparameter tobuild_commitandbuild_snapshot. (Martin Pool)The
_fetch_*attributes onRepositoryare now onRepositoryFormat, more accurately reflecting their intent (they describe a disk format capability, not state of a particular repository of that format). (Robert Collins)
Internals¶
Branching from a non-stacked branch on a smart protocol is now free of virtual file system methods. (Robert Collins, Andrew Bennetts)
Branch and Repository creation on a bzr+ssh://server are now done via RPC calls rather than VFS calls, reducing round trips for pushing new branches substantially. (Robert Collins)
Branch.clonenow takes therepository_policyformerly used insideBzrDir.clone_on_transport, allowing stacking to be configured before the branch tags and revision tip are set. This fixes a race condition cloning stacked branches that would cause plugins to have hooks called on non-stacked instances. (Robert Collins, #334187)BzrDir.cloning_metadirnow has a RPC call. (Robert Collins)BzrDirFormat.__str__now uses the human readable description rather than the sometimes-absent disk label. (Robert Collins)bzrlib.fetchis now composed of a sender and a sink component allowing for decoupling over a network connection. Fetching from or into a RemoteRepository with a 1.13 server will use this to stream the operation. (Andrew Bennetts, Robert Collins)bzrlib.tests.run_suiteaccepts a runner_class parameter supporting the use of different runners. (Robert Collins)Change how file_ids and revision_ids are interned as part of inventory deserialization. Now we use the real
intern(), rather than our own workaround that would also cache a Unicode copy of the string, and never emptied the cache. This should slightly reduce memory consumption. (John Arbash Meinel)New branch method
create_clone_on_transportthat returns a branch object. (Robert Collins)New hook Commands[‘extend_command’] to allow plugins to access a command object before the command is run (or help generated from it), without overriding the command. (Robert Collins)
New version of the
BzrDir.find_repositoryverb supporting_network_nameto support removing more _ensure_real calls. (Robert Collins)RemoteBranchFormatno longer claims to have a disk format string. (Robert Collins)Repositoryobjects now havesuspend_write_groupandresume_write_groupmethods. These are currently only useful with pack repositories. (Andrew Bennetts, Robert Collins)BzrDirFormat,BranchFormatandRepositoryFormatobjects now have anetwork_namefor passing the format across RPC calls. (Robert Collins, Andrew Bennetts)RepositoryFormatobjects now all have a new attribute_serializerused by fetch when reserialising is required. (Robert Collins, Andrew Bennetts)Some methods have been pulled up from
BzrBranchtoBranchto aid branch types that are not bzr branch objects (like RemoteBranch). (Robert Collins, Andrew Bennetts)Test adaptation has been made consistent throughout the built in tests.
TestScenarioApplier,multiply_tests_from_modules,adapt_tests,adapt_moduleshave all been deleted. Please usemultiply_tests, or for lower level needsapply_scenariosandapply_scenario. (Robert Collins)TestSkippedis now detected by TestCase and passed to theTestResultby callingaddSkip. For older TestResult objects, whereaddSkipis not available,addErroris still called. This permits test filtering in subunit to strip out skipped tests resulting in a faster fix-shrink-list-run cycle. This is compatible with the testtools protocol for skips. (Robert Collins)The
_indexofKnitVersionedFilesnow supports the ability to scan an underlying index that is going to be incorporated into theKnitVersionedFilesobject, to determine if it has missing delta references. The method isscan_unvalidated_index. (Andrew Bennetts, Robert Collins)There is a RemoteSink object which handles pushing to smart servers. (Andrew Bennetts, Robert Collins)
TransportTraceDecoratornow logsput_bytes_non_atomicandrmdircalls. (Robert Collins)VersionedFilesrecord adapters have had their signature change from(record, record.get_bytes_as(record.storage_kind))to(record)reducing excess duplication and allowing adapters to access private data in record to obtain content more efficiently. (Robert Collins)We no longer probe to see if we should create a working tree during clone if we cannot get a local_abspath for the new bzrdir. (Robert Collins)