Released: | 2006-01-09 |
---|
WorkingTree.pull has been split across Branch and WorkingTree, to allow Branch only pulls. (Robert Collins)
commands.display_command now returns the result of the decorated function. (Robert Collins)
LocationConfig now has a set_user_option(key, value) call to save a setting in its matching location section (a new one is created if needed). (Robert Collins)
Branch has two new methods, get_push_location and set_push_location to respectively, get and set the push location. (Robert Collins)
commands.register_command now takes an optional flag to signal that the registrant is planning to decorate an existing command. When given multiple plugins registering a command is not an error, and the original command class (whether built in or a plugin based one) is returned to the caller. There is a new error ‘MustUseDecorated’ for signalling when a wrapping command should switch to the original version. (Robert Collins)
Some option parsing errors will raise ‘BzrOptionError’, allowing granular detection for decorating commands. (Robert Collins).
Branch.read_working_inventory has moved to WorkingTree.read_working_inventory. This necessitated changes to Branch.get_root_id, and a move of Branch.set_inventory to WorkingTree as well. To make it clear that a WorkingTree cannot always be obtained Branch.working_tree() will raise errors.NoWorkingTree if one cannot be obtained. (Robert Collins)
All pending merges operations from Branch are now on WorkingTree. (Robert Collins)
The follow operations from Branch have moved to WorkingTree:
add()
commit()
move()
rename_one()
unknowns()
(Robert Collins)
bzrlib.add.smart_add_branch is now smart_add_tree. (Robert Collins)
New “rio” serialization format, similar to rfc-822. (Martin Pool)
Rename selftests to bzrlib.tests.test_foo. (John A Meinel, Martin Pool)
bzrlib.plugin.all_plugins has been changed from an attribute to a query method. (Robert Collins)
New options to read only the table-of-contents of a weave. (Denys Duchier)
Raise NoSuchFile when someone tries to add a non-existant file. (Michael Ellerman)
Simplify handling of DivergedBranches in cmd_pull(). (Michael Ellerman)
Branch.controlfile* logic has moved to lockablefiles.LockableFiles, which is exposed as Branch().control_files. Also this has been altered with the controlfile pre/suffix replaced by simple method names like ‘get’ and ‘put’. (Aaron Bentley, Robert Collins).
Deprecated functions and methods can now be marked as such using the bzrlib.symbol_versioning module. Marked method have their docstring updated and will issue a DeprecationWarning using the warnings module when they are used. (Robert Collins)
bzrlib.osutils.safe_unicode now exists to provide parameter coercion for functions that need unicode strings. (Robert Collins)