1
The Branch API in bzrlib provides creation and management of Branches.
3
A Branch represents a series of commits and merges carried out by a user.
5
Branches are created by BzrDir's:
7
>>> from bzrlib.bzrdir import ScratchDir
8
>>> from bzrlib.branch import Branch
10
>>> new_branch = dir.create_branch()
13
Existing Branches can be opened directly:
15
>>> another_instance = Branch.open(dir.transport.clone('..').base)
19
>>> still_the_same_branch = dir.open_branch()
22
A branch has a history of revisions on it:
24
>>> new_branch.revision_history()
28
We need to write some more documentation, showing
29
push and pull operations. Cloning might also be nice.